mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-10-02 06:57:24 +00:00
Use .datax for make test, not .data
Looking for the .data file doesn't work in out-of-tree builds. Use the .datax file instead. `make clean` removes all .datax files, so this resolves the issue of executables not present on the current branch being left behind after a branch change followed by a `make clean`. Signed-off-by: Gilles Peskine <[email protected]>
This commit is contained in:
@@ -50,10 +50,10 @@ GetOptions(
|
|||||||
'verbose|v:1' => \$verbose,
|
'verbose|v:1' => \$verbose,
|
||||||
) or die;
|
) or die;
|
||||||
|
|
||||||
# All test suites = executable files derived from a .data file.
|
# All test suites = executable files with a .datax file.
|
||||||
my @suites = ();
|
my @suites = ();
|
||||||
for my $data_file (glob 'suites/test_suite_*.data') {
|
for my $data_file (glob 'test_suite_*.datax') {
|
||||||
(my $base = $data_file) =~ s#^suites/(.*)\.data$#$1#;
|
(my $base = $data_file) =~ s/\.datax$//;
|
||||||
push @suites, $base if -x $base;
|
push @suites, $base if -x $base;
|
||||||
push @suites, "$base.exe" if -e "$base.exe";
|
push @suites, "$base.exe" if -e "$base.exe";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user