From b5bfabf1526f094942f986f8c8f7019b64db6c2f Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 9 Feb 2008 17:17:21 +0100 Subject: Move nmblookup blackbox test closer to the code it tests. (This used to be commit 3f24136b56d281580410bf69841c6dece5508d17) --- testprogs/blackbox/test_nmblookup.sh | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100755 testprogs/blackbox/test_nmblookup.sh (limited to 'testprogs/blackbox') diff --git a/testprogs/blackbox/test_nmblookup.sh b/testprogs/blackbox/test_nmblookup.sh deleted file mode 100755 index ad9b3ba799..0000000000 --- a/testprogs/blackbox/test_nmblookup.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/sh -# Blackbox tests for nmblookup - -NETBIOSNAME=$1 -NETBIOSALIAS=$2 -SERVER=$3 -SERVER_IP=$4 -shift 4 -TORTURE_OPTIONS=$* - -failed=0 - -testit() { - name="$1" - shift - cmdline="$*" - echo "test: $name" - $cmdline - status=$? - if [ x$status = x0 ]; then - echo "success: $name" - else - echo "failure: $name" - failed=`expr $failed + 1` - fi - return $status -} - -testit "nmblookup -U \$SERVER_IP \$SERVER" bin/nmblookup $TORTURE_OPTIONS -U $SERVER_IP $SERVER -testit "nmblookup -U \$SERVER_IP \$NETBIOSNAME" bin/nmblookup $TORTURE_OPTIONS -U $SERVER_IP $NETBIOSNAME -testit "nmblookup -U \$SERVER_IP \$NETBIOSALIAS" bin/nmblookup $TORTURE_OPTIONS -U $SERVER_IP $NETBIOSALIAS -testit "nmblookup \$SERVER" bin/nmblookup $TORTURE_OPTIONS $SERVER -testit "nmblookup \$NETBIOSNAME" bin/nmblookup $TORTURE_OPTIONS $NETBIOSNAME -testit "nmblookup \$NETBIOSALIAS" bin/nmblookup $TORTURE_OPTIONS $NETBIOSALIAS - -exit $failed -- cgit From 63c099c51a71afad67dce2d2df842b934412117b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 15 Feb 2008 14:27:06 +1100 Subject: added blackbox testing for locktest (This used to be commit af6484f78d273407dd9b264bc4adb33497eee48b) --- testprogs/blackbox/test_locktest.sh | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100755 testprogs/blackbox/test_locktest.sh (limited to 'testprogs/blackbox') diff --git a/testprogs/blackbox/test_locktest.sh b/testprogs/blackbox/test_locktest.sh new file mode 100755 index 0000000000..60597ba83f --- /dev/null +++ b/testprogs/blackbox/test_locktest.sh @@ -0,0 +1,40 @@ +#!/bin/sh +# Blackbox tests for locktest +# Copyright (C) 2008 Andrew Tridgell +# based on test_smbclient.sh + +if [ $# -lt 4 ]; then +cat < Date: Fri, 15 Feb 2008 14:55:31 +1100 Subject: converted locktest to use popt and cmdline utility code (This used to be commit 625ea49a95cbdb507ea5b191f75ffa27e25cdb90) --- testprogs/blackbox/test_locktest.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'testprogs/blackbox') diff --git a/testprogs/blackbox/test_locktest.sh b/testprogs/blackbox/test_locktest.sh index 60597ba83f..c08b408107 100755 --- a/testprogs/blackbox/test_locktest.sh +++ b/testprogs/blackbox/test_locktest.sh @@ -3,9 +3,9 @@ # Copyright (C) 2008 Andrew Tridgell # based on test_smbclient.sh -if [ $# -lt 4 ]; then +if [ $# -lt 5 ]; then cat < Date: Fri, 15 Feb 2008 15:33:10 +1100 Subject: added a blackbox test for masktest (This used to be commit 05a110123df2372418e2ef2fd8f269b92054069c) --- testprogs/blackbox/test_masktest.sh | 41 +++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100755 testprogs/blackbox/test_masktest.sh (limited to 'testprogs/blackbox') diff --git a/testprogs/blackbox/test_masktest.sh b/testprogs/blackbox/test_masktest.sh new file mode 100755 index 0000000000..ef429a1fb0 --- /dev/null +++ b/testprogs/blackbox/test_masktest.sh @@ -0,0 +1,41 @@ +#!/bin/sh +# Blackbox tests for masktest +# Copyright (C) 2008 Andrew Tridgell +# based on test_smbclient.sh + +if [ $# -lt 5 ]; then +cat < Date: Fri, 15 Feb 2008 16:42:22 +1100 Subject: added blackbox testing of gentest (This used to be commit 716345fd38dfd8c6e610fbd6ba84c4f33e3edbb9) --- testprogs/blackbox/test_gentest.sh | 47 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100755 testprogs/blackbox/test_gentest.sh (limited to 'testprogs/blackbox') diff --git a/testprogs/blackbox/test_gentest.sh b/testprogs/blackbox/test_gentest.sh new file mode 100755 index 0000000000..89cc8c2795 --- /dev/null +++ b/testprogs/blackbox/test_gentest.sh @@ -0,0 +1,47 @@ +#!/bin/sh +# Blackbox tests for gentest +# Copyright (C) 2008 Andrew Tridgell +# based on test_smbclient.sh + +if [ $# -lt 4 ]; then +cat < st/gentest.ignore +all_info.out.fname +internal_information.out.file_id +EOF + +testit "gentest" $VALGRIND $gentest //$SERVER/test1 //$SERVER/test2 --num-ops=100 --ignore=st/gentest.ignore -W "$DOMAIN" -U"$USERNAME%$PASSWORD" -U"$USERNAME%$PASSWORD" $@ || failed=`expr $failed + 1` + +/bin/rm -f st/gentest.ignore + +exit $failed -- cgit