- Timestamp:
- Sep 27, 2026, 2:48:07 PM (16 hours ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-pstamp-20260421/pstamp/test/pstamptest.run.sh
r43106 r43111 7 7 ## be added to the pstamp pantasks 8 8 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 13 10 14 11 # generate the faked web requests: 15 12 16 if (0) then 13 if ($#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; 19 endif 20 21 set mode = 22 if ("$1" == "make") set mode = $1 23 if ("$1" == "proc") set mode = $1 24 if ($mode == "") then 25 echo "ERROR: invalid value for (mode) : $1" 26 exit 3 27 endif 28 29 if ($mode == "make") then 17 30 # by exp_name (raw & chip) 18 31 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 … … 27 40 endif 28 41 29 if ( 1) then42 if ($mode == "make") then 30 43 # select by exposure name, location by coordinates: 31 44 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 … … 50 63 endif 51 64 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 65 if ($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 72 endif 58 73 59 74 # failures:
Note:
See TracChangeset
for help on using the changeset viewer.
