diff options
author | Daniel Stenberg <daniel@haxx.se> | 2000-11-15 08:21:14 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2000-11-15 08:21:14 +0000 |
commit | e0e67812deed2f8334a768bd37c7c74054058217 (patch) | |
tree | c39fe2d1dd9d38cb4bcd0612d12b62a19e96055a /tests | |
parent | eb72e001a75c0ab6624120aa854c5d608c7602fe (diff) |
now sorts the test cases when "all" is used
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/runtests.pl | 8 |
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 .= " $_"; } } |