selftest: Run only the samba3 tests on builds without the AD DC
authorAndrew Bartlett <abartlet@samba.org>
Thu, 24 May 2012 06:53:34 +0000 (16:53 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 24 May 2012 09:51:40 +0000 (11:51 +0200)
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu May 24 11:51:40 CEST 2012 on sn-devel-104

selftest/wscript

index ab08c62ce355e9ed8537e45f162ad3664b7b11a3..182f8f9a1674c3e75643a0d515202c5f105b4e01 100644 (file)
@@ -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: