Skip to content

Commit

Permalink
better identify C/C unit tests in mysql-test
Browse files Browse the repository at this point in the history
  • Loading branch information
vuvova committed Sep 12, 2016
1 parent 017195c commit 10e1ff8
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions mysql-test/suite/unit/suite.pm
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,15 @@ sub start_test {
my (@ctest_list)= `cd .. && ctest $opt_vs_config --show-only --verbose`;
return "No ctest" if $?;

my ($command, %tests);
my ($command, %tests, $prefix);
for (@ctest_list) {
chomp;
$command= $' if /^\d+: Test command: +/;
$tests{$'}=$command if /^ +Test +#\d+: +/;
if (/^\d+: Test command: +/) {
$command= $';
$prefix= /libmariadb/ ? 'conc_' : '';
} elsif (/^ +Test +#\d+: +/) {
$tests{$prefix.$'}=$command;
}
}
bless { ctests => { %tests } };
}

0 comments on commit 10e1ff8

Please sign in to comment.