mirror of
https://github.com/MariaDB/server.git
synced 2026-04-30 12:15:32 +02:00
better identify C/C unit tests in mysql-test
This commit is contained in:
parent
017195c363
commit
10e1ff83ec
1 changed files with 7 additions and 3 deletions
|
|
@ -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 } };
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue