diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2012-10-26 13:38:32 -0800 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2012-10-27 05:16:18 -0800 |
commit | 8237e2727da0d04b82cb3cf644dd337a4c77fe34 (patch) | |
tree | 3a26826ceedd4074a626077bfa40bcc5a21529f0 /source4/selftest | |
parent | fcb7926ce544a8d4b0e5aa6577fe21712b38bb53 (diff) | |
download | samba-8237e2727da0d04b82cb3cf644dd337a4c77fe34.tar.gz samba-8237e2727da0d04b82cb3cf644dd337a4c77fe34.tar.bz2 samba-8237e2727da0d04b82cb3cf644dd337a4c77fe34.zip |
selftest: Move determining of smbtorture4 options to selftesthelpers.
Diffstat (limited to 'source4/selftest')
-rwxr-xr-x | source4/selftest/tests.py | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/source4/selftest/tests.py b/source4/selftest/tests.py index b36f43bb4b..08236c8744 100755 --- a/source4/selftest/tests.py +++ b/source4/selftest/tests.py @@ -20,9 +20,16 @@ import os, sys sys.path.insert(0, os.path.join(os.path.dirname(__file__), "../../selftest")) +import selftesthelpers from selftesthelpers import * import subprocess +print >>sys.stderr, "OPTIONS %s" % " ".join(smbtorture4_options) + +def plansmbtorture4testsuite(name, env, options, modname=None): + return selftesthelpers.plansmbtorture4testsuite(name, env, options, + target='samba4', modname=modname) + samba4srcdir = source4dir() samba4bindir = bindir() validate = os.getenv("VALIDATE", "") @@ -38,16 +45,6 @@ subprocess.call([smbtorture4, "-V"], stdout=sys.stderr) bbdir = os.path.join(srcdir(), "testprogs/blackbox") -torture_options = [configuration, - "--maximum-runtime=$SELFTEST_MAXTIME", - "--target=samba4", - "--basedir=$SELFTEST_TMPDIR", - "--format=subunit"] -torture_options.extend(get_env_torture_options()) -smbtorture4 += " " + " ".join(torture_options) - -print >>sys.stderr, "OPTIONS %s" % " ".join(torture_options) - # Simple tests for LDAP and CLDAP for options in ['-U"$USERNAME%$PASSWORD" --option=socket:testnonblock=true', '-U"$USERNAME%$PASSWORD"', '-U"$USERNAME%$PASSWORD" -k yes', '-U"$USERNAME%$PASSWORD" -k no', '-U"$USERNAME%$PASSWORD" -k no --sign', '-U"$USERNAME%$PASSWORD" -k no --encrypt', '-U"$USERNAME%$PASSWORD" -k yes --encrypt', '-U"$USERNAME%$PASSWORD" -k yes --sign']: plantestsuite("samba4.ldb.ldap with options %s(dc)" % options, "dc", "%s/test_ldb.sh ldap $SERVER %s" % (bbdir, options)) |