summaryrefslogtreecommitdiff
path: root/lib/sbin/RunTestUtils.pl
diff options
context:
space:
mode:
authorallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>2002-04-14 16:25:56 +0000
committerallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>2002-04-14 16:25:56 +0000
commit839034e9c22b67d0977747e860ebb767d6fec5af (patch)
tree7e40a619629cb3524db060cda1e554b2f70b9902 /lib/sbin/RunTestUtils.pl
parentebe169c20aa6be2ad8a73e569518d4c40aed9065 (diff)
Change to user interface. Unfortunately now I replaced the choice
"All" with "Entire" so as not to clash with "Arrangement", but the default is still to run all tests so it shouldn't be too bad. Will add soon an option to run all the tests for a thorn/arrangement. Closes Cactus/802 git-svn-id: http://svn.cactuscode.org/flesh/trunk@2717 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/sbin/RunTestUtils.pl')
-rw-r--r--lib/sbin/RunTestUtils.pl30
1 files changed, 17 insertions, 13 deletions
diff --git a/lib/sbin/RunTestUtils.pl b/lib/sbin/RunTestUtils.pl
index 924b978e..5438fda5 100644
--- a/lib/sbin/RunTestUtils.pl
+++ b/lib/sbin/RunTestUtils.pl
@@ -10,7 +10,7 @@ sub Configure
if($ENV{"CONFIGS_DIR"})
{
$configs_dir = $ENV{"CONFIGS_DIR"};
- }
+ }
else
{
$configs_dir = "configs";
@@ -291,7 +291,6 @@ sub InitialiseTestData
$testdata{"FULL"} = "";
$testdata{"TOLERANCE"} = 13;
- $testdata{"NFAILED"} = 0;
$testdata{"NNODATAFILES"} = 0;
$testdata{"NRUNNABLE"} = 0;
$testdata{"NUNRUNNABLE"} = 0;
@@ -530,14 +529,16 @@ sub WriteFullResults
print " Summary for configuration $config\n\n";
$total = $testdata{"NUNRUNNABLE"}+$testdata{"NRUNNABLE"};
- print " Total available tests -> $total\n";
- print " Unrunnable tests -> $testdata{\"NUNRUNNABLE\"}\n";
- print " Runnable tests -> $testdata{\"NRUNNABLE\"}\n";
- print " Total number of thorns -> ".scalar(split(" ",$testdata{"FULL"}))."\n";
- print " Number of tested thorns -> $tested\n";
-
- print " Number of tests passed -> $number_passed1\n";
- print " Number failed -> $testdata{\"NFAILED\"}\n";
+ print " Total available tests -> $total\n";
+ print " Unrunnable tests -> $testdata{\"NUNRUNNABLE\"}\n";
+ print " Runnable tests -> $testdata{\"NRUNNABLE\"}\n";
+ print " Total number of thorns -> ".scalar(split(" ",$testdata{"FULL"}))."\n";
+ print " Number of tested thorns -> $tested\n";
+
+ print " Number of tests passed -> $testdata{\"NPASSED\"}\n";
+ print " Number passed only to\n";
+ print " set tolerance -> $testdata{\"NPASSEDTOTOLERANCE\"}\n";
+ print " Number failed -> $testdata{\"NFAILED\"}\n";
if ($testdata{"NFAILED"})
@@ -835,7 +836,7 @@ sub CompareTestFiles
{
$summary = "Success: $testdata{\"$inthorn $test NDATAFILES\"} files identical";
printf("\n $summary\n");
- $number_passed1++;
+ $testdata{"NPASSED"}++;
}
else
{
@@ -843,8 +844,8 @@ sub CompareTestFiles
{
$summary = "Success (to $tolerance figures): $testdata{\"$inthorn $test NDATAFILES\"} compared, $blewit files differ in the last digits";
printf "\n $summary\n";
- $number_passed1++;
- $number_passed2++;
+ $testdata{"NPASSED"}++;
+ $testdata{"NPASSEDTOTOLERENCE"}++;
}
else
{
@@ -866,6 +867,9 @@ sub ResetTestStatistics
{
my(%testdata) = @_;
+ $testdata{"NFAILED"} = 0;
+ $testdata{"NPASSED"} = 0;
+ $testdata{"NPASSEDTOTOLERANCE"} = 0;
foreach $thorn (split(" ",$testdata{"FULL"}))
{
$testdata{"$thorn TESTED"} = 0;