summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElena Stepanova <elenst@montyprogram.com>2017-01-04 19:11:13 +0200
committerElena Stepanova <elenst@montyprogram.com>2017-01-06 00:07:43 +0200
commitb2b6cf492e3c7fd99a2d0b6f152516efd28dadf4 (patch)
treed40c24334c706af5574e1e3f8185b1dfdbe0d8c3
parentf0c19b6a57b699d113e3ae4a67920924bbecae45 (diff)
downloadmariadb-git-b2b6cf492e3c7fd99a2d0b6f152516efd28dadf4.tar.gz
MDEV-10988 Sphinx test suite refuses to run silently
Add diagnostics output if any Sphinx components aren't found
-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`;