summaryrefslogtreecommitdiffstats
path: root/mysql-test/lib/My/Suite.pm
blob: a603008fabec855d1c15e06b9ff02cc0ff386c70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# A default suite class that is used for all suites without their owns suite.pm
# see README.suites for a description

package My::Suite;

sub is_default { 0 }
sub config_files { () }
sub servers { () }
sub skip_combinations { () }

sub new { bless { } }

sub list_cases {
  my ($self, $testdir) = @_;
  opendir(TESTDIR, $testdir) or return ();
  my (@cases) = grep { s/\.test$// } readdir TESTDIR;
  closedir TESTDIR;
  @cases;
}

sub start_test {
  my ($self, $tinfo)= @_;
  &::start_mysqltest($tinfo);
}

bless { };