diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-07-24 12:24:34 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:30:00 -0500 |
commit | 126c67313631df8df73d51cc99ede147fb77cbdb (patch) | |
tree | 632d1e4b3235a449b6c5a30a015fe929528eca1e /source4 | |
parent | f4b488ec011e0acaef80f88d72308671cff185e2 (diff) | |
download | samba-126c67313631df8df73d51cc99ede147fb77cbdb.tar.gz samba-126c67313631df8df73d51cc99ede147fb77cbdb.tar.bz2 samba-126c67313631df8df73d51cc99ede147fb77cbdb.zip |
r8735: added NBT and WINS testing to 'make test' so we will know if it breaks again
(This used to be commit 519812a9e8da777e4dff1dec22bd8a96c05c50c9)
Diffstat (limited to 'source4')
-rwxr-xr-x | source4/script/tests/selftest.sh | 1 | ||||
-rwxr-xr-x | source4/script/tests/test_nbt.sh | 23 | ||||
-rw-r--r-- | source4/script/tests/tests_all.sh | 1 | ||||
-rw-r--r-- | source4/script/tests/tests_quick.sh | 2 |
4 files changed, 27 insertions, 0 deletions
diff --git a/source4/script/tests/selftest.sh b/source4/script/tests/selftest.sh index 673e6a06a8..0420cefceb 100755 --- a/source4/script/tests/selftest.sh +++ b/source4/script/tests/selftest.sh @@ -93,6 +93,7 @@ cat >$CONFFILE<<EOF interfaces = lo* tls enabled = $TLS_ENABLED panic action = $SRCDIR/script/gdb_backtrace %PID% %PROG% + wins support = yes [tmp] path = $TMPDIR diff --git a/source4/script/tests/test_nbt.sh b/source4/script/tests/test_nbt.sh new file mode 100755 index 0000000000..23a04cf413 --- /dev/null +++ b/source4/script/tests/test_nbt.sh @@ -0,0 +1,23 @@ +#!/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 + +for f in NBT-REGISTER NBT-WINS; do + testit "$f" bin/smbtorture $TORTURE_OPTIONS //$SERVER/_none_ $f || failed=`expr $failed + 1` +done diff --git a/source4/script/tests/tests_all.sh b/source4/script/tests/tests_all.sh index 2083abe796..41c711b50b 100644 --- a/source4/script/tests/tests_all.sh +++ b/source4/script/tests/tests_all.sh @@ -1,5 +1,6 @@ $SRCDIR/script/tests/test_ejs.sh localhost $USERNAME $PASSWORD || failed=`expr $failed + $?` $SRCDIR/script/tests/test_ldap.sh localhost $USERNAME $PASSWORD || failed=`expr $failed + $?` + $SRCDIR/script/tests/test_nbt.sh localhost || failed=`expr $failed + $?` $SRCDIR/script/tests/test_quick.sh //localhost/cifs $USERNAME $PASSWORD "" || failed=`expr $failed + $?` $SRCDIR/script/tests/test_rpc.sh localhost $USERNAME $PASSWORD $DOMAIN || failed=`expr $failed + $?` $SRCDIR/script/tests/test_session_key.sh localhost $USERNAME $PASSWORD $DOMAIN || failed=`expr $failed + $?` diff --git a/source4/script/tests/tests_quick.sh b/source4/script/tests/tests_quick.sh index b4b67eebd4..e03b1e00ce 100644 --- a/source4/script/tests/tests_quick.sh +++ b/source4/script/tests/tests_quick.sh @@ -1,3 +1,5 @@ $SRCDIR/script/tests/test_ejs.sh localhost $USERNAME $PASSWORD || failed=`expr $failed + $?` $SRCDIR/script/tests/test_ldap.sh localhost $USERNAME $PASSWORD || failed=`expr $failed + $?` +$SRCDIR/script/tests/test_nbt.sh localhost || failed=`expr $failed + $?` $SRCDIR/script/tests/test_quick.sh //localhost/cifs $USERNAME $PASSWORD "" || failed=`expr $failed + $?` + |