IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 27, 2013, 5:58:25 AM (13 years ago)
Author:
eugene
Message:

enable test mode from command-line (-test, after jython module); add parallel dvo option; make database selection more consistent and variable on test/not-test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20121219/ippToPsps/test/fulltest.sh

    r35051 r35063  
    2525# mkgpc1.sh user localhost eam eam
    2626
    27 set mkgpc1      = 0
    28 set initdb      = 0
    29 set mkdummy     = 0
    30 set initscratch = 0
    31 set initbatch   = 0
    32 set camqueue    = 0
    33 set cambatch    = 0
    34 set stackqueue  = 0
    35 set stackbatch  = 0
     27set mkgpc1       = 1
     28set initdb       = 1
     29set mkdummy      = 1
     30set initscratch  = 1
     31set initbatch    = 1
     32set camqueue     = 1
     33set cambatch     = 1
     34set stackqueue   = 1
     35set stackbatch   = 1
    3636set objectqueue  = 1
    3737set objectbatch  = 1
     
    5656# create a dummy config so setupScratchDb.py does not fail
    5757if ($mkdummy) then
    58   ippjython queue.py edit <<EOF
     58  ippjython queue.py -test edit <<EOF
    5959dummy
    6060none
     
    80800
    81811
     820
    8283EOF
    8384endif
     
    8788
    8889  # create the database (ignore failure if it already exists)
    89   mysql -h localhost -u dvo -pdvo -e "drop database ipptopsps_test_scratch"
     90  mysql -h localhost -u dvo -pdvo -e "drop database ipptopsps_test_scratch1"
    9091  # mysql -h localhost -u dvo -pdvo -e "drop database ipptopsps_scratch2"
    9192  # mysql -h localhost -u dvo -pdvo -e "drop database ipptopsps_scratch3"
    9293
    93   mysql -h localhost -u dvo -pdvo -e "create database ipptopsps_test_scratch"
     94  mysql -h localhost -u dvo -pdvo -e "create database ipptopsps_test_scratch1"
    9495  # mysql -h localhost -u dvo -pdvo -e "create database ipptopsps_scratch2"
    9596  # mysql -h localhost -u dvo -pdvo -e "create database ipptopsps_scratch3"
    9697
    97   ippjython setupScratchDb.py dummy ipptopsps_test_scratch
    98   # ippjython setupScratchDb.py dummy ipptopsps_scratch2
    99   # ippjython setupScratchDb.py dummy ipptopsps_scratch3
     98  ippjython setupScratchDb.py -test dummy ipptopsps_test_scratch1
     99  # ippjython setupScratchDb.py -test dummy ipptopsps_scratch2
     100  # ippjython setupScratchDb.py -test dummy ipptopsps_scratch3
    100101endif
    101102
    102103# this code is sensitive to a previously existing database?
    103104if ($camqueue) then
    104   ippjython queue.py edit <<EOF
     105  ippjython queue.py -test edit <<EOF
    105106$queuename
    106107test_ds
     
    1261270
    1271281
     1290
    128130y
    129131y
     
    133135if ($initbatch) then
    134136  rm -rf $OUTDIR/IN
    135   ippjython loader.py $queuename init
     137  ippjython loader.py -test $queuename init
    136138endif
    137139
    138140if ($cambatch) then
    139141  rm -rf $OUTDIR/P2
    140   ippjython loader.py $queuename once
     142  ippjython loader.py -test $queuename once
    141143endif
    142144
     
    146148    set stackqueuename = $queuename\_stk
    147149  endif
    148   ippjython queue.py edit <<EOF
     150  ippjython queue.py -test edit <<EOF
    149151$stackqueuename
    150152test_ds
     
    1701720
    1711731
     1740
    172175y
    173176y
     
    180183  endif
    181184  rm -rf $OUTDIR/ST
    182   ippjython loader.py $stackqueuename once
     185  ippjython loader.py -test $stackqueuename once
    183186endif
    184187
     
    188191    set objectqueuename = $queuename\_obj
    189192  endif
    190   ippjython queue.py edit <<EOF
     193  ippjython queue.py -test edit <<EOF
    191194$objectqueuename
    192195test_ds
     
    2122151
    2132161
     2170
    214218y
    215219y
     
    222226  endif
    223227  rm -rf $OUTDIR/OB
    224   ippjython loader.py $objectqueuename once
    225 endif
    226 
     228   ippjython loader.py -test $objectqueuename once
     229endif
     230
Note: See TracChangeset for help on using the changeset viewer.