1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-31 01:48:16 +03:00
samba-mirror/source/script/tests/test_blackbox.sh
Andrew Bartlett 783c57bf1c r22233: Allow 'REALM' as a global environment variable in the tests.
Set the default socket_wrapper interface inside the test env setup, so
it actually stays (fixes LOCAL-SOCKET failures).

Andrew Bartlett
2007-10-10 14:50:41 -05:00

23 lines
732 B
Bash
Executable File

#!/bin/sh
# this runs tests that interact directly with the command-line tools rather than using the API
if [ $# -lt 1 ]; then
cat <<EOF
Usage: test_blackbox.sh PREFIX [...]
EOF
exit 1;
fi
PREFIX=$1
shift 1
ADDARGS="$*"
incdir=`dirname $0`
. $incdir/test_functions.sh
plantest "blackbox.smbclient" dc $incdir/../../../testprogs/blackbox/test_smbclient.sh "\$NETBIOSNAME" "\$USERNAME" "\$PASSWORD" "\$DOMAIN" "$PREFIX" "$ADDARGS"
plantest "blackbox.kinit" dc $incdir/../../../testprogs/blackbox/test_kinit.sh "\$NETBIOSNAME" "\$USERNAME" "\$PASSWORD" "\$REALM" "$PREFIX" "$ADDARGS"
plantest "blackbox.cifsdd" dc $incdir/../../../testprogs/blackbox/test_cifsdd.sh "\$NETBIOSNAME" "\$USERNAME" "\$PASSWORD" "\$DOMAIN" "$ADDARGS"