mirror of
https://github.com/curl/curl.git
synced 2026-07-24 09:37:25 +03:00
now sorts the test cases when "all" is used
This commit is contained in:
parent
eb72e001a7
commit
e0e67812de
1 changed files with 6 additions and 2 deletions
|
|
@ -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 .= " $_";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue