Skip to content

Commit

Permalink
Windows,tests : fix pcre_test_bat test from pcre library.
Browse files Browse the repository at this point in the history
Tests that are not available in certain configurations, are marked as
Test command : NOT_AVAILABLE in ctest output.

pcre_test_bat does not work without ctest's -C option (--build-config
that was used earlier was wrong).
  • Loading branch information
vaintroub committed Feb 14, 2018
1 parent 8a923a6 commit d49f8e9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions mysql-test/suite/unit/suite.pm
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ sub start_test {
my $bin=$ENV{MTR_BINDIR} || '..';
return "Not run for embedded server" if $::opt_embedded_server;
return "Not configured to run ctest" unless -f "$bin/CTestTestfile.cmake";
my ($ctest_vs)= $opt_vs_config ? "--build-config $opt_vs_config" : "";
my (@ctest_list)= `cd "$bin" && ctest $opt_vs_config --show-only --verbose`;
my ($ctest_vs)= $opt_vs_config ? "-C $opt_vs_config" : "";
my (@ctest_list)= `cd "$bin" && ctest $ctest_vs --show-only --verbose`;
return "No ctest" if $?;

my ($command, %tests, $prefix);
Expand All @@ -51,7 +51,9 @@ sub start_test {
$command= $';
$prefix= /libmariadb/ ? 'conc_' : '';
} elsif (/^ +Test +#\d+: +/) {
$tests{$prefix.$'}=$command;
if ($command ne "NOT_AVAILABLE") {
$tests{$prefix.$'}=$command;
}
}
}
bless { ctests => { %tests } };
Expand Down

0 comments on commit d49f8e9

Please sign in to comment.