summaryrefslogtreecommitdiff
path: root/source4/script/tests/test_blackbox.sh
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-01-14 01:42:07 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:40:36 -0500
commit70dbcf6d69c1381ed5dccc979afab5d1cdc9d13d (patch)
treea5b1c7069761140544a6490083b09bdd9b6a0b07 /source4/script/tests/test_blackbox.sh
parentf60f9de6a833237767d1988ea67bc5d3368a4354 (diff)
downloadsamba-70dbcf6d69c1381ed5dccc979afab5d1cdc9d13d.tar.gz
samba-70dbcf6d69c1381ed5dccc979afab5d1cdc9d13d.tar.bz2
samba-70dbcf6d69c1381ed5dccc979afab5d1cdc9d13d.zip
r20748: Add file I forgot to commit
(This used to be commit 2794af5726a1e1beb6fcb1aaaa4ba9aa9d4a9071)
Diffstat (limited to 'source4/script/tests/test_blackbox.sh')
-rwxr-xr-xsource4/script/tests/test_blackbox.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/source4/script/tests/test_blackbox.sh b/source4/script/tests/test_blackbox.sh
new file mode 100755
index 0000000000..484310605e
--- /dev/null
+++ b/source4/script/tests/test_blackbox.sh
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+# this runs tests that interact directly with the command-line tools rather than using the API
+
+if [ $# -lt 5 ]; then
+cat <<EOF
+Usage: test_blackbox.sh SERVER USERNAME PASSWORD DOMAIN PREFIX [...]
+EOF
+exit 1;
+fi
+
+SERVER=$1
+USERNAME=$2
+PASSWORD=$3
+DOMAIN=$4
+PREFIX=$5
+shift 5
+ADDARGS="$@"
+
+incdir=`dirname $0`
+. $incdir/test_functions.sh
+
+testit "smbclient" $incdir/../../../testprogs/blackbox/test_smbclient.sh "$SERVER" "$USERNAME" "$PASSWORD" "$DOMAIN" "$PREFIX" "$ADDARGS"
+testit "cifsdd" $incdir/../../../testprogs/blackbox/test_cifsdd.sh "$SERVER" "$USERNAME" "$PASSWORD" "$DOMAIN" "$ADDARGS"
+
+testok $0 $failed