From e2de656314c8d50bfd5f14b24826a2df962fe704 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Wed, 18 Jan 2006 04:44:59 +0000 Subject: r12990: BUG 3329: patch from David May for Solaris shell script portability issues in 'make test' (This used to be commit 19339a9510467b4b2cf3889bc6a08563cdc940f4) --- source3/script/tests/functions | 4 ++-- source3/script/tests/runtests.sh | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/source3/script/tests/functions b/source3/script/tests/functions index 40e185e153..8cb8f0b155 100644 --- a/source3/script/tests/functions +++ b/source3/script/tests/functions @@ -34,7 +34,7 @@ stop_smbd() ## check to see if smbd is already running check_smbd_running - if test $? == 0; then + if test $? = 0; then echo "Unable to stop smbd!" exit 2 fi @@ -74,7 +74,7 @@ stop_nmbd() ## check to see if smbd is already running kill -0 $nmbd_pid 2> /dev/null - if test $? == 0; then + if test $? = 0; then echo "Unable to stop nmbd!" exit 2 fi diff --git a/source3/script/tests/runtests.sh b/source3/script/tests/runtests.sh index a5dc3ecfb4..ddaf94e8ac 100644 --- a/source3/script/tests/runtests.sh +++ b/source3/script/tests/runtests.sh @@ -1,11 +1,11 @@ #!/bin/sh -if [ "x$1" == "x" ]; then +if [ "x$1" = "x" ]; then echo "$0 " exit 1 fi -if [ $# == 2 ]; then +if [ $# = 2 ]; then testnum=$2 fi @@ -49,7 +49,7 @@ export USERNAME PASSWORD ## verify that we were built with --enable-socket-wrapper ## -if test "x`smbd -b | grep SOCKET_WRAPPER`" == "x"; then +if test "x`smbd -b | grep SOCKET_WRAPPER`" = "x"; then echo "***" echo "*** You must include --enable-socket-wrapper when compiling Samba" echo "*** in order to execute 'make test'. Exiting...." -- cgit