Changeset f5128b8 in git for Tst/regress.cmd
- Timestamp:
- Feb 12, 2009, 4:42:38 PM (15 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- dfd21411a39a507a93f99303b72f21a2030348f4
- Parents:
- 3735d1567b97cc35de0aeae181e4401fcb3a6178
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Tst/regress.cmd
r3735d1 rf5128b8 2 2 3 3 ################################################################# 4 # $Id: regress.cmd,v 1. 39 2004-02-12 13:00:24 SingularExp $4 # $Id: regress.cmd,v 1.40 2009-02-12 15:42:38 motsak Exp $ 5 5 # FILE: regress.cmd 6 6 # PURPOSE: Script which runs regress test of Singular … … 192 192 193 193 # prepare the result files: 194 &mysystem("$cat $root.res | $tr -d '\\013' | $sed $sed_scripts > $root.res.cleaned");195 &mysystem("$cat $root.new.res | $tr -d '\\013' | $sed $sed_scripts > $root.new.res.cleaned");194 &mysystem("$cat \"$root.res\" | $tr -d '\\013' | $sed $sed_scripts > \"$root.res.cleaned\""); 195 &mysystem("$cat \"$root.new.res\" | $tr -d '\\013' | $sed $sed_scripts > \"$root.new.res.cleaned\""); 196 196 197 197 # doo the diff call 198 $exit_status = &mysystem("$diff -w -b $root.res.cleaned $root.new.res.cleaned > $root.diff2>&1");198 $exit_status = &mysystem("$diff -w -b \"$root.res.cleaned\" \"$root.new.res.cleaned\" > \"$root.diff\" 2>&1"); 199 199 200 200 # clean up time 201 &mysystem("$rm -f $root.res.cleaned $root.new.res.cleaned");201 &mysystem("$rm -f \"$root.res.cleaned\" \"$root.new.res.cleaned\""); 202 202 203 203 # there seems to be a bug here somewhere: even if diff reported … … 334 334 close(NEW_RES_FILE); 335 335 close(TEMP_FILE); 336 &mysystem("$rm $root.tmp.stat");336 &mysystem("$rm \"$root.tmp.stat\""); 337 337 return (1, "Can not find '$prefix >> $crit' in $root.stat\n"); 338 338 } … … 354 354 close(NEW_RES_FILE); 355 355 close(TEMP_FILE); 356 &mysystem("$mv -f $root.tmp.stat $root.stat");357 &mysystem("$rm -f $root.new.stat $root.stat.sdiff") unless $keep eq "yes";356 &mysystem("$mv -f \"$root.tmp.stat\" \"$root.stat\""); 357 &mysystem("$rm -f \"$root.new.stat\" \"$root.stat.sdiff\"") unless $keep eq "yes"; 358 358 return ; 359 359 } … … 386 386 if ((-r "$root.res.gz.uu") && ! ( -z "$root.res.gz.uu")) 387 387 { 388 $exit_status = &mysystem("$uudecode $root.res.gz.uu > /dev/null 2>&1; $gunzip -f $root.res.gz");388 $exit_status = &mysystem("$uudecode \"$root.res.gz.uu\" > /dev/null 2>&1; $gunzip -f \"$root.res.gz\""); 389 389 if ($exit_status) 390 390 { … … 400 400 } 401 401 402 my $resfile = " $root.new.res";403 $resfile = " $root.mtrack.res" if (defined($mtrack));402 my $resfile = "\"$root.new.res\""; 403 $resfile = "\"$root.mtrack.res\"" if (defined($mtrack)); 404 404 my $statfile = "$root.new.stat"; 405 &mysystem("$rm -f $statfile");405 &mysystem("$rm -f \"$statfile\""); 406 406 if (defined($mtrack)) 407 407 { 408 $system_call = "$cat $root.tst| sed -e 's/\\\\\$/LIB \"general.lib\"; killall(); killall(\"proc\");kill killall;system(\"mtrack\", \"$root.mtrack.unused\", $mtrack); \\\$/' | $singular $singularOptions ";408 $system_call = "$cat \"$root.tst\" | sed -e 's/\\\\\$/LIB \"general.lib\"; killall(); killall(\"proc\");kill killall;system(\"mtrack\", \"$root.mtrack.unused\", $mtrack); \\\$/' | $singular $singularOptions "; 409 409 $system_call .= ($verbosity > 3 ? " | $tee " : " > "); 410 $system_call .= " $root.mtrack.res";410 $system_call .= "\"$root.mtrack.res\""; 411 411 $system_call .= " 2>&1 " if ($verbosity <= 3); 412 412 } … … 417 417 if ($verbosity > 3 && !$WINNT) 418 418 { 419 $system_call = "$cat $root.tst| $singular --execute 'string tst_status_file=\"$statfile\";' $singularOptions | $tee $resfile";419 $system_call = "$cat \"$root.tst\" | $singular --execute 'string tst_status_file=\"$statfile\";' $singularOptions | $tee $resfile"; 420 420 } 421 421 else 422 422 { 423 $system_call = "$cat $root.tst| $singular --execute 'string tst_status_file=\"$statfile\";' $singularOptions > $resfile 2>&1";423 $system_call = "$cat \"$root.tst\" | $singular --execute 'string tst_status_file=\"$statfile\";' $singularOptions > $resfile 2>&1"; 424 424 } 425 425 } … … 446 446 elsif (! defined($mtrack) && !defined($timings_only)) 447 447 { 448 &mysystem("$rm -f $root.diff");448 &mysystem("$rm -f \"$root.diff\""); 449 449 if ($generate eq "yes") 450 450 { 451 &mysystem("$cp $resfile $root.res");451 &mysystem("$cp $resfile \"$root.res\""); 452 452 } 453 453 else … … 460 460 { 461 461 print "\n"; 462 mysystem("$cat $root.diff");462 mysystem("$cat \"$root.diff\""); 463 463 } 464 464 $error_cause = "Differences in res files"; … … 466 466 else 467 467 { 468 &mysystem("$rm -f $root.diff");468 &mysystem("$rm -f \"$root.diff\""); 469 469 } 470 470 } … … 472 472 } 473 473 474 mysystem("mv tst_status.out $statfile") 474 475 476 mysystem("mv tst_status.out \"$statfile\"") 475 477 if (! -e $statfile && -e "tst_status.out"); 476 478 … … 507 509 if ($generate eq "yes") 508 510 { 509 mysystem("$rm -f $root.stat") unless %merge;511 mysystem("$rm -f \"$root.stat\"") unless %merge; 510 512 ($exit_status, $error_cause) = tst_status_merge($root); 511 513 if (! $WINNT) 512 514 { 513 &mysystem("$gzip -cf $root.res | $uuencode $root.res.gz > $root.res.gz.uu");515 &mysystem("$gzip -cf \"$root.res\" | $uuencode \"$root.res.gz\" > \"$root.res.gz.uu\""); 514 516 } 515 517 else … … 529 531 if ($keep ne "yes") 530 532 { 531 &mysystem("$rm -f tst_status.out $resfile $root.res $root.diff $root.new.stat");533 &mysystem("$rm -f tst_status.out $resfile \"$root.res\" \"$root.diff\" \"$root.new.stat\""); 532 534 } 533 535 } … … 546 548 } 547 549 $total_checks_pass++ unless $exit_status; 550 551 mysystem("mv gmon.out \"gmon.$root.out\"") 552 if (-e "gmon.out"); 553 548 554 return ($exit_status); 549 555 }
Note: See TracChangeset
for help on using the changeset viewer.