summaryrefslogtreecommitdiff
path: root/lib/sbin/RunTestUtils.pl
diff options
context:
space:
mode:
authorallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>2002-05-21 00:23:52 +0000
committerallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>2002-05-21 00:23:52 +0000
commit04486aa90af1c73f82f02a0bfe79a62d6d492d2b (patch)
tree90a4490f4cced16640d104b3ebb567fc107ce9fe /lib/sbin/RunTestUtils.pl
parent6a9bdcc53491660dff1443904142e3ddf7a5eacf (diff)
Add support for new file names
Removed some blank lines git-svn-id: http://svn.cactuscode.org/flesh/trunk@2837 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/sbin/RunTestUtils.pl')
-rw-r--r--lib/sbin/RunTestUtils.pl13
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/sbin/RunTestUtils.pl b/lib/sbin/RunTestUtils.pl
index c7814e69..37cc162d 100644
--- a/lib/sbin/RunTestUtils.pl
+++ b/lib/sbin/RunTestUtils.pl
@@ -432,7 +432,7 @@ sub FindFiles
foreach $f (@tmp)
{
- if ($f =~ /(xl|yl|zl|dl|tl|gnuplot|asc|gauss|alm|ul)$/)
+ if ($f =~ /(xl|yl|zl|dl|tl|gnuplot|asc|gauss|alm|ul|xg)$/)
{
$recognizedfiles .= " $f";
}
@@ -804,7 +804,6 @@ sub CompareTestFiles
# Compare each file in the archived test directory
-
foreach $file (split(" ",$testdata->{"$inthorn $test DATAFILES"}))
{
$newfile = "$test_dir$sep$file";
@@ -984,7 +983,7 @@ sub CompareTestFiles
print " TESTSUITE ERROR: $newfile not compared\n";
}
- for ($count = 0; $count < $nold; $count++)
+ for ($count = 1; $count <= $nold; $count++)
{
if ($maxdiff[$count])
{
@@ -1043,7 +1042,7 @@ sub ReportOnTest
$rundata->{"$thorn $test NFAILWEAK"}++;
if ($rundata->{"$thorn $test $file NFAILSTRONG"} == 0)
{
- print "\n - $file: differences below tolerance on $rundata->{\"$thorn $test $file NFAILWEAK\"} lines\n";
+ print "\n - $file: differences below tolerance on $rundata->{\"$thorn $test $file NFAILWEAK\"} lines";
}
else
{
@@ -1089,7 +1088,8 @@ sub ReportOnTest
# (Note this is not so bad)
foreach $file (split (" ",$rundata->{"$thorn $test TESTFILES"}))
{
- if ($testdata->{"$thorn $test DATAFILES"} !~ m:\b$file\b:)
+ $myfile = quotemeta($file);
+ if ($testdata->{"$thorn $test DATAFILES"} !~ m:\b$myfile\b:)
{
print " $file not in thorn archive\n";
$rundata->{"$thorn $test NFILEEXTRA"}++;
@@ -1101,7 +1101,8 @@ sub ReportOnTest
# (Note this is bad)
foreach $file (split (" ",$testdata->{"$thorn $test DATAFILES"}))
{
- if ($rundata->{"$thorn $test TESTFILES"} !~ m:\b$file\b:)
+ $myfile = quotemeta($file);
+ if ($rundata->{"$thorn $test TESTFILES"} !~ m:\b$myfile\b:)
{
print " $file not created in test\n";
$rundata->{"$thorn $test NFILEMISSING"}++;