r12990: BUG 3329: patch from David May <mayd@cygnus.uwa.edu.au> for Solaris shell...
authorGerald Carter <jerry@samba.org>
Wed, 18 Jan 2006 04:44:59 +0000 (04:44 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:06:09 +0000 (11:06 -0500)
source/script/tests/functions
source/script/tests/runtests.sh

index 40e185e153f76bbaab89ccc5caa812d0df97c16d..8cb8f0b1550249e8433e3405530683333d0583c5 100644 (file)
@@ -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
index a5dc3ecfb4a1232f6a27a3d8db1991f71155aabc..ddaf94e8ac5f5c11bdd4901cfbc6d78eecf81c71 100644 (file)
@@ -1,11 +1,11 @@
 #!/bin/sh
 
-if [ "x$1" == "x" ]; then
+if [ "x$1" = "x" ]; then
        echo "$0 <directory>"
        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...."