aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-11-15 08:21:14 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-11-15 08:21:14 +0000
commite0e67812deed2f8334a768bd37c7c74054058217 (patch)
treec39fe2d1dd9d38cb4bcd0612d12b62a19e96055a /tests
parenteb72e001a75c0ab6624120aa854c5d608c7602fe (diff)
now sorts the test cases when "all" is used
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runtests.pl8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl
index 0bc01a99f..1112d319f 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -398,10 +398,14 @@ if ( $TESTCASES eq "all") {
my @cmds = grep { /^command/ && -f "$TESTDIR/$_" } readdir(DIR);
closedir DIR;
- $TESTCASES="";
+ $TESTCASES=""; # start with no test cases
+
+ # cut off everything but the digits
for(@cmds) {
- # cut off everything but the digits
$_ =~ s/[a-z\/\.]*//g;
+ }
+ # the the numbers from low to high
+ for(sort { $a <=> $b } @cmds) {
$TESTCASES .= " $_";
}
}