1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/source4/script/tests/test_blackbox.sh
Jelmer Vernooij 86d77746db r21910: Clean up some unused functions.
(This used to be commit 36cd3406db)
2007-10-10 14:49:38 -05:00

25 lines
639 B
Bash
Executable File

#!/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
plantest "blackbox.smbclient" smb $incdir/../../../testprogs/blackbox/test_smbclient.sh "$SERVER" "$USERNAME" "$PASSWORD" "$DOMAIN" "$PREFIX" "$ADDARGS"
plantest "blackbox.cifsdd" smb $incdir/../../../testprogs/blackbox/test_cifsdd.sh "$SERVER" "$USERNAME" "$PASSWORD" "$DOMAIN" "$ADDARGS"