summaryrefslogtreecommitdiff
path: root/source4/selftest
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-10-19 16:07:00 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-10-19 16:07:00 +0200
commitc0de338394c9e2dd80a3ad06341fe95b1ea169ed (patch)
tree56059deb8152e463687c720a0f37bc803c0fb229 /source4/selftest
parent974ab9d2f9ffabe20fab687f7e63cb168570f7e5 (diff)
downloadsamba-c0de338394c9e2dd80a3ad06341fe95b1ea169ed.tar.gz
samba-c0de338394c9e2dd80a3ad06341fe95b1ea169ed.tar.bz2
samba-c0de338394c9e2dd80a3ad06341fe95b1ea169ed.zip
Move Samba4-specific code out of selftest.
Diffstat (limited to 'source4/selftest')
-rwxr-xr-xsource4/selftest/tests.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/source4/selftest/tests.sh b/source4/selftest/tests.sh
index 5f148909e2..b02b7bb890 100755
--- a/source4/selftest/tests.sh
+++ b/source4/selftest/tests.sh
@@ -58,8 +58,31 @@ bin/smbtorture -V
samba4srcdir=.
samba4bindir=$samba4srcdir/bin
+
+prefix_abs="$SELFTEST_PREFIX/s4client"
+
+mkdir "$prefix_abs"
+conffile="$SELFTEST_CONFFILE"
+
+TORTURE_OPTIONS=""
+TORTURE_OPTIONS="$TORTURE_OPTIONS --configfile=$conffile"
+TORTURE_OPTIONS="$TORTURE_OPTIONS --maximum-runtime=$SELFTEST_MAXTIME"
+TORTURE_OPTIONS="$TORTURE_OPTIONS --target=$SELFTEST_TARGET"
+TORTURE_OPTIONS="$TORTURE_OPTIONS --basedir=$prefix_abs"
+if [ -n "$SELFTEST_VERBOSE" ]; then
+ TORTURE_OPTIONS="$TORTURE_OPTIONS --option=torture:progress=no"
+fi
+TORTURE_OPTIONS="$TORTURE_OPTIONS --format=subunit"
+if [ -n "$SELFTEST_QUICK" ]; then
+ TORTURE_OPTIONS="$TORTURE_OPTIONS --option=torture:quick=yes"
+fi
smb4torture="$samba4bindir/smbtorture $TORTURE_OPTIONS"
+echo "OPTIONS $TORTURE_OPTIONS"
+
+SMB_CONF_PATH="$conffile"
+CONFIGURATION="--configfile=$conffile"
+
# Simple tests for LDAP and CLDAP
for options in "" "--option=socket:testnonblock=true" "-U\$USERNAME%\$PASSWORD --option=socket:testnonblock=true" "-U\$USERNAME%\$PASSWORD"; do