s3-selftest: Add test for smbclient kerberos support
authorAndrew Bartlett <abartlet@samba.org>
Sun, 8 Jan 2012 23:18:37 +0000 (10:18 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 8 Jan 2012 23:56:27 +0000 (10:56 +1100)
source3/script/tests/test_smbclient_krb5.sh [new file with mode: 0755]
source3/selftest/tests.py

diff --git a/source3/script/tests/test_smbclient_krb5.sh b/source3/script/tests/test_smbclient_krb5.sh
new file mode 100755 (executable)
index 0000000..02117dc
--- /dev/null
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+if [ $# -lt 1 ]; then
+cat <<EOF
+Usage: test_smbclient.sh ccache smbclient3 server <smbclient args>
+EOF
+exit 1;
+fi
+
+KRB5CCNAME=$1
+export KRB5CCNAME
+SMBCLIENT3=$2
+SERVER=$3
+shift 3
+ADDARGS="$*"
+
+incdir=`dirname $0`/../../../testprogs/blackbox
+. $incdir/subunit.sh
+testit "smbclient" $VALGRIND $SMBCLIENT3 //$SERVER/tmp -c 'ls' -k $ADDARGS || failed=`expr $failed + 1`
+
+testok $0 $failed
index a94c2589e97277533ea5a84367f5c1306caae5eb..33a2410e9201840a5c732dadc11959a4b48356bf 100755 (executable)
@@ -304,6 +304,16 @@ for z in smb_options:
                                                                                                                                   "$PREFIX/ktest/krb5_ccache-3", binding_string, "-k", configuration])
 
 
+if have_ads_support:
+    plantestsuite("samba3.blackbox.smbclient_krb5 with old ccache", "ktest:local", 
+                  [os.path.join(samba3srcdir, "script/tests/test_smbclient_krb5.sh"),
+                   "$PREFIX/ktest/krb5_ccache-2", 
+                   binpath('smbclient3'), "$SERVER", configuration])
+
+    plantestsuite("samba3.blackbox.smbclient_krb5", "ktest:local", 
+                  [os.path.join(samba3srcdir, "script/tests/test_smbclient_krb5.sh"),
+                   "$PREFIX/ktest/krb5_ccache-3", 
+                   binpath('smbclient3'), "$SERVER", configuration])
 
 for e in endianness_options:
     for a in auth_options: