mirror of
https://github.com/samba-team/samba.git
synced 2025-11-09 20:23:51 +03:00
29 lines
624 B
Bash
Executable File
29 lines
624 B
Bash
Executable File
#!/bin/sh
|
|
# test some NBT/WINS operations
|
|
|
|
if [ $# -lt 1 ]; then
|
|
cat <<EOF
|
|
Usage: test_nbt.sh SERVER
|
|
EOF
|
|
exit 1;
|
|
fi
|
|
|
|
SERVER="$1"
|
|
|
|
incdir=`dirname $0`
|
|
. $incdir/test_functions.sh
|
|
|
|
SCRIPTDIR=../testprogs/ejs
|
|
|
|
PATH=bin:$PATH
|
|
export PATH
|
|
|
|
testit "nmblookup -U $SERVER $SERVER" bin/nmblookup $TORTURE_OPTIONS -U $SERVER $SERVER || failed=`expr $failed + 1`
|
|
testit "nmblookup $SERVER" bin/nmblookup $TORTURE_OPTIONS $SERVER || failed=`expr $failed + 1`
|
|
|
|
for f in NBT-REGISTER NBT-WINS NBT-WINSREPLICATION; do
|
|
testit "$f" bin/smbtorture $TORTURE_OPTIONS //$SERVER/_none_ $f || failed=`expr $failed + 1`
|
|
done
|
|
|
|
testok $0 $failed
|