IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38996


Ignore:
Timestamp:
Oct 28, 2015, 8:30:47 PM (11 years ago)
Author:
eugene
Message:

add -stilts option to test; fix RA,DEC (global not local)

Location:
trunk/ippToPsps/test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/test/fulltest.sh

    r38990 r38996  
    3030set forcedobjbatch = 1
    3131
    32 set debug = ""
     32set options = "-test"
    3333
    3434set targ = ($argv)
     
    9393    breaksw;
    9494  case -debug
    95     set debug = "-debug"
     95    set options = "$options -debug"
     96    breaksw;
     97  case -stilts
     98    set options = "$options -stilts"
    9699    breaksw;
    97100  default:
     
    208211  mysql -h localhost -u dvo -pdvo -e "drop database if exists ipptopsps_test_scratch"
    209212  mysql -h localhost -u dvo -pdvo -e "create database ipptopsps_test_scratch"
    210   ippjython setupScratchDb.py -test < /dev/null
     213  ippjython setupScratchDb.py $options < /dev/null
    211214  if ($status) exit 1
    212215endif
     
    251254  echo "2000-01-01 00:00:00.0  " >> initbatch.dat # trange_start
    252255  echo "2020-01-01 00:00:00.0  " >> initbatch.dat # trange_end
    253   ippjython queue.py $debug -test edit < initbatch.dat
     256  ippjython queue.py $options edit < initbatch.dat
    254257  if ($status) exit 1
    255258
     
    258261
    259262  rm -rf $OUTDIR/IN
    260   ippjython loader.py $debug -test initbatch init -simtest < /dev/null
     263  ippjython loader.py $options initbatch init -simtest < /dev/null
    261264  if ($status) exit 1
    262265endif
     
    301304  echo "2000-01-01 00:00:00.0 " >> cambatch.dat # trange_start
    302305  echo "2020-01-01 00:00:00.0 " >> cambatch.dat # trange_end
    303   ippjython queue.py $debug -test edit -simtest < cambatch.dat
     306  ippjython queue.py $options edit -simtest < cambatch.dat
    304307  if ($status) exit 1
    305308endif
     
    310313
    311314  rm -rf $OUTDIR/P2
    312   ippjython loader.py $debug -test $queuename once -simtest < /dev/null
     315  ippjython loader.py $options $queuename once -simtest < /dev/null
    313316  if ($status) exit
    314317endif
     
    353356  echo "2000-01-01 00:00:00.0 " >> objectbatch.dat # trange_start
    354357  echo "2020-01-01 00:00:00.0 " >> objectbatch.dat # trange_end
    355   ippjython queue.py $debug -test edit once -simtest < objectbatch.dat
     358  ippjython queue.py $options edit once -simtest < objectbatch.dat
    356359  if ($status) exit
    357360endif
     
    363366  rm -rf $OUTDIR/OB
    364367
    365   ippjython loader.py $debug -test $objectqueuename once -simtest < /dev/null
     368  ippjython loader.py $options $objectqueuename once -simtest < /dev/null
    366369  if ($status) exit
    367370endif
     
    406409  echo "2000-01-01 00:00:00.0 " >> stackbatch.dat # trange_start
    407410  echo "2020-01-01 00:00:00.0 " >> stackbatch.dat # trange_end
    408   ippjython queue.py $debug -test edit -simtest < stackbatch.dat
     411  ippjython queue.py $options edit -simtest < stackbatch.dat
    409412  if ($status) exit
    410413endif
     
    415418
    416419  rm -rf $OUTDIR/ST
    417   ippjython loader.py $debug -test $stackqueuename once -simtest < /dev/null
     420  ippjython loader.py $options $stackqueuename once -simtest < /dev/null
    418421  if ($status) exit
    419422endif
     
    458461  echo "2000-01-01 00:00:00.0 " >> forcebatch.dat # trange_start
    459462  echo "2020-01-01 00:00:00.0 " >> forcebatch.dat # trange_end
    460   ippjython queue.py $debug -test edit -simtest < forcebatch.dat
     463  ippjython queue.py $options edit -simtest < forcebatch.dat
    461464  if ($status) exit 1
    462465endif
     
    467470
    468471  rm -rf $OUTDIR/FW
    469   ippjython loader.py $debug -test $forcedwarpqueuename once -simtest < /dev/null
     472  ippjython loader.py $options $forcedwarpqueuename once -simtest < /dev/null
    470473  if ($status) exit
    471474endif
     
    510513  echo "2000-01-01 00:00:00.0 " >> forcedobjectbatch.dat # trange_start
    511514  echo "2020-01-01 00:00:00.0 " >> forcedobjectbatch.dat # trange_end
    512   ippjython queue.py $debug -test edit once -simtest < forcedobjectbatch.dat
     515  ippjython queue.py $options edit once -simtest < forcedobjectbatch.dat
    513516  if ($status) exit
    514517endif
     
    520523  rm -rf $OUTDIR/LO
    521524
    522   ippjython loader.py $debug -test $forcedobjqueuename once -simtest < /dev/null
    523   if ($status) exit
    524 endif
    525 
     525  ippjython loader.py $options $forcedobjqueuename once -simtest < /dev/null
     526  if ($status) exit
     527endif
     528
  • trunk/ippToPsps/test/mkgpc1data.dvo

    r38990 r38996  
    9696  mkdir $OUTDIR
    9797
    98   local i catdir RA DEC ID stkID rawfile cmffile offset
     98  local i catdir ID stkID rawfile cmffile offset
    9999  $catdir = $OUTDIR/catdir.cam
    100100  exec rm -rf $catdir
     
    232232  mkdir $OUTDIR
    233233
    234   local i catdir RA DEC stkID skyID rawfile cmffile offset
     234  local i catdir stkID skyID rawfile cmffile offset
    235235  $catdir = $OUTDIR/catdir.stk
    236236  exec rm -rf $catdir
     
    297297  mkdir $OUTDIR
    298298
    299   local i catdir RA DEC ID stkID rawfile cmffile offset
     299  local i catdir ID stkID rawfile cmffile offset
    300300  $catdir = $OUTDIR/catdir.wrp
    301301  exec rm -rf $catdir
Note: See TracChangeset for help on using the changeset viewer.