Navigation Menu

Skip to content

Commit

Permalink
Add .pm file for preparing SQL test.
Browse files Browse the repository at this point in the history
  • Loading branch information
shibakentoku committed Feb 1, 2014
1 parent 365efed commit b472d89
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
16 changes: 16 additions & 0 deletions mysql-test/mroonga/storage/suite.pm
@@ -0,0 +1,16 @@
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 }

if (-d "../sql")
{
$ENV{GRN_PLUGINS_DIR}=$::basedir . '/storage/mroonga/vendor/groonga/vendor/plugins/groonga-normalizer-mysql';
}

bless { };

16 changes: 16 additions & 0 deletions mysql-test/mroonga/wrapper/suite.pm
@@ -0,0 +1,16 @@
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 }

if (-d "../sql")
{
$ENV{GRN_PLUGINS_DIR}=$::basedir . '/storage/mroonga/vendor/groonga/vendor/plugins/groonga-normalizer-mysql';
}

bless { };

0 comments on commit b472d89

Please sign in to comment.