From e0e67812deed2f8334a768bd37c7c74054058217 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 15 Nov 2000 08:21:14 +0000 Subject: now sorts the test cases when "all" is used --- tests/runtests.pl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tests') 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 .= " $_"; } } -- cgit v1.2.3