summaryrefslogtreecommitdiff
path: root/lib/sbin/RunTest.pl
diff options
context:
space:
mode:
authorallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>2002-04-27 18:01:27 +0000
committerallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>2002-04-27 18:01:27 +0000
commitd27cb3b6fe35b2f202d034575b9ca6a17f50b9bb (patch)
tree6f19016b6f45cfe3e4f5b40deff8f817961c8ee1 /lib/sbin/RunTest.pl
parent01fe2fe97dbfea193ae3f7aea73b2a7a355b2414 (diff)
Added an option to rerun a test but show the Cactus output on screen
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2765 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/sbin/RunTest.pl')
-rw-r--r--lib/sbin/RunTest.pl16
1 files changed, 12 insertions, 4 deletions
diff --git a/lib/sbin/RunTest.pl b/lib/sbin/RunTest.pl
index 6963fa09..82da06a6 100644
--- a/lib/sbin/RunTest.pl
+++ b/lib/sbin/RunTest.pl
@@ -48,6 +48,7 @@ while ($choice !~ /^Q/i)
print " Run entire set of tests interactively [I]\n";
print " Choose test from [T]horn or [A]rrangement\n";
print " Rerun previous test [R]\n";
+ print " Rerun previous test and show run output on screen [S]\n";
print " Compare all files in the test output directories [O]\n";
print " Customize testsuite checking [C]\n";
print " Quit [Q]\n\n";
@@ -79,7 +80,7 @@ while ($choice !~ /^Q/i)
print " \"$testdata->{\"$thorn $test DESC\"}\"\n";
if ($choice !~ /^O/i)
{
- $testdata = &RunTest($test,$thorn,$config_data,$testdata);
+ $testdata = &RunTest("log",$test,$thorn,$config_data,$testdata);
}
$rundata = &CompareTestFiles($test,$thorn,\%runconfig,$rundata,$config_data,$testdata);
@@ -107,20 +108,27 @@ while ($choice !~ /^Q/i)
print "------------------------------------------------------------------------\n\n";
print " Test $thorn: $test\n";
print " \"$testdata->{\"$thorn $test DESC\"}\"\n";
- $testdata = &RunTest($tests[2*$i],$tests[2*$i+1],$config_data,$testdata);
+ $testdata = &RunTest("log",$tests[2*$i],$tests[2*$i+1],$config_data,$testdata);
$rundata = &CompareTestFiles($tests[2*$i],$tests[2*$i+1],\%runconfig,$rundata,$config_data,$testdata);
$rundata = &ReportOnTest($tests[2*$i],$tests[2*$i+1],$rundata,$testdata);
&ViewResults($tests[2*$i],$tests[2*$i+1],\%runconfig,$rundata,$testdata);
}
}
- elsif ($choice =~ /^R/i)
+ elsif ($choice =~ /^[RS]/i)
{
if ($thorn && $test)
{
print "------------------------------------------------------------------------\n\n";
print " Test $thorn: $test \n";
print " \"$testdata->{\"$thorn $test DESC\"}\"\n";
- $testdata = &RunTest($test,$thorn,$config_data,$testdata);
+ if ($choice =~ /^S/i)
+ {
+ $testdata = &RunTest("log stdout",$test,$thorn,$config_data,$testdata);
+ }
+ else
+ {
+ $testdata = &RunTest("log",$test,$thorn,$config_data,$testdata);
+ }
$rundata = &CompareTestFiles($test,$thorn,\%runconfig,$rundata,$config_data,$testdata);
$rundata = &ReportOnTest($test,$thorn,,$rundata,$testdata);
&ViewResults($test,$thorn,\%runconfig,$rundata,$testdata);