summaryrefslogtreecommitdiff
path: root/storage/sphinx
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2017-01-10 14:30:11 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2017-01-10 14:30:11 +0200
commit5044dae239d094582879792de7a762d3428223ce (patch)
treede7baaf095317ab19949f4e7fa205cf9dce44ab8 /storage/sphinx
parent4b05d60e62ef6e21d5329a9667813df890034ff0 (diff)
parent78e6fafcaa93bdd2cf793a82a812137eb7a779a7 (diff)
downloadmariadb-git-5044dae239d094582879792de7a762d3428223ce.tar.gz
Merge 10.0 into 10.1
Diffstat (limited to 'storage/sphinx')
-rw-r--r--storage/sphinx/mysql-test/sphinx/suite.pm21
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`;