1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

move ctest handling from mtr to a separate suite

This commit is contained in:
Sergei Golubchik
2011-07-16 09:59:15 +02:00
parent 73a46b3eb9
commit 011cbe9088
7 changed files with 116 additions and 209 deletions

View File

@ -6,5 +6,18 @@ package My::Suite;
sub config_files { () }
sub servers { () }
sub list_cases {
my ($self, $testdir) = @_;
opendir(TESTDIR, $testdir) or mtr_error("Can't open dir \"$testdir\": $!");
my (@cases) = grep { s/\.test$// } readdir TESTDIR;
closedir TESTDIR;
@cases;
}
sub start_test {
my ($self, $tinfo)= @_;
&::start_mysqltest($tinfo);
}
bless { };