Changeset 14037
- Timestamp:
- Jul 5, 2007, 5:46:11 PM (19 years ago)
- Location:
- trunk/ippTools
- Files:
-
- 4 edited
-
scripts/regtest.sh (modified) (3 diffs)
-
share/regtool_pendingexp.sql (modified) (2 diffs)
-
src/pxinject.c (modified) (2 diffs)
-
src/pxinjectConfig.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/scripts/regtest.sh
r14023 r14037 8 8 echo -e "YES\nipp\n\n" | pxadmin -recreate || exit 1 9 9 10 exp_id1=`$inject -newExp -tmp_exp_name t10 -tmp_inst gpc -tmp_telescope ps1 - imfiles 4 -workdir file::///some/path -simple` || exit 110 exp_id1=`$inject -newExp -tmp_exp_name t10 -tmp_inst gpc -tmp_telescope ps1 -workdir file::///some/path -simple` || exit 1 11 11 12 12 for ID in `seq 0 3`; do … … 16 16 $inject -updatenewExp -exp_id $exp_id1 -state run 17 17 18 exp_id2=`$inject -newExp -tmp_exp_name t11 -tmp_inst gpc -tmp_telescope ps1 - imfiles 4 -workdir file::///some/path -simple` || exit 118 exp_id2=`$inject -newExp -tmp_exp_name t11 -tmp_inst gpc -tmp_telescope ps1 -workdir file::///some/path -simple` || exit 1 19 19 20 20 for ID in `seq 0 3`; do … … 23 23 24 24 $inject -updatenewExp -exp_id $exp_id2 -state run 25 25 26 26 27 $regtool -pendingimfile || exit 1 -
trunk/ippTools/share/regtool_pendingexp.sql
r14024 r14037 1 1 SELECT DISTINCT * FROM 2 2 (SELECT 3 newExp.* 3 newExp.*, 4 newImfile.tmp_class_id, 5 rawImfile.tmp_class_id as raw_tmp_class_id 4 6 FROM newExp 5 7 JOIN newImfile … … 7 9 LEFT JOIN rawExp 8 10 USING(exp_id) 11 LEFT JOIN rawImfile 12 ON newImfile.exp_id = rawImfile.exp_id 13 AND newImfile.tmp_class_id = rawImfile.tmp_class_id 9 14 WHERE 10 15 newExp.state = 'run' 11 16 AND rawExp.exp_id IS NULL 12 AND newExp.imfiles = 13 (SELECT COUNT(exp_id) FROM rawImfile 14 WHERE rawImfile.exp_id = newExp.exp_id)) as Foo 17 GROUP BY 18 newExp.exp_id 19 HAVING 20 COUNT(newImfile.tmp_class_id) = COUNT(rawImfile.tmp_class_id) 21 ) as Foo -
trunk/ippTools/src/pxinject.c
r14023 r14037 107 107 return false; 108 108 } 109 psS32 imfiles = psMetadataLookupS32(&status, config->args, "-imfiles");110 if (!status) {111 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -imfiles");112 return false;113 }114 if (!imfiles) {115 psError(PS_ERR_UNKNOWN, true, "-imfiles is required");116 return false;117 }118 109 119 110 psString workdir = psMetadataLookupStr(&status, config->args, "-workdir"); … … 130 121 0x0, // exp_id 131 122 tmp_exp_name, 132 "reg", // state133 123 tmp_camera, 134 124 tmp_telescope, 135 imfiles,125 "reg", // state 136 126 workdir, 137 127 "dirty" -
trunk/ippTools/src/pxinjectConfig.c
r14023 r14037 51 51 psMetadataAddStr(newExpArgs, PS_LIST_TAIL, "-tmp_telescope", 0, 52 52 "define the telescope name (required)", NULL); 53 psMetadataAddS32(newExpArgs, PS_LIST_TAIL, "-imfiles", 0,54 "define the number of imfiles in this exp (required)", 0);55 53 psMetadataAddStr(newExpArgs, PS_LIST_TAIL, "-workdir", 0, 56 54 "define workdir (required)", 0); … … 62 60 psMetadataAddStr(newImfileArgs, PS_LIST_TAIL, "-exp_id", 0, 63 61 "define the exp_id (required)", NULL); 64 #if 065 psMetadataAddStr(newImfileArgs, PS_LIST_TAIL, "-class", 0,66 "define the class (required)", NULL);67 #endif68 62 psMetadataAddStr(newImfileArgs, PS_LIST_TAIL, "-tmp_class_id", 0, 69 63 "define the class ID (required)", NULL);
Note:
See TracChangeset
for help on using the changeset viewer.
