summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2013-05-05 15:37:58 -0700
committerAndrew Bartlett <abartlet@samba.org>2013-05-06 12:53:36 +0200
commitbbf62213efb0b77388aff1f5feb852414e1128a2 (patch)
treea490d77d15447084c418d05d2b603e3d23651b86
parentfffbdf01fa6a74e6da70815607a1c22b9b6ebcdb (diff)
downloadsamba-bbf62213efb0b77388aff1f5feb852414e1128a2.tar.gz
samba-bbf62213efb0b77388aff1f5feb852414e1128a2.tar.bz2
samba-bbf62213efb0b77388aff1f5feb852414e1128a2.zip
selftest: do not run doc tests if we don't build manpages
if XSLTPROC_MANPAGES is not set then manpages won't be built so there is no sense trying to test it. Signed-off-by: Matthieu Patou <mat@matws.net> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Mon May 6 12:53:37 CEST 2013 on sn-devel-104
-rw-r--r--selftest/tests.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/selftest/tests.py b/selftest/tests.py
index 9a59e9d0db..aebfc57630 100644
--- a/selftest/tests.py
+++ b/selftest/tests.py
@@ -20,8 +20,22 @@
from selftesthelpers import *
+try:
+ config_h = os.environ["CONFIG_H"]
+except KeyError:
+ config_h = os.path.join(samba4bindir, "default/include/config.h")
+
+# define here var to check what we support
+f = open(config_h, 'r')
+try:
+ have_man_pages_support = ("XSLTPROC_MANPAGES 1" in f.read())
+finally:
+ f.close()
+
planpythontestsuite("none", "samba.tests.source")
-planpythontestsuite("none", "samba.tests.docs")
+if have_man_pages_support:
+ planpythontestsuite("none", "samba.tests.docs")
+
planpythontestsuite("none", "selftest.tests.test_suite", extra_path=[srcdir()])
planpythontestsuite("none", "subunit")
planpythontestsuite("none", "samba.tests.blackbox.ndrdump")