mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-25 00:51:05 +00:00
Skip all non-executables in run-test-suites.pl
The script was blacklisting extensions. Rather than keep adding to the extensions, whitelist executables.
This commit is contained in:
parent
fd8332e15f
commit
071db41627
|
@ -33,7 +33,10 @@ if ( defined($switch) && ( $switch eq "-v" || $switch eq "--verbose" ) ) {
|
||||||
$verbose = TRUE;
|
$verbose = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
my @suites = grep { ! /\.(?:c|gcno|gcda|dSYM)$/ } glob 'test_suite_*';
|
# All test suites = executable files, excluding source files, debug
|
||||||
|
# and profiling information, etc. We can't just grep {! /\./} because
|
||||||
|
#some of our test cases' base names contain a dot.
|
||||||
|
my @suites = grep { -x $_ || /\.exe$/ } glob 'test_suite_*';
|
||||||
die "$0: no test suite found\n" unless @suites;
|
die "$0: no test suite found\n" unless @suites;
|
||||||
|
|
||||||
# in case test suites are linked dynamically
|
# in case test suites are linked dynamically
|
||||||
|
|
Loading…
Reference in a new issue