summaryrefslogtreecommitdiff
path: root/mysql-test/suite/federated/suite.pm
blob: 06458b97adc3f16512441c87a056ae63632e8fd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package My::Suite::Federated;

@ISA = qw(My::Suite);

############# initialization ######################
my @combinations;

push @combinations, 'old'
   if $ENV{HA_FEDERATED_SO} and not $::mysqld_variables{'federated'};
push @combinations, 'X'
   if $ENV{HA_FEDERATEDX_SO} or $::mysqld_variables{'federated'};

return "Neither Federated nor FederatedX are available" unless @combinations;

$ENV{FEDERATED_COMBINATIONS}=join ':', @combinations
  unless $ENV{FEDERATED_COMBINATIONS};

############# return an object ######################
bless { };