From 071db41627758963a1cedbed923c5e2a51543985 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Wed, 3 May 2017 16:26:47 +0200 Subject: [PATCH] Skip all non-executables in run-test-suites.pl The script was blacklisting extensions. Rather than keep adding to the extensions, whitelist executables. --- tests/scripts/run-test-suites.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/scripts/run-test-suites.pl b/tests/scripts/run-test-suites.pl index 58f827c14..1f73a545e 100755 --- a/tests/scripts/run-test-suites.pl +++ b/tests/scripts/run-test-suites.pl @@ -33,7 +33,10 @@ if ( defined($switch) && ( $switch eq "-v" || $switch eq "--verbose" ) ) { $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; # in case test suites are linked dynamically