summaryrefslogtreecommitdiff
path: root/source4/script/tests/test_nbt.sh
blob: c3a09d4fb1023dbf8cb4e470e7b65a22bd526c59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh
# test some NBT/WINS operations

if [ $# -lt 1 ]; then
cat <<EOF
Usage: test_nbt.sh SERVER
EOF
exit 1;
fi

SERVER="$1"
USERNAME="$2"
PASSWORD="$3"

incdir=`dirname $0`
. $incdir/test_functions.sh

SCRIPTDIR=../testprogs/ejs

PATH=bin:$PATH
export PATH

plantest "nmblookup -U $SERVER $SERVER" netbios bin/nmblookup $TORTURE_OPTIONS -U $SERVER $SERVER
plantest "nmblookup $SERVER" netbios bin/nmblookup $TORTURE_OPTIONS $SERVER

NBT_TESTS=`bin/smbtorture --list | grep ^NBT`

for f in $NBT_TESTS; do
    plantest "$f" netbios bin/smbtorture $TORTURE_OPTIONS //$SERVER/_none_ $f -U$USERNAME%$PASSWORD 
done