summaryrefslogtreecommitdiff
path: root/selftest/wscript
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-10-26 15:21:11 +1100
committerAndrew Bartlett <abartlet@samba.org>2011-10-28 13:10:27 +0200
commit8dcfe2e5c44184298b0aa5bb1a13e2108b31a9c4 (patch)
tree14a684c269b848dc36d9b553774e18e0c3501e93 /selftest/wscript
parentf54dcc86b8c04bfd3c85ad327d268f5e32dd2cfd (diff)
downloadsamba-8dcfe2e5c44184298b0aa5bb1a13e2108b31a9c4.tar.gz
samba-8dcfe2e5c44184298b0aa5bb1a13e2108b31a9c4.tar.bz2
samba-8dcfe2e5c44184298b0aa5bb1a13e2108b31a9c4.zip
selftest: Remove --target option and the ability to run 'samba4 only' tests
This simplifies the selftest system, and by default we always tested all of samba3 and samba4 in the waf build. This simply removes a rarely used option for testing only part of the system. The make test TESTS="^samba3" syntax remains unchanged, so no functionality is lost. Andrew Bartlett
Diffstat (limited to 'selftest/wscript')
-rw-r--r--selftest/wscript37
1 files changed, 12 insertions, 25 deletions
diff --git a/selftest/wscript b/selftest/wscript
index 558cb2abd2..c34658a1a7 100644
--- a/selftest/wscript
+++ b/selftest/wscript
@@ -30,9 +30,6 @@ def set_options(opt):
gr.add_option('--tests',
help=("wildcard pattern of tests to run"),
action="store", dest='TESTS', default='')
- gr.add_option('--target',
- help=("target of samba3 or samba4"),
- action="store", dest='TARGET', default=None)
gr.add_option('--filtered-subunit',
help=("output (xfail) filtered subunit"),
action="store_true", dest='FILTERED_SUBUNIT', default=False)
@@ -188,30 +185,20 @@ def cmd_testonly(opt):
if not os.path.isdir(env.SELFTEST_PREFIX):
os.makedirs(env.SELFTEST_PREFIX, int('755', 8))
- if Options.options.TARGET:
- env.SELFTEST_TARGET = Options.options.TARGET
- else:
- env.SELFTEST_TARGET = "samba"
-
- if env.SELFTEST_TARGET == "samba4":
- env.SELFTEST_DIR = "${srcdir}/source4/selftest"
- elif env.SELFTEST_TARGET == "samba3":
- env.SELFTEST_DIR = "${srcdir}/source3/selftest"
-
- if env.SELFTEST_TARGET == "samba":
- for f in ["knownfail", "slow", "quick", "skip" ]:
- combine_files(env.srcdir + "/source4/selftest/" + f,
- env.srcdir + "/source3/selftest/" + f,
- env.SELFTEST_PREFIX + "/" + f)
-
- env.SELFTEST_DIR = env.SELFTEST_PREFIX
- env.TESTLISTS = ('--testlist="${PYTHON} ${srcdir}/source3/selftest/tests.py|" ' +
- '--testlist="${PYTHON} ${srcdir}/source4/selftest/tests.py|"')
- else:
- env.TESTLISTS = '--testlist="${SELFTEST_DIR}/tests.py|"'
+ env.SELFTEST_TARGET = "samba"
+
+ for f in ["knownfail", "slow", "quick", "skip" ]:
+ combine_files(env.srcdir + "/source4/selftest/" + f,
+ env.srcdir + "/source3/selftest/" + f,
+ env.SELFTEST_PREFIX + "/" + f)
+
+ env.SELFTEST_DIR = env.SELFTEST_PREFIX
+
+ env.TESTLISTS = ('--testlist="${PYTHON} ${srcdir}/source3/selftest/tests.py|" ' +
+ '--testlist="${PYTHON} ${srcdir}/source4/selftest/tests.py|"')
# We use the full path rather than relative path because it cause problems on some plateforms (ie. solaris 8).
- cmd = '(${PERL} ${srcdir}/selftest/selftest.pl --target=${SELFTEST_TARGET} --prefix=${SELFTEST_PREFIX} --srcdir=${srcdir} --exclude=${SELFTEST_DIR}/skip ${TESTLISTS} ${OPTIONS} --socket-wrapper ${TESTS} && touch ${SELFTEST_PREFIX}/st_done) | ${FILTER_OPTIONS} | tee ${SELFTEST_PREFIX}/subunit'
+ cmd = '(${PERL} ${srcdir}/selftest/selftest.pl --target=samba --prefix=${SELFTEST_PREFIX} --srcdir=${srcdir} --exclude=${SELFTEST_DIR}/skip ${TESTLISTS} ${OPTIONS} --socket-wrapper ${TESTS} && touch ${SELFTEST_PREFIX}/st_done) | ${FILTER_OPTIONS} | tee ${SELFTEST_PREFIX}/subunit'
if os.environ.get('RUN_FROM_BUILD_FARM') is None and not Options.options.FILTERED_SUBUNIT:
cmd += ' | ${FORMAT_TEST_OUTPUT}'