diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2017-01-10 14:30:11 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2017-01-10 14:30:11 +0200 |
commit | 5044dae239d094582879792de7a762d3428223ce (patch) | |
tree | de7baaf095317ab19949f4e7fa205cf9dce44ab8 /storage/sphinx | |
parent | 4b05d60e62ef6e21d5329a9667813df890034ff0 (diff) | |
parent | 78e6fafcaa93bdd2cf793a82a812137eb7a779a7 (diff) | |
download | mariadb-git-5044dae239d094582879792de7a762d3428223ce.tar.gz |
Merge 10.0 into 10.1
Diffstat (limited to 'storage/sphinx')
-rw-r--r-- | storage/sphinx/mysql-test/sphinx/suite.pm | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/storage/sphinx/mysql-test/sphinx/suite.pm b/storage/sphinx/mysql-test/sphinx/suite.pm index e4c3c1b9f74..fc127ffd6c0 100644 --- a/storage/sphinx/mysql-test/sphinx/suite.pm +++ b/storage/sphinx/mysql-test/sphinx/suite.pm @@ -16,13 +16,26 @@ sub locate_sphinx_binary { for (@list) { return $_ if -x $_; } } -# Look for Sphinx binaries. +# Look for Sphinx binaries my $exe_sphinx_indexer = &locate_sphinx_binary('indexer'); + +unless ($exe_sphinx_indexer) { + mtr_report("Sphinx 'indexer' binary not found, sphinx suite will be skipped"); + return "No Sphinx"; +} my $exe_sphinx_searchd = &locate_sphinx_binary('searchd'); -return "No Sphinx" unless $exe_sphinx_indexer and $exe_sphinx_searchd; -return "No SphinxSE" unless $ENV{HA_SPHINX_SO} or - $::mysqld_variables{'sphinx'} eq "ON"; +unless ($exe_sphinx_searchd) { + mtr_report("Sphinx 'searchd' binary not found, sphinx suite will be skipped"); + return "No Sphinx"; +} + +# Check for Sphinx engine + +unless ($ENV{HA_SPHINX_SO} or $::mysqld_variables{'sphinx'} eq "ON") { + mtr_report("Sphinx engine not found, sphinx suite will be skipped"); + return "No SphinxSE"; +} { local $_ = `"$exe_sphinx_searchd" --help`; |