summaryrefslogtreecommitdiff
path: root/source3/script/tests
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-01-03 15:57:40 +1100
committerStefan Metzmacher <metze@samba.org>2012-01-05 17:17:28 +0100
commit7b4f2fad544137db3399e0daa04dd154ba10357d (patch)
tree807cc287318eb80245f636d0c8000e14df0542cd /source3/script/tests
parent73ed88df350c0e307fcf7402be12170c22f2227e (diff)
downloadsamba-7b4f2fad544137db3399e0daa04dd154ba10357d.tar.gz
samba-7b4f2fad544137db3399e0daa04dd154ba10357d.tar.bz2
samba-7b4f2fad544137db3399e0daa04dd154ba10357d.zip
s3-selftest: Add test for rpcclient, including kerberos authentication
Some knownfail entries are added for things the currently fail. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/script/tests')
-rwxr-xr-xsource3/script/tests/test_rpcclient.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/source3/script/tests/test_rpcclient.sh b/source3/script/tests/test_rpcclient.sh
new file mode 100755
index 0000000000..6c293166a2
--- /dev/null
+++ b/source3/script/tests/test_rpcclient.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+if [ $# -lt 1 ]; then
+cat <<EOF
+Usage: test_rpcclient.sh ccache binding <rpcclient commands>
+EOF
+exit 1;
+fi
+
+KRB5CCNAME=$1
+shift 1
+export KRB5CCNAME
+ADDARGS="$*"
+
+incdir=`dirname $0`/../../../testprogs/blackbox
+. $incdir/subunit.sh
+testit "rpcclient" $VALGRIND $BINDIR/rpcclient -c 'getusername' $ADDARGS || failed=`expr $failed + 1`
+
+testok $0 $failed