summaryrefslogtreecommitdiff
path: root/storage/mroonga/mysql-test/mroonga/storage/suite.pm
blob: 528ccc5d69360dcbb111c50c3efa71e79334a642 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package My::Suite::Mroonga;

@ISA = qw(My::Suite);

return "No Mroonga engine" unless $ENV{HA_MROONGA_SO} or
                                  $::mysqld_variables{'mroonga'} eq "ON";

sub is_default { 1 }

my $groonga_normalizer_mysql_dir=$::basedir . '/storage/mroonga/vendor/groonga/vendor/plugins/groonga-normalizer-mysql';
my $groonga_normalizer_mysql_install_dir=$::basedir . '/lib/groonga/plugins';

if (-d $groonga_normalizer_mysql_dir)
{
  $ENV{GRN_PLUGINS_DIR}=$groonga_normalizer_mysql_dir;
}
elsif (-d $groonga_normalizer_mysql_install_dir)
{
  $ENV{GRN_PLUGINS_DIR}=$groonga_normalizer_mysql_install_dir;
}

bless { };