summaryrefslogtreecommitdiff
path: root/lib/sbin/RunTest.pl
diff options
context:
space:
mode:
authorallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>2002-05-29 15:38:56 +0000
committerallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>2002-05-29 15:38:56 +0000
commita8065d0f390a6533b66a2a605981ce0148925cfe (patch)
tree981f81e6f06f08f9c0ec83550f55f82499047eb3 /lib/sbin/RunTest.pl
parente4e690f9462c026e1c3afd4cd85fd7787f8a003f (diff)
Added support for a config file for testsuites, where IO thorns can provide information about the data files which they produce, and thorns providing testsuites can provide information about the tests they are supplying. The syntax for the config file is not finalised yet, and will be subject to change depending on the feedback we get.
The config file is called "config" and must be located in the "test" directory of a thorn. Right now, the only line recognized is EXTENSIONS dat xl yl zl which should be added by any thorn providing output files eg with extensions dat xl yl zl which should be tested. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2864 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/sbin/RunTest.pl')
-rw-r--r--lib/sbin/RunTest.pl18
1 files changed, 15 insertions, 3 deletions
diff --git a/lib/sbin/RunTest.pl b/lib/sbin/RunTest.pl
index 82da06a6..50469d97 100644
--- a/lib/sbin/RunTest.pl
+++ b/lib/sbin/RunTest.pl
@@ -16,13 +16,23 @@ $config = shift;
# Set up RunTest configuration
$config_data = &Configure($config,$home_dir,$prompt);
+%runconfig = &InitialiseRunData();
+
+# ----------------------------------------------------
+
+# Sort out the static test data
+
# Initialise testdata database
$testdata = &InitialiseTestData();
-%runconfig = &InitialiseRunData();
-
# Find test parameter files
-$testdata = &FindAllTests($config_data);
+$testdata = &FindTestParameterFiles($testdata,$config_data);
+
+# Parse test config files
+$testdata = &ParseTestConfigs($testdata,$config_data);
+
+# Find the Archive Datafiles
+$testdata = &FindTestArchiveFiles($testdata);
# Parse test parameter files
$testdata = &ParseAllParameterFiles($testdata);
@@ -30,6 +40,8 @@ $testdata = &ParseAllParameterFiles($testdata);
# Print database
#&PrintDataBase($testdata);
+# ----------------------------------------------------
+
$haverunall = 0;
while ($choice !~ /^Q/i)