- Timestamp:
- Apr 3, 2013, 12:52:33 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130307/ippToPsps/test/fulltest.sh
r35225 r35352 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 # this is poor : we need to queue something in order to generate an init batch 96 # this is because a skychunk carries the info about the datastore used to publish 97 # the batch 98 if ($initbatch) then 99 echo "" 100 echo " ---- make skychunk for IN batches ----" 101 102 ippjython queue.py -test edit <<EOF 103 initbatch 104 test_ds 105 IPP_PSPS 106 0 107 none 108 none 109 0 110 0 111 0 112 0 113 2 114 none 115 0 116 0 117 1 118 1 119 2012-12-10 00:00:00.0 120 3PI 121 3PI 122 0 123 0 124 0 125 1 126 0 127 y 128 y 129 EOF 130 endif 131 132 echo "" 133 echo " ---- create init batch ----" 134 135 rm -rf $OUTDIR/IN 136 ippjython loader.py -test initbatch init 137 endif 138 64 139 # this code is sensitive to a previously existing database? 65 140 if ($camqueue) then 141 echo "" 142 echo " ---- queue P2 batches ----" 143 66 144 ippjython queue.py -test edit <<EOF 67 145 $queuename … … 94 172 endif 95 173 96 if ($initbatch) then97 rm -rf $OUTDIR/IN98 ippjython loader.py -test $queuename init99 endif100 101 174 if ($cambatch) then 175 echo "" 176 echo " ---- load P2 batches ----" 177 102 178 rm -rf $OUTDIR/P2 103 179 ippjython loader.py -test $queuename once … … 106 182 # this code is sensitive to a previously existing database? 107 183 if ($stackqueue) then 184 echo "" 185 echo " ---- queue ST batches ----" 186 108 187 if ($stackqueuename == 0) then 109 188 set stackqueuename = $queuename\_stk … … 140 219 141 220 if ($stackbatch) then 221 echo "" 222 echo " ---- load ST batches ----" 223 142 224 if ($stackqueuename == 0) then 143 225 set stackqueuename = $queuename\_stk … … 149 231 # this code is sensitive to a previously existing database? 150 232 if ($objectqueue) then 233 echo "" 234 echo " ---- queue OB batches ----" 235 151 236 if ($objectqueuename == 0) then 152 237 set objectqueuename = $queuename\_obj … … 183 268 184 269 if ($objectbatch) then 270 echo "" 271 echo " ---- load OB batches ----" 272 185 273 if ($objectqueuename == 0) then 186 274 set objectqueuename = $queuename\_obj
Note:
See TracChangeset
for help on using the changeset viewer.
