summaryrefslogtreecommitdiffstats
path: root/source/selftest
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-10-04 14:51:11 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:07:44 -0500
commit39981e5fa25512c72119db6de2caef9c41d2bb96 (patch)
tree49c6079c12eb86eb7ef95e13d9430ea6e1af9eb5 /source/selftest
parentdf12ed56c9c2beb4ee36827ddec8b2946c1ac89b (diff)
downloadsamba-39981e5fa25512c72119db6de2caef9c41d2bb96.tar.gz
samba-39981e5fa25512c72119db6de2caef9c41d2bb96.tar.xz
samba-39981e5fa25512c72119db6de2caef9c41d2bb96.zip
r25504: run WINBIND tests for samba3
metze
Diffstat (limited to 'source/selftest')
-rwxr-xr-xsource/selftest/test_winbind.sh28
-rwxr-xr-xsource/selftest/tests_all.sh2
2 files changed, 30 insertions, 0 deletions
diff --git a/source/selftest/test_winbind.sh b/source/selftest/test_winbind.sh
new file mode 100755
index 00000000000..832d12c4112
--- /dev/null
+++ b/source/selftest/test_winbind.sh
@@ -0,0 +1,28 @@
+#!/bin/sh
+#
+
+incdir=`dirname $0`
+. $incdir/test_functions.sh
+
+ENVNAME=$1
+if test x"$ENVNAME" = x"";then
+ ENVNAME="dc"
+fi
+
+WB_OPTS="${TORTURE_OPTIONS}"
+WB_OPTS="${WB_OPTS} --option=\"torture:strict mode=yes\""
+WB_OPTS="${WB_OPTS} --option=\"torture:timelimit=1\""
+WB_OPTS="${WB_OPTS} --option=\"torture:winbindd separator=\\\\\""
+WB_OPTS="${WB_OPTS} --option=\"torture:winbindd private pipe dir=\$WINBINDD_PRIV_PIPE_DIR\""
+WB_OPTS="${WB_OPTS} --option=\"torture:winbindd netbios name=\$SERVER\""
+WB_OPTS="${WB_OPTS} --option=\"torture:winbindd netbios domain=\$DOMAIN\""
+
+STRUCT_TESTS=`$samba4bindir/smbtorture --list | grep "^WINBIND-STRUCT" | xargs`
+for t in $STRUCT_TESTS; do
+ plantest "$ENVNAME:$t" $ENVNAME $samba4bindir/smbtorture $WB_OPTS //_none_/_none_ $t
+done
+
+NDR_TESTS=`$samba4bindir/smbtorture --list | grep "^WINBIND-NDR" | xargs`
+for t in $NDR_TESTS; do
+ plantest "$ENVNAME:$t" $ENVNAME $samba4bindir/smbtorture $WB_OPTS //_none_/_none_ $t
+done
diff --git a/source/selftest/tests_all.sh b/source/selftest/tests_all.sh
index 2c1b0456e49..0db85048480 100755
--- a/source/selftest/tests_all.sh
+++ b/source/selftest/tests_all.sh
@@ -4,6 +4,7 @@ $includedir/../bin/smbtorture -V
$SRCDIR/selftest/test_ejs.sh $CONFIGURATION
$SRCDIR/selftest/test_ldap.sh
$SRCDIR/selftest/test_nbt.sh "dc"
+$SRCDIR/selftest/test_winbind.sh "dc"
$SRCDIR/selftest/test_rpc.sh
$SRCDIR/selftest/test_net.sh
$SRCDIR/selftest/test_session_key.sh
@@ -17,3 +18,4 @@ $SRCDIR/selftest/test_simple.sh
$SRCDIR/selftest/test_s3upgrade.sh $PREFIX/upgrade
$SRCDIR/selftest/test_member.sh
$SRCDIR/selftest/test_nbt.sh "member"
+$SRCDIR/selftest/test_winbind.sh "member"