mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
better identify C/C unit tests in mysql-test
This commit is contained in:
@ -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 } };
|
||||
}
|
||||
|
Reference in New Issue
Block a user