diff options
Diffstat (limited to 'selftest/wscript')
-rw-r--r-- | selftest/wscript | 7 |
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: |