summaryrefslogtreecommitdiff
path: root/source4/selftest/test_winbind.sh
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
commit6fb6999185456477438ae744bb597cf986fb23f4 (patch)
treefbb200d3ad7dee7a16cb08a4fa737a32a3d90192 /source4/selftest/test_winbind.sh
parentf64d6963951ff3e8f3002eed6a12531c05a92ccf (diff)
downloadsamba-6fb6999185456477438ae744bb597cf986fb23f4.tar.gz
samba-6fb6999185456477438ae744bb597cf986fb23f4.tar.bz2
samba-6fb6999185456477438ae744bb597cf986fb23f4.zip
r25504: run WINBIND tests for samba3
metze (This used to be commit 39981e5fa25512c72119db6de2caef9c41d2bb96)
Diffstat (limited to 'source4/selftest/test_winbind.sh')
-rwxr-xr-xsource4/selftest/test_winbind.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/source4/selftest/test_winbind.sh b/source4/selftest/test_winbind.sh
new file mode 100755
index 0000000000..832d12c411
--- /dev/null
+++ b/source4/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