IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 10, 2015, 12:29:55 PM (11 years ago)
Author:
eugene
Message:

make tests a bit more robust (exit on failures); add bits for FW tests

File:
1 edited

Legend:

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

    r38823 r38836  
    157157  # XXX this command will blow away an existing database!!
    158158  mysql -h localhost -u dvo -pdvo -e "create database if not exists ipptopsps_test" || exit 3
    159   mysql -h localhost -u dvo -pdvo ipptopsps_test < $IPPTOPSPS_DATA/ippToPspsDbSchema.sql || exit 2
     159  mysql -h localhost -u dvo -pdvo ipptopsps_test < $IPPTOPSPS_DATA/ippToPspsDbSchema.sql || exit 3
     160  echo " ---- init ipptopsps_test: done ----"
    160161endif
    161162
     
    211212  echo "2000-01-01 00:00:00.0  " >> initbatch.dat # trange_start
    212213  echo "2020-01-01 00:00:00.0  " >> initbatch.dat # trange_end
    213   cat initbatch.dat | ippjython queue.py -test edit
    214   if ($status) exit
     214  ippjython queue.py -test edit < initbatch.dat
     215  if ($status) exit 1
    215216
    216217  echo ""
     
    219220  rm -rf $OUTDIR/IN
    220221  ippjython loader.py -test initbatch init -simtest < /dev/null
    221   if ($status) exit
     222  if ($status) exit 1
    222223endif
    223224
     
    259260  echo "2000-01-01 00:00:00.0 " >> cambatch.dat # trange_start
    260261  echo "2020-01-01 00:00:00.0 " >> cambatch.dat # trange_end
    261   cat cambatch.dat | ippjython queue.py -test edit -simtest
    262   if ($status) exit
     262  ippjython queue.py -test edit -simtest < cambatch.dat
     263  if ($status) exit 1
    263264endif
    264265
     
    312313  echo "2000-01-01 00:00:00.0 " >> stackbatch.dat # trange_start
    313314  echo "2020-01-01 00:00:00.0 " >> stackbatch.dat # trange_end
    314   cat stackbatch.dat | ippjython queue.py -test edit -simtest
     315  ippjython queue.py -test edit -simtest < stackbatch.dat
    315316  if ($status) exit
    316317endif
     
    368369  echo "2000-01-01 00:00:00.0 " >> objectbatch.dat # trange_start
    369370  echo "2020-01-01 00:00:00.0 " >> objectbatch.dat # trange_end
    370   cat objectbatch.dat | ippjython queue.py -test edit once -simtest
     371  ippjython queue.py -test edit once -simtest < objectbatch.dat
    371372  if ($status) exit
    372373endif
Note: See TracChangeset for help on using the changeset viewer.