diff options
Diffstat (limited to 'source4/script')
-rwxr-xr-x | source4/script/tests/test_nbt.sh | 21 | ||||
-rwxr-xr-x | source4/script/tests/tests_all.sh | 3 |
2 files changed, 18 insertions, 6 deletions
diff --git a/source4/script/tests/test_nbt.sh b/source4/script/tests/test_nbt.sh index d821b868ad..ceac810922 100755 --- a/source4/script/tests/test_nbt.sh +++ b/source4/script/tests/test_nbt.sh @@ -9,11 +9,22 @@ SCRIPTDIR=../testprogs/ejs PATH=bin:$PATH export PATH -plantest "nmblookup -U \$SERVER \$SERVER" dc bin/nmblookup $TORTURE_OPTIONS -U \$SERVER \$SERVER -plantest "nmblookup \$SERVER" dc bin/nmblookup $TORTURE_OPTIONS \$SERVER +TEST_NBT_ENVNAME=$1 +if test x"$TEST_NBT_ENVNAME" = x"";then + TEST_NBT_ENVNAME="dc" +fi + +plantest "nmblookup -U \$SERVER_IP \$SERVER" $TEST_NBT_ENVNAME bin/nmblookup $TORTURE_OPTIONS -U \$SERVER_IP \$SERVER +plantest "nmblookup -U \$SERVER_IP \$NETBIOSNAME" $TEST_NBT_ENVNAME bin/nmblookup $TORTURE_OPTIONS -U \$SERVER_IP \$NETBIOSNAME +plantest "nmblookup -U \$SERVER_IP \$NETBIOSALIAS" $TEST_NBT_ENVNAME bin/nmblookup $TORTURE_OPTIONS -U \$SERVER_IP \$NETBIOSALIAS +plantest "nmblookup \$SERVER" $TEST_NBT_ENVNAME bin/nmblookup $TORTURE_OPTIONS \$SERVER +plantest "nmblookup \$NETBIOSNAME" $TEST_NBT_ENVNAME bin/nmblookup $TORTURE_OPTIONS \$NETBIOSNAME +plantest "nmblookup \$NETBIOSALIAS" $TEST_NBT_ENVNAME bin/nmblookup $TORTURE_OPTIONS \$NETBIOSALIAS NBT_TESTS=`bin/smbtorture --list | grep "^NBT-" | xargs` -for f in $NBT_TESTS; do - plantest "$f" dc bin/smbtorture $TORTURE_OPTIONS //\$SERVER/_none_ $f -U\$USERNAME%\$PASSWORD -done +if test x"$TEST_NBT_ENVNAME" = x"dc";then + for f in $NBT_TESTS; do + plantest "$f:$TEST_NBT_ENVNAME" $TEST_NBT_ENVNAME bin/smbtorture $TORTURE_OPTIONS //\$SERVER/_none_ $f -U\$USERNAME%\$PASSWORD + done +fi diff --git a/source4/script/tests/tests_all.sh b/source4/script/tests/tests_all.sh index 45366186b5..7fb6efcc36 100755 --- a/source4/script/tests/tests_all.sh +++ b/source4/script/tests/tests_all.sh @@ -1,7 +1,7 @@ #!/bin/sh $SRCDIR/script/tests/test_ejs.sh $CONFIGURATION $SRCDIR/script/tests/test_ldap.sh - $SRCDIR/script/tests/test_nbt.sh + $SRCDIR/script/tests/test_nbt.sh "dc" $SRCDIR/script/tests/test_rpc.sh $SRCDIR/script/tests/test_net.sh $SRCDIR/script/tests/test_session_key.sh @@ -15,3 +15,4 @@ $SRCDIR/script/tests/test_simple.sh $SRCDIR/script/tests/test_s3upgrade.sh $PREFIX/upgrade $SRCDIR/script/tests/test_member.sh + $SRCDIR/script/tests/test_nbt.sh "member" |