Changeset e45fd3 in git for Tst/regress.cmd
- Timestamp:
- Oct 27, 1998, 6:31:21 PM (25 years ago)
- Branches:
- (u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
- Children:
- 85c8634a283105981871af90f7a0b4842d2221cf
- Parents:
- 62bc0ac779982230625bd5dccd75117ede60ef04
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Tst/regress.cmd
r62bc0ac re45fd3 2 2 3 3 ################################################################# 4 # $Id: regress.cmd,v 1.2 4 1998-07-14 14:18:31obachman Exp $4 # $Id: regress.cmd,v 1.25 1998-10-27 17:31:13 obachman Exp $ 5 5 # FILE: regress.cmd 6 6 # PURPOSE: Script which runs regress test of Singular … … 105 105 } 106 106 # sed scripts which are applied to res files before they are diff'ed 107 $sed_scripts = "-e '/used time:/d' -e '/tst_ignore:/d' -e '/Id:/d' ";107 $sed_scripts = "-e '/used time:/d' -e '/tst_ignore:/d' -e '/Id:/d' -e '/error occurred in/d'"; 108 108 # default value (in %) above which differences are reported on -r 109 109 $report_val = 5; … … 197 197 local($line,$new_line,$prefix,$crit,$res,$new_res); 198 198 local($res_diff,$res_diff_pc,$res_diff_line); 199 local($exit_status ) = 0;199 local($exit_status, $reported) = (0, 0); 200 200 local($error_cause) = ""; 201 201 … … 209 209 $new_line = <NEW_RES_FILE>; 210 210 $line = <RES_FILE>; 211 211 212 while ($line && $new_line) 212 213 { … … 224 225 $res_diff_line = 225 226 "$prefix >> $crit :: new:$new_res old:$res diff:$res_diff %:$res_diff_pc"; 226 print (STATUS_DIFF_FILE "$res_diff_line\n") 227 if ((defined($error{$crit}) && $error{$crit}<abs($res_diff_pc)) 227 if ((defined($error{$crit}) && $error{$crit}<abs($res_diff_pc)) 228 228 || 229 (defined($report{$crit}) && $report{$crit}<abs($res_diff_pc))); 230 231 print "$res_diff_line\n" 232 if ($verbosity > 0 && 233 ((defined($error{$crit}) && $error{$crit}<abs($res_diff_pc)) 234 || 235 (defined($report{$crit}) && $report{$crit}<abs($res_diff_pc)))); 229 (defined($report{$crit}) && $report{$crit}<abs($res_diff_pc))) 230 { 231 $reported = 1; 232 print (STATUS_DIFF_FILE "$res_diff_line\n"); 233 print "$res_diff_line\n" if ($verbosity > 0); 234 } 236 235 237 236 if ($exit_status == 0) … … 251 250 close(STATUS_DIFF_FILE); 252 251 mysystem("rm -f $root.stat.sdiff") 253 if ($exit_status == 0 && $keep ne "yes"); 254 252 if ($reported == 0 && $exit_status == 0 && $keep ne "yes"); 255 253 return ($exit_status, $error_cause); 256 254 } … … 447 445 if ($keep ne "yes") 448 446 { 449 &mysystem("$rm -f tst_status.out $root.new.res $root.res $root. *diff $root.new.stat");447 &mysystem("$rm -f tst_status.out $root.new.res $root.res $root.diff $root.new.stat"); 450 448 } 451 449 }
Note: See TracChangeset
for help on using the changeset viewer.