summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-05-24 16:53:34 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-05-24 11:51:40 +0200
commite33bf32ba3538032f95afbcd4b7e11c6ec6cb226 (patch)
tree98c389b73e3463865287a235e9897bae8f73b17a
parent9633ec0c8605d6cfa43cc4a688f2ce9195f99bf1 (diff)
downloadsamba-e33bf32ba3538032f95afbcd4b7e11c6ec6cb226.tar.gz
samba-e33bf32ba3538032f95afbcd4b7e11c6ec6cb226.tar.bz2
samba-e33bf32ba3538032f95afbcd4b7e11c6ec6cb226.zip
selftest: Run only the samba3 tests on builds without the AD DC
Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu May 24 11:51:40 CEST 2012 on sn-devel-104
-rw-r--r--selftest/wscript7
1 files changed, 6 insertions, 1 deletions
diff --git a/selftest/wscript b/selftest/wscript
index ab08c62ce3..182f8f9a16 100644
--- a/selftest/wscript
+++ b/selftest/wscript
@@ -180,8 +180,13 @@ def cmd_testonly(opt):
env.TESTLISTS = ('--testlist="${PYTHON} ${srcdir}/source3/selftest/tests.py|" ' +
'--testlist="${PYTHON} ${srcdir}/source4/selftest/tests.py|"')
+ if CONFIG_SET(opt, 'AD_DC_BUILD_IS_ENABLED'):
+ env.SELFTEST_TARGET="samba"
+ else:
+ env.SELFTEST_TARGET="samba3"
+
# We use the full path rather than relative path because it cause problems on some plateforms (ie. solaris 8).
- env.CORE_COMMAND = '${PERL} ${srcdir}/selftest/selftest.pl --target=samba --prefix=${SELFTEST_PREFIX} --srcdir=${srcdir} --exclude=${srcdir}/selftest/skip ${TESTLISTS} ${OPTIONS} ${TESTS}'
+ env.CORE_COMMAND = '${PERL} ${srcdir}/selftest/selftest.pl --target=${SELFTEST_TARGET} --prefix=${SELFTEST_PREFIX} --srcdir=${srcdir} --exclude=${srcdir}/selftest/skip ${TESTLISTS} ${OPTIONS} ${TESTS}'
if Options.options.LIST:
cmd = '${CORE_COMMAND} --list'
else: