Commit 10e1ff83 authored by Sergei Golubchik's avatar Sergei Golubchik

better identify C/C unit tests in mysql-test

parent 017195c3
......@@ -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 } };
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment