Changeset 374b14 in git for Tst/regress.cmd
- Timestamp:
- Jul 3, 1998, 12:05:54 PM (26 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 806778a83eab61259abe64e27c1ea79304685bb4
- Parents:
- 67a1821b3745e09b6240f2b0371039236ffd74f0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Tst/regress.cmd
r67a182 r374b14 2 2 3 3 ################################################################# 4 # $Id: regress.cmd,v 1. 19 1998-07-01 10:10:27obachman Exp $4 # $Id: regress.cmd,v 1.20 1998-07-03 10:05:54 obachman Exp $ 5 5 # FILE: regress.cmd 6 6 # PURPOSE: Script which runs regress test of Singular … … 110 110 # default value (in %) above which differences cause an error on -e 111 111 $error_val = 10; 112 # default value in 1/100 seconds, above which time differences are reported 113 $mintime_val = 10; 112 114 $hostname = &mysystem_catch("hostname"); 113 115 chop $hostname; … … 205 207 while ($line && $new_line) 206 208 { 207 if ($line =~ /^STDIN .*(\d+)>/)209 if ($line =~ /^STDIN\s*(\d+)/) 208 210 { 209 211 $prefix = "STDIN $1>"; … … 213 215 $crit = $1; 214 216 $res = $2; 215 if ($line =~ /\/\/.*tst_ignore:$crit.*$hostname:(\d+)/) 217 if ($res > $mintime_val && 218 $new_line =~ /\/\/.*tst_ignore:$crit.*$hostname:(\d+)/) 216 219 { 217 220 $new_res = $1; 218 $res_diff = $res - $new_res; 219 $res_diff_pc = $res_diff / $res unless ($res == 0); 220 $res_diff_pc = - $res_diff_pc if ($res_diff_pc < 0); 221 $res_diff = $new_res - $res; 222 $res_diff_pc = int((($new_res / $res) - 1)*100); 221 223 $res_diff_line = 222 "$prefix $crit res:$res new:$new_res diff:$res_diff %:$res_diff_pc";224 "$prefix $crit new:$new_res old:$res diff:$res_diff %:$res_diff_pc"; 223 225 print (STATUS_DIFF_FILE "$res_diff_line\n") 224 if ($error{$crit} < $res_diff_pc || $report{$crit} < $res_diff_pc); 226 if ((defined($error{$crit}) && $error{$crit}<abs($res_diff_pc)) 227 || 228 (defined($report{$crit}) && $report{$crit}<abs($res_diff_pc))); 225 229 226 230 print "$res_diff_line\n" 227 231 if ($verbosity > 0 && 228 ($error{$crit} < $res_diff_pc || $report{$crit} < $res_diff_pc)); 232 ((defined($error{$crit}) && $error{$crit}<abs($res_diff_pc)) 233 || 234 (defined($report{$crit}) && $report{$crit}<abs($res_diff_pc)))); 235 229 236 if ($exit_status == 0) 230 237 { 231 $exit_status = $exit_status || ($error{$crit} < $res_diff_pc); 238 $exit_status = (defined($error{$crit}) 239 && $error{$crit} < abs($res_diff_pc)); 232 240 $error_cause = "Status error for $crit at $prefix\n" 233 241 if ($exit_status);
Note: See TracChangeset
for help on using the changeset viewer.