Changeset 35417 for trunk/ippToPsps/test/fulltest.sh
- Timestamp:
- Apr 19, 2013, 4:35:54 PM (13 years ago)
- Location:
- trunk/ippToPsps
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
test/fulltest.sh (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20130307/ippToPsps (added) merged: 35350,35352,35369,35402-35404,35413
- Property svn:mergeinfo changed
-
trunk/ippToPsps/test/fulltest.sh
r35225 r35417 1 1 #!/bin/csh -f 2 3 set stackqueuename = 04 if ($#argv > 0) then5 set stackqueuename = $16 echo "stackqueue: $stackqueuename"7 endif8 9 set objectqueuename = 010 if ($#argv > 0) then11 set stackqueuename = $112 echo "stackqueue: $stackqueuename"13 endif14 2 15 3 # a bit crude : get the datadir path by interpollation of the PATH element for psconfig … … 24 12 # before running this test, you must have a mysql user: 25 13 # mkgpc1.sh user localhost eam eam 26 27 14 set mkgpc1 = 1 28 15 set initdb = 1 29 16 set initscratch = 1 17 set initbatch = 1 30 18 set camqueue = 1 31 set initbatch = 132 19 set cambatch = 1 33 20 set stackqueue = 1 … … 36 23 set objectbatch = 1 37 24 25 set args = "" 26 27 while ("$1" != "") 28 switch ("$1") 29 case -mkgpc1 30 set mkgpc1 = 0 31 breaksw; 32 case -initdb 33 set initdb = 0 34 breaksw; 35 case -initscratch 36 set initscratch = 0 37 breaksw; 38 case -initbatch 39 set initbatch = 0 40 breaksw; 41 case -camera 42 set camqueue = 0 43 set cambatch = 0 44 breaksw; 45 case -stack 46 set stackqueue = 0 47 set stackbatch = 0 48 breaksw; 49 case -object 50 set objectqueue = 0 51 set objectbatch = 0 52 breaksw; 53 default: 54 set args=($args $1); 55 breaksw; 56 endsw 57 shift 58 end 59 60 set stackqueuename = 0 61 set objectqueuename = 0 62 38 63 set OUTDIR = "testdata" 39 64 set queuename = "test" 40 65 41 66 if ($mkgpc1) then 67 echo "" 68 echo " ---- mkgpc1data.dvo : creating the dvo & gpc1 database entries ----" 42 69 mkgpc1data.dvo 43 70 endif … … 45 72 # create the ipptopsps database 46 73 if ($initdb) then 74 echo "" 75 echo " ---- init ipptopsps_test ----" 47 76 48 77 # does the database already exist? … … 55 84 # re-create the ipptopsps database 56 85 if ($initscratch) then 86 echo "" 87 echo " ---- init ipptopsps_test_scratch ----" 57 88 58 89 # create the database (ignore failure if it already exists) … … 62 93 endif 63 94 95 # `name` 96 # `datastore_product` 97 # `datastore_type` 98 # `datastore_publish` 99 # `dvo_label` 100 # `dvo_location` 101 # `min_ra` 102 # `max_ra` 103 # `min_dec` 104 # `max_dec` 105 # `box_size` 106 # `base_path` 107 # `data_release` 108 # `delete_local` 109 # `delete_datastore` 110 # `delete_dxlayer` 111 # `epoch` 112 # `survey` 113 # `psps_survey` 114 # `queue_P2` 115 # `queue_ST` 116 # `queue_OB` 117 # `active` 118 # `parallel` 119 120 # this is poor : we need to queue something in order to generate an init batch 121 # this is because a skychunk carries the info about the datastore used to publish 122 # the batch 123 if ($initbatch) then 124 echo "" 125 echo " ---- make skychunk for IN batches ----" 126 127 ippjython queue.py -test edit <<EOF 128 initbatch 129 test_ds 130 IPP_PSPS 131 0 132 none 133 none 134 0 135 0 136 0 137 0 138 2 139 none 140 0 141 0 142 1 143 1 144 2012-12-10 00:00:00.0 145 3PI 146 3PI 147 0 148 0 149 0 150 1 151 0 152 y 153 y 154 EOF 155 156 echo "" 157 echo " ---- create init batch ----" 158 159 rm -rf $OUTDIR/IN 160 ippjython loader.py -test initbatch init 161 endif 162 64 163 # this code is sensitive to a previously existing database? 65 164 if ($camqueue) then 165 echo "" 166 echo " ---- queue P2 batches ----" 167 66 168 ippjython queue.py -test edit <<EOF 67 169 $queuename … … 94 196 endif 95 197 96 if ($initbatch) then97 rm -rf $OUTDIR/IN98 ippjython loader.py -test $queuename init99 endif100 101 198 if ($cambatch) then 199 echo "" 200 echo " ---- load P2 batches ----" 201 102 202 rm -rf $OUTDIR/P2 103 203 ippjython loader.py -test $queuename once … … 106 206 # this code is sensitive to a previously existing database? 107 207 if ($stackqueue) then 208 echo "" 209 echo " ---- queue ST batches ----" 210 108 211 if ($stackqueuename == 0) then 109 212 set stackqueuename = $queuename\_stk … … 140 243 141 244 if ($stackbatch) then 245 echo "" 246 echo " ---- load ST batches ----" 247 142 248 if ($stackqueuename == 0) then 143 249 set stackqueuename = $queuename\_stk … … 149 255 # this code is sensitive to a previously existing database? 150 256 if ($objectqueue) then 257 echo "" 258 echo " ---- queue OB batches ----" 259 151 260 if ($objectqueuename == 0) then 152 261 set objectqueuename = $queuename\_obj … … 183 292 184 293 if ($objectbatch) then 294 echo "" 295 echo " ---- load OB batches ----" 296 185 297 if ($objectqueuename == 0) then 186 298 set objectqueuename = $queuename\_obj
Note:
See TracChangeset
for help on using the changeset viewer.
