summaryrefslogtreecommitdiff
path: root/testprogs/blackbox/nsstest.sh
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-12-07 12:51:59 +1100
committerAndrew Bartlett <abartlet@samba.org>2011-12-07 03:09:08 +0100
commit2da506ee66111ea52e7e3f211392bcaf707e0f6a (patch)
tree0797326c822db80d0ef538e435deafa726202038 /testprogs/blackbox/nsstest.sh
parent8d3e92d0430ec994d22ddd96babb430f8beb9315 (diff)
downloadsamba-2da506ee66111ea52e7e3f211392bcaf707e0f6a.tar.gz
s4-selftest re-enable nsstest on libnss_winbind.so
Diffstat (limited to 'testprogs/blackbox/nsstest.sh')
-rwxr-xr-xtestprogs/blackbox/nsstest.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/testprogs/blackbox/nsstest.sh b/testprogs/blackbox/nsstest.sh
new file mode 100755
index 00000000000..bbca904620a
--- /dev/null
+++ b/testprogs/blackbox/nsstest.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+# Blackbox wrapper for nsstest
+# Copyright (C) 2006-2007 Jelmer Vernooij <jelmer@samba.org>
+# Copyright (C) 2006-2008 Andrew Bartlett <abartlet@samba.org>
+
+if [ $# -lt 2 ]; then
+cat <<EOF
+Usage: nsstest.sh NSSTEST LIBNSS_WINBIND
+EOF
+exit 1;
+fi
+
+nsstest=$1
+libnss_winbind=$2
+shift 2
+failed=0
+
+. `dirname $0`/subunit.sh
+
+testit "run nsstest" $VALGRIND $nsstest $libnss_winbind || failed=`expr $failed + 1`
+
+exit $failed