IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 20, 2013, 7:08:09 AM (13 years ago)
Author:
eugene
Message:

make tests more repeatable in different locations

Location:
branches/eam_branches/ipp-20121219/ippToPsps/test
Files:
3 edited

Legend:

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

    • Property svn:ignore set to
      testdata
  • branches/eam_branches/ipp-20121219/ippToPsps/test/fulltest.sh

    r34998 r35000  
    1313# mkgpc1.sh user localhost eam eam
    1414
    15 set mkgpc1 = 0
    16 set initdb = 0
    17 set mkdummy = 0
    18 set initscratch = 0
     15set mkgpc1 = 1
     16set initdb = 1
     17set mkdummy = 1
     18set initscratch = 1
    1919set createqueue = 1
    20 set initbatch = 0
     20set initbatch = 1
     21set onebatch = 1
     22
     23set OUTDIR = "testdata"
    2124set queuename = "test"
    2225
     
    89920
    9093catdir.cam
    91 catdir.cam
     94$OUTDIR/catdir.cam
    92959
    939611
     
    959821
    96991
    97 test
     100$OUTDIR
    981010
    991020
     
    116119endif
    117120
     121if ($onebatch) then
     122  ippjython loader.py $queuename once
     123endif
     124
  • branches/eam_branches/ipp-20121219/ippToPsps/test/mkgpc1data.dvo

    r34997 r35000  
    66
    77macro test.all
    8   test.relphot PS1_V2   PS1_V2
     8  test.relphot PS1_V2 PS1_V2
    99end 
     10
     11## this script must be run in this directory, output data goes to 'testdata'
     12$OUTDIR = testdata
     13
     14# note that ipptopsps and gpc1db need the path ex extension
     15# I'm setting the base filename without the .smf and add it in mkcatdir.*
    1016
    1117# imagedata describes the full fake exposure set.  the fields are
    1218# exp_id stack_id raw_file exp_file offset
    1319list imagedata
    14  1 1 test.01.txt test.01.smf  0.000
    15  2 1 test.02.txt test.02.smf -0.025
    16  3 1 test.03.txt test.03.smf  0.025
    17  4 1 test.04.txt test.04.smf  0.010
    18  5 2 test.05.txt test.05.smf  0.000
    19  6 2 test.06.txt test.06.smf -0.025
    20  7 2 test.07.txt test.07.smf  0.025
    21  8 2 test.08.txt test.08.smf  0.010
    22  9 3 test.09.txt test.09.smf  0.000
    23 10 3 test.10.txt test.10.smf -0.025
    24 11 3 test.11.txt test.11.smf  0.025
    25 12 3 test.12.txt test.12.smf  0.010
     20 1 1 $OUTDIR/test.01  0.000
     21 2 1 $OUTDIR/test.02 -0.025
     22 3 1 $OUTDIR/test.03  0.025
     23 4 1 $OUTDIR/test.04  0.010
     24 5 2 $OUTDIR/test.05  0.000
     25 6 2 $OUTDIR/test.06 -0.025
     26 7 2 $OUTDIR/test.07  0.025
     27 8 2 $OUTDIR/test.08  0.010
     28 9 3 $OUTDIR/test.09  0.000
     2910 3 $OUTDIR/test.10 -0.025
     3011 3 $OUTDIR/test.11  0.025
     3112 3 $OUTDIR/test.12  0.010
    2632end
    2733
    2834list stackdata
    29  1 stack.01.txt stack.01.cmf 0.010
    30  2 stack.02.txt stack.02.cmf 0.020
    31  3 stack.03.txt stack.03.cmf 0.030
     35 1 $OUTDIR/stack.01 0.010
     36 2 $OUTDIR/stack.02 0.020
     37 3 $OUTDIR/stack.03 0.030
    3238end
    3339 
     
    5460  exec mkgpc1.sh create $dbhost $dbname $dbuser $dbpass
    5561
    56   dbconnect $dbhost $dbuser $dbname
     62  dbconnect $dbhost $dbuser $dbname -p $dbpass
    5763
    5864  # system-wide info
     
    7076  # tapPLAN 4
    7177
     78  mkdir $OUTDIR
     79
    7280  local i catdir RA DEC ID rawfile cmffile offset
    73   $catdir = catdir.cam
     81  $catdir = $OUTDIR/catdir.cam
    7482  exec rm -rf $catdir
    7583
     
    8391    list word -split $imagedata:$i
    8492    $ID = $word:0
    85     $rawfile = $word:2
    86     $cmffile = $word:3
    87     $offset = $word:4
     93    $rawfile = $word:2\.txt
     94    $cmffile = $word:2\.smf
     95    $offset = $word:3
    8896
    8997    ctimes -ref 2008/01/01,$i\:00:00 -var mjd
     
    116124  # tapPLAN 4
    117125
     126  mkdir $OUTDIR
     127
    118128  local i catdir RA DEC ID rawfile cmffile offset
    119   $catdir = catdir.stk
     129  $catdir = $OUTDIR/catdir.stk
    120130  exec rm -rf $catdir
    121131
     
    126136    list word -split $stackdata:$i
    127137    $ID = $word:0
    128     $rawfile = $word:1
    129     $cmffile = $word:2
    130     $offset = $word:3
     138    $rawfile = $word:1\.txt
     139    $cmffile = $word:1\.cmf
     140    $offset = $word:2
    131141
    132142    mkinput $offset $rawfile
     
    150160  local myID filename
    151161  $myID = $1
    152   $filename = `basename $2 .smf`
    153   pwd -var cwd
    154 
     162  $filename = $2
     163
     164  # pwd -var cwd
    155165  # NOTE: the filename is an absolute path without cmf extension
     166  # XXX: no longer true
    156167
    157168  # a single exposure
     
    159170  dbinsert chipRun (exp_id, chip_id) values ($myID, $myID)
    160171  dbinsert camRun (chip_id, cam_id, dist_group, software_ver) values ($myID, $myID, "testgroup", "testsoft")
    161   dbinsert camProcessedExp (cam_id, path_base) values ($myID, "$cwd/$filename")
     172  dbinsert camProcessedExp (cam_id, path_base) values ($myID, "$filename")
    162173  dbinsert fakeRun (fake_id, cam_id) values ($myID, $myID)
    163174  dbinsert warpRun (warp_id, fake_id) values ($myID, $myID)
     
    187198
    188199    $expID = $tmp:0
    189     $expfile = $tmp:3
     200    $expfile = $tmp:2
    190201    insert.exp $expID $expfile
    191202    dbinsert stackInputSkyfile (stack_id, warp_id) values ($stkID, $expID)
     
    206217    list word -split $stackdata:$i
    207218    $ID = $word:0
    208     $cmffile = $word:2
     219    $cmffile = $word:1
    209220    insert.stack $ID $cmffile
    210221  end
Note: See TracChangeset for help on using the changeset viewer.