Changeset bff513 in git
- Timestamp:
- May 13, 2014, 11:06:58 AM (10 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 6368d110ccecd760ff94834c342e22196393a0b3
- Parents:
- fc1211afdba6f8ccb26fa000de50baaa77c11d98
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Tst/regress.cmd
rfc1211 rbff513 386 386 } 387 387 388 sub Set_withMP389 {390 if (! $withMP)391 {392 $withMP = "no";393 open(MP_TEST, ">MPTest");394 print(MP_TEST "system(\"with\", \"MP\"); \$");395 close(MP_TEST);396 mysystem("$singular -qt MPTest > withMPtest");397 if (open(MP_TEST, "<withMPtest"))398 {399 $_ = <MP_TEST>;400 $withMP = "yes" if (/^1/);401 close(MP_TEST);402 }403 mysystem("$rm -f withMPtest MPTest");404 }405 }406 407 408 sub MPok409 {410 local($root) = $_[0];411 412 if (! open(TST_FILE, "<$root.tst"))413 {414 print (STDERR "Can not open $root.tst for reading\n");415 return (0);416 }417 while (<TST_FILE>)418 {419 if (/\"MP.+:.*\"/)420 {421 &Set_withMP;422 return (0) if ($withMP eq "no");423 }424 }425 return (1);426 }427 428 388 sub Diff 429 389 { … … 636 596 $test_files{$test_file} = 1; 637 597 return (1); 638 }639 640 # ignore MP stuff, if this singular does not have MP641 if (! MPok($root))642 {643 print "--- $root " unless ($verbosity == 0);644 print "Warning: $root not tested: needs MP\n";645 testIgnored($test_file, "Warning: $root not tested: needs MP");646 $test_files{$test_file} = 0;647 return (0);648 598 } 649 599
Note: See TracChangeset
for help on using the changeset viewer.