IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 8, 2008, 1:47:50 PM (18 years ago)
Author:
eugene
Message:

adding granularity to simtest init

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/simtest.pro

    r17575 r17592  
    44  if ($0 != 4)
    55    echo "USAGE: simtest (dbname) (hostname) (init)"
    6     echo " if (init) == 1, recreate and inject the images"
     6    echo " if (init) == 0, just run the analysis tasks"
     7    echo " if (init) == 1, (re)create the database and (re)inject the images"
     8    echo " if (init) == 2, restart completely from scratch"
    79    break
    810  end
     
    1113  $hostname = $2
    1214 
    13   if ($3 == 1)
     15  if ($3 > 0)
    1416    # XXX this will fail and exit the script if the db does not exist or is old...
    1517    exec pxadmin -delete -dbname $dbname
     
    1820    exec pxadmin -create -dbname $dbname
    1921
    20     # the labels "wait" and "proc" are special names used in automate.pro
    21     exec ppSimSequence basic.simtest.config basic.simtest.mkimages basic.simtest.inject -path raw -workdir work -dbname $dbname -label wait
    22     exec source basic.simtest.mkimages
     22    if ($3 == 2)
     23      # the labels "wait" and "proc" are special names used in automate.pro
     24      exec ppSimSequence basic.simtest.config basic.simtest.mkimages basic.simtest.inject -path raw -workdir work -dbname $dbname -label wait
     25      exec source basic.simtest.mkimages
     26    end
     27
     28    exec chiptool -dbname $dbname -block -label wait
    2329    exec source basic.simtest.inject
    2430  end
Note: See TracChangeset for help on using the changeset viewer.