]> granicus.if.org Git - curl/commitdiff
now sorts the test cases when "all" is used
authorDaniel Stenberg <daniel@haxx.se>
Wed, 15 Nov 2000 08:21:14 +0000 (08:21 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 15 Nov 2000 08:21:14 +0000 (08:21 +0000)
tests/runtests.pl

index 0bc01a99ff0611e0dcdde5f1e630b0a7ba3440c1..1112d319f2851a804b9c82ead3bca81e6b7ead34 100755 (executable)
@@ -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 .= " $_";
     }
 }