summaryrefslogtreecommitdiff
path: root/mysql-test/suite/unit
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2016-09-04 13:42:01 +0200
committerSergei Golubchik <serg@mariadb.org>2016-09-12 17:51:50 +0200
commit10e1ff83ecd0ecbc4ed87dcf95d0d807c42ea5bd (patch)
treeb2bf18c782b42fd01c8c4eb5b099f48722018f4c /mysql-test/suite/unit
parent017195c3631b681ec7fdae9b6b2aaf23fc758dfd (diff)
downloadmariadb-git-10e1ff83ecd0ecbc4ed87dcf95d0d807c42ea5bd.tar.gz
better identify C/C unit tests in mysql-test
Diffstat (limited to 'mysql-test/suite/unit')
-rw-r--r--mysql-test/suite/unit/suite.pm10
1 files changed, 7 insertions, 3 deletions
diff --git a/mysql-test/suite/unit/suite.pm b/mysql-test/suite/unit/suite.pm
index 966fd278a52..76c62037b3d 100644
--- a/mysql-test/suite/unit/suite.pm
+++ b/mysql-test/suite/unit/suite.pm
@@ -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 } };
}