IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 43111


Ignore:
Timestamp:
Sep 27, 2026, 2:48:07 PM (9 hours ago)
Author:
eugene
Message:

better test options for pstamp

Location:
branches/eam_branches/ipp-pstamp-20260421/pstamp/test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-pstamp-20260421/pstamp/test/pstamptest.reset.sh

    r43092 r43111  
    2828set day   = `date +%d`
    2929
    30 foreach f ($workdir/$year/$month/$day/*)
    31   echo rm -rf $f
    32        rm -r f$f
    33 end
     30test -e $workdir/$year/$month/$day
     31if ($status == 0) then
     32  set Ndir = `ls $workdir/$year/$month/$day`
     33
     34  if ($Ndir) then 
     35    foreach f ($workdir/$year/$month/$day/*)
     36      echo rm -rf $f
     37           rm -r f$f
     38    end
     39  endif
     40endif
     41
     42echo "removed old pstamp workdir entries"
    3443
    3544mysql -h localhost -u ipp -p pstamp < ~/src/panstarrs/ipp-pstamp-20260424/pstamp/doc/droptables.sql
  • branches/eam_branches/ipp-pstamp-20260421/pstamp/test/pstamptest.run.sh

    r43106 r43111  
    77## be added to the pstamp pantasks
    88
    9 ## These commands define access control for a specific user and/or domain
    10 if (0) then
    11   ./reset.sh
    12 endif
     9## This script also assumes the simtest.quickmos suite has been run
    1310
    1411# generate the faked web requests:
    1512
    16 if (0) then
     13if ($#argv != 1) then
     14  echo "USAGE: pstamptest.run.sh (mode)"
     15  echo " (mode) = 'make' or 'proc'"
     16  echo " make : generate a set of pstamp web requests"
     17  echo " proc : manually process the pstamp requests and jobs"
     18  exit 2;
     19endif
     20
     21set mode =
     22if ("$1" == "make") set mode = $1
     23if ("$1" == "proc") set mode = $1
     24if ($mode == "") then
     25  echo "ERROR: invalid value for (mode) : $1"
     26  exit 3
     27endif
     28
     29if ($mode == "make") then
    1730  # by exp_name (raw & chip)
    1831  pstamp_webrequest.pl --label TEST --dbname pstamp --dbserver localhost --username magnier@hawaii.edu --email magnier@hawaii.edu --project simtest --pixcenter --x 100 --y 100  --width 51 --height 51 --req_type byexp --stage raw  --id sim.003.000 --component XY00      --survey bypass --jpeg --allroi
    … …  
    2740endif
    2841
    29 if (1) then
     42if ($mode == "make") then
    3043  # select by exposure name, location by coordinates:
    3144  pstamp_webrequest.pl --label TEST --dbname pstamp --dbserver localhost --username magnier@hawaii.edu --email magnier@hawaii.edu --project simtest --ra 270.016608 --dec 30.026109 --width 50 --height 50 --req_type byexp --stage chip --id sim.003.000 --component XY11 --survey bypass --jpeg --allroi
    … …  
    5063endif
    5164
    52 set reqList = (`pstamptool -pendingreq -dbname pstamp | grep req_id     | awk '{print $3}'`)
    53 set i = 1
    54 while ($i <= $#reqList)
    55   ./proc_next_stamp.sh
    56   @ i++
    57 end
     65if ($mode == "proc") then
     66  set reqList = (`pstamptool -pendingreq -dbname pstamp | grep req_id     | awk '{print $3}'`)
     67  set i = 1
     68  while ($i <= $#reqList)
     69    ./pstamptest.proc.sh
     70    @ i++
     71  end
     72endif
    5873
    5974# failures:
Note: See TracChangeset for help on using the changeset viewer.