r24706: Move nmblookup tests to separate blackbox testsuite.
[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 bbdir=$incdir/../../testprogs/blackbox
20
21 plantest "blackbox.smbclient" dc $bbdir/test_smbclient.sh "\$SERVER" "\$USERNAME" "\$PASSWORD" "\$DOMAIN" "$PREFIX" "$ADDARGS"
22 plantest "blackbox.kinit" dc $bbdir/test_kinit.sh "\$SERVER" "\$USERNAME" "\$PASSWORD" "\$REALM" "\$DOMAIN" "$PREFIX" "$ADDARGS"
23 plantest "blackbox.cifsdd" dc $bbdir/test_cifsdd.sh "\$SERVER" "\$USERNAME" "\$PASSWORD" "\$DOMAIN" "$ADDARGS"
24 plantest "blackbox.nmblookup:dc" dc $bbdir/test_nmblookup.sh "\$NETBIOSNAME" "\$NETBIOSALIAS" "\$SERVER" "\$SERVER_IP" $ADDARGS
25 plantest "blackbox.nmblookup:member" member $bbdir/test_nmblookup.sh "\$NETBIOSNAME" "\$NETBIOSALIAS" "\$SERVER" "\$SERVER_IP" $ADDARGS