mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
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
This commit is contained in:
parent
fffbdf01fa
commit
bbf62213ef
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user