1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

better identify C/C unit tests in mysql-test

This commit is contained in:
Sergei Golubchik
2016-09-04 13:42:01 +02:00
parent 017195c363
commit 10e1ff83ec

View File

@ -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 } };
}