r21729: Some more tests
[Samba/ekacnet.git] / source4 / script / tests / test_blackbox.sh
blob484310605e772fae67a93302a438234b4af0dfcc
1 #!/bin/sh
3 # this runs tests that interact directly with the command-line tools rather than using the API
5 if [ $# -lt 5 ]; then
6 cat <<EOF
7 Usage: test_blackbox.sh SERVER USERNAME PASSWORD DOMAIN PREFIX [...]
8 EOF
9 exit 1;
12 SERVER=$1
13 USERNAME=$2
14 PASSWORD=$3
15 DOMAIN=$4
16 PREFIX=$5
17 shift 5
18 ADDARGS="$@"
20 incdir=`dirname $0`
21 . $incdir/test_functions.sh
23 testit "smbclient" $incdir/../../../testprogs/blackbox/test_smbclient.sh "$SERVER" "$USERNAME" "$PASSWORD" "$DOMAIN" "$PREFIX" "$ADDARGS"
24 testit "cifsdd" $incdir/../../../testprogs/blackbox/test_cifsdd.sh "$SERVER" "$USERNAME" "$PASSWORD" "$DOMAIN" "$ADDARGS"
26 testok $0 $failed