git://git.exim.org
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
d87df92
)
Skip CVS directory when scanning numbered script directories in test
author
Philip Hazel
<ph10@hermes.cam.ac.uk>
Thu, 20 Apr 2006 15:34:25 +0000
(15:34 +0000)
committer
Philip Hazel
<ph10@hermes.cam.ac.uk>
Thu, 20 Apr 2006 15:34:25 +0000
(15:34 +0000)
suite runtest script.
test/runtest
patch
|
blob
|
history
diff --git
a/test/runtest
b/test/runtest
index 2e0c724175ce277d53de8e20e620ba75f88d18d7..d6b3fac7f7dbfc3c5988796d9fee49ea6cb25a0f 100755
(executable)
--- a/
test/runtest
+++ b/
test/runtest
@@
-1,6
+1,6
@@
#! /usr/bin/perl -w
#! /usr/bin/perl -w
-# $Cambridge: exim/test/runtest,v 1.
7 2006/04/20 14:11:29
ph10 Exp $
+# $Cambridge: exim/test/runtest,v 1.
8 2006/04/20 15:34:25
ph10 Exp $
###############################################################################
# This is the controlling script for the "new" test suite for Exim. It should #
###############################################################################
# This is the controlling script for the "new" test suite for Exim. It should #
@@
-2558,12
+2558,25
@@
opendir(DIR, "scripts") || tests_exit(-1, "Failed to opendir(\"scripts\"): $!");
@test_dirs = sort readdir(DIR);
closedir(DIR);
@test_dirs = sort readdir(DIR);
closedir(DIR);
+# Remove . and .. and CVS from the list.
+
+for ($i = 0; $i < @test_dirs; $i++)
+ {
+ my($d) = $test_dirs[$i];
+ if ($d eq "." || $d eq ".." || $d eq "CVS")
+ {
+ splice @test_dirs, $i, 1;
+ $i--;
+ }
+ }
+
+# Scan for relevant tests
+
for ($i = 0; $i < @test_dirs; $i++)
{
my($testdir) = $test_dirs[$i];
my($wantthis) = 1;
for ($i = 0; $i < @test_dirs; $i++)
{
my($testdir) = $test_dirs[$i];
my($wantthis) = 1;
- next if $testdir eq "." || $testdir eq "..";
print ">>Checking $testdir\n" if $debug;
# Skip this directory if the first test is equal or greater than the first
print ">>Checking $testdir\n" if $debug;
# Skip this directory if the first test is equal or greater than the first