r24342: Move environments into a separate directory.
[kai/samba.git] / source4 / selftest / test_blackbox.sh
1 #!/bin/sh
2
3 # this runs tests that interact directly with the command-line tools rather than using the API
4
5 if [ $# -lt 1 ]; then
6 cat <<EOF
7 Usage: test_blackbox.sh PREFIX [...]
8 EOF
9 exit 1;
10 fi
11
12 PREFIX=$1
13 shift 1
14 ADDARGS="$*"
15
16 incdir=`dirname $0`
17 . $incdir/test_functions.sh
18
19 plantest "blackbox.smbclient" dc $incdir/../../testprogs/blackbox/test_smbclient.sh "\$SERVER" "\$USERNAME" "\$PASSWORD" "\$DOMAIN" "$PREFIX" "$ADDARGS"
20 plantest "blackbox.kinit" dc $incdir/../../testprogs/blackbox/test_kinit.sh "\$SERVER" "\$USERNAME" "\$PASSWORD" "\$REALM" "\$DOMAIN" "$PREFIX" "$ADDARGS"
21 plantest "blackbox.cifsdd" dc $incdir/../../testprogs/blackbox/test_cifsdd.sh "\$SERVER" "\$USERNAME" "\$PASSWORD" "\$DOMAIN" "$ADDARGS"