2011-12-02 16:27:13 +01:00
|
|
|
package My::Suite::Plugins;
|
|
|
|
|
2013-02-04 09:22:29 +04:00
|
|
|
use My::Platform;
|
|
|
|
|
2011-12-02 16:27:13 +01:00
|
|
|
@ISA = qw(My::Suite);
|
|
|
|
|
2013-01-31 13:19:53 +01:00
|
|
|
sub cassandra_running() {
|
2013-02-04 09:22:29 +04:00
|
|
|
return 0 if IS_WINDOWS;
|
2013-01-31 13:19:53 +01:00
|
|
|
system 'echo show version | cqlsh -3 2>/dev/null >/dev/null';
|
|
|
|
return $? == 0;
|
|
|
|
}
|
|
|
|
|
2012-02-23 07:50:11 +01:00
|
|
|
sub skip_combinations {
|
|
|
|
my %skip;
|
|
|
|
$skip{'t/pam.test'} = 'No pam setup for mtr'
|
|
|
|
unless -e '/etc/pam.d/mariadb_mtr';
|
2013-01-31 13:19:53 +01:00
|
|
|
$skip{'t/cassandra.test'} = 'Cassandra is not running'
|
|
|
|
unless cassandra_running();
|
2013-02-04 10:38:31 +04:00
|
|
|
$skip{'t/cassandra_qcache.test'} = $skip{'t/cassandra.test'};
|
2012-02-23 07:50:11 +01:00
|
|
|
%skip;
|
|
|
|
}
|
2011-12-02 16:27:13 +01:00
|
|
|
|
|
|
|
bless { };
|
|
|
|
|