r16025: make sure the samba4's smbtorture can be executed
authorStefan Metzmacher <metze@samba.org>
Sat, 3 Jun 2006 09:51:59 +0000 (09:51 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:17:18 +0000 (11:17 -0500)
metze

source/script/tests/tests_all.sh

index 64a7065ee97f2c1065fe402a987c9c1dd051effb..059f9d1a376fd38430fcd621e895404ccd001a7a 100755 (executable)
@@ -2,9 +2,10 @@
 $SCRIPTDIR/test_smbtorture_s3.sh //$SERVER_IP/tmp $USERNAME $PASSWORD "" || failed=`expr $failed + $?`
 $SCRIPTDIR/test_smbclient_s3.sh $SERVER $SERVER_IP || failed=`expr $failed + $?`
 
-if [ -n "$SMBTORTURE4" ];then
+SMBTORTURE4VERSION=`$SMBTORTURE4 --version`
+if [ -n "$SMBTORTURE4" -a -n "$SMBTORTURE4VERSION" ];then
        echo "Running Tests with Samba4's smbtorture"
-       $SMBTORTURE4 --version
+       echo $SMBTORTURE4VERSION
        $SCRIPTDIR/test_posix_s3.sh //$SERVER_IP/tmp $USERNAME $PASSWORD "" || failed=`expr $failed + $?`
 else
        echo "Skip Tests with Samba4's smbtorture"