tests: Only run mdsparser test if we build with spotlight support
authorAndreas Schneider <asn@samba.org>
Mon, 22 Jun 2020 14:06:36 +0000 (16:06 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 22 Jun 2020 15:53:30 +0000 (15:53 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Mon Jun 22 15:53:30 UTC 2020 on sn-devel-184

selftest/tests.py

index 73932cd28beb6ac1cd9d26815dbc4e9e443caf95..dd3cc5ec8fb7ebc6c540183ea909e98351b51f6d 100644 (file)
@@ -44,6 +44,7 @@ finally:
 
 have_man_pages_support = ("XSLTPROC_MANPAGES" in config_hash)
 with_pam = ("WITH_PAM" in config_hash)
+with_elasticsearch_backend = ("HAVE_SPOTLIGHT_BACKEND_ES" in config_hash)
 pam_wrapper_so_path = config_hash["LIBPAM_WRAPPER_SO_PATH"]
 pam_set_items_so_path = config_hash["PAM_SET_ITEMS_SO_PATH"]
 
@@ -407,5 +408,6 @@ plantestsuite("samba.unittests.test_registry_regfio", "none",
               [os.path.join(bindir(), "default/source3/test_registry_regfio")])
 plantestsuite("samba.unittests.test_oLschema2ldif", "none",
               [os.path.join(bindir(), "default/source4/utils/oLschema2ldif/test_oLschema2ldif")])
-plantestsuite("samba.unittests.mdsparser_es", "none",
-              [os.path.join(bindir(), "default/source3/test_mdsparser_es")] + [configuration])
+if with_elasticsearch_backend:
+    plantestsuite("samba.unittests.mdsparser_es", "none",
+                  [os.path.join(bindir(), "default/source3/test_mdsparser_es")] + [configuration])