You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
531 B

  1. package My::Suite::Plugins;
  2. use My::Platform;
  3. @ISA = qw(My::Suite);
  4. sub cassandra_running() {
  5. return 0 if IS_WINDOWS;
  6. system 'echo show version | cqlsh -3 2>/dev/null >/dev/null';
  7. return $? == 0;
  8. }
  9. sub skip_combinations {
  10. my %skip;
  11. $skip{'t/pam.test'} = 'No pam setup for mtr'
  12. unless -e '/etc/pam.d/mariadb_mtr';
  13. $skip{'t/cassandra.test'} = 'Cassandra is not running'
  14. unless cassandra_running();
  15. $skip{'t/cassandra_qcache.test'} = $skip{'t/cassandra.test'};
  16. %skip;
  17. }
  18. bless { };