s3-selftest unconditionaly include subunit.sh
authorAndrew Bartlett <abartlet@samba.org>
Mon, 28 Mar 2011 11:05:27 +0000 (22:05 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 28 Mar 2011 22:00:23 +0000 (00:00 +0200)
we no longer . this file into other shell scripts, so we don't need
this check any more.

Andrew Bartlett

12 files changed:
source3/script/tests/test_failure.sh
source3/script/tests/test_local_s3.sh
source3/script/tests/test_net_misc.sh
source3/script/tests/test_net_registry.sh
source3/script/tests/test_net_registry_roundtrip.sh
source3/script/tests/test_ntlm_auth_s3.sh
source3/script/tests/test_smbclient_auth.sh
source3/script/tests/test_smbclient_s3.sh
source3/script/tests/test_smbtorture_s3.sh
source3/script/tests/test_success.sh
source3/script/tests/test_testparm_s3.sh
source3/script/tests/test_wbinfo_s3.sh

index 8af0f3afff536a9b1ada3622ce413872cc000573..4980fb09201e0a5c4bc10edb0251a176fa805838 100755 (executable)
@@ -4,12 +4,8 @@
 #
 # Copyright (C) 2011 Michael Adam <obnox@samba.org>
 
-# include the blackbox subunit infrastructure
-# if not run from classical s3 test script:
-test x"$TEST_FUNCTIONS_SH" != x"INCLUDED" && {
-       incdir=`dirname $0`/../../../testprogs/blackbox
-       . $incdir/subunit.sh
-}
+incdir=`dirname $0`/../../../testprogs/blackbox
+. $incdir/subunit.sh
 
 failed=0
 
index de867c959ebd439a0de24842d7ea994793b1e2e2..d5a3d474edb057dbc67d4d1199649255b7134961 100755 (executable)
@@ -9,10 +9,8 @@ EOF
 exit 1;
 fi
 
-test x"$TEST_FUNCTIONS_SH" != x"INCLUDED" && {
 incdir=`dirname $0`/../../../testprogs/blackbox
 . $incdir/subunit.sh
-}
 
 failed=0
 
index 015b5026a7f2a8d9bf9267ca7abdcc8ed98d943e..82775dc4d31af9c4793cfda31e4eb168f9c3aa04 100755 (executable)
@@ -18,10 +18,8 @@ NET="$VALGRIND ${NET:-$BINDIR/net} $CONFIGURATION"
 NETTIME="${NET} time"
 NETLOOKUP="${NET} lookup"
 
-test x"$TEST_FUNCTIONS_SH" != x"INCLUDED" && {
 incdir=`dirname $0`/../../../testprogs/blackbox
 . $incdir/subunit.sh
-}
 
 failed=0
 
index 21c452d6e1aaad7518af41337ea9718967a1d574..b76a988b4dc4e1cf4d18121bf38cd7ff05400908 100755 (executable)
@@ -27,10 +27,8 @@ else
        NETREG="${NET} registry"
 fi
 
-test x"$TEST_FUNCTIONS_SH" != x"INCLUDED" && {
 incdir=`dirname $0`/../../../testprogs/blackbox
 . $incdir/subunit.sh
-}
 
 failed=0
 
index 5431098da072a063d313a7ce40a27dd91b796ac8..ca56f6d126a942a4dcc38dd768a4dffe6fe49a2e 100755 (executable)
@@ -25,10 +25,8 @@ else
        NETREG="${NET} registry"
 fi
 
-test x"$TEST_FUNCTIONS_SH" != x"INCLUDED" && {
 incdir=`dirname $0`/../../../testprogs/blackbox
 . $incdir/subunit.sh
-}
 
 failed=0
 
index 4f849825033797d18a9727b1b90aa7eaf479c522..99b2ab3f14954f523b050dfb0c3bdca6aba0cc58 100755 (executable)
@@ -12,10 +12,8 @@ SRC3DIR=$2
 shift 2
 ADDARGS="$*"
 
-test x"$TEST_FUNCTIONS_SH" != x"INCLUDED" && {
 incdir=`dirname $0`/../../../testprogs/blackbox
 . $incdir/subunit.sh
-}
 
 failed=0
 
index 7ee60b03c2d88e09af03c7a393c3d5077f0780f2..cb4aeb80720cffc7d1712e3cf6819d71026eeea9 100755 (executable)
@@ -17,10 +17,8 @@ SMBCLIENT="$VALGRIND ${SMBCLIENT:-$BINDIR/smbclient}"
 shift 4
 ADDARGS="$*"
 
-test x"$TEST_FUNCTIONS_SH" != x"INCLUDED" && {
 incdir=`dirname $0`/../../../testprogs/blackbox
 . $incdir/subunit.sh
-}
 
 failed=0
 
index 857400e9b07b4ea7956188e8e6a6a8f2aecbfc0b..30b26a4d8cd0df714d6b70c2b252cd8c4de7b9c9 100755 (executable)
@@ -21,10 +21,8 @@ WBINFO="$VALGRIND ${WBINFO:-$BINDIR/wbinfo}"
 shift 7
 ADDARGS="$*"
 
-test x"$TEST_FUNCTIONS_SH" != x"INCLUDED" && {
 incdir=`dirname $0`/../../../testprogs/blackbox
 . $incdir/subunit.sh
-}
 
 failed=0
 
index ca64fa283ddd9e1bc6d120ab23e21a1b4498e520..65c98a58eca28634e08d66e79725c302d46f2c34 100755 (executable)
@@ -16,10 +16,8 @@ password="$4"
 shift 4
 ADDARGS="$*"
 
-test x"$TEST_FUNCTIONS_SH" != x"INCLUDED" && {
 incdir=`dirname $0`/../../../testprogs/blackbox
 . $incdir/subunit.sh
-}
 
 
 
index 09e7264536dc36b5a018b395e91ad09830efd908..fe63fb51a9faf79e2bd13f4380c4848528adeaf8 100755 (executable)
@@ -4,12 +4,8 @@
 #
 # Copyright (C) 2011 Michael Adam <obnox@samba.org>
 
-# include the blackbox subunit infrastructure
-# if not run from classical s3 test script:
-test x"$TEST_FUNCTIONS_SH" != x"INCLUDED" && {
-       incdir=`dirname $0`/../../../testprogs/blackbox
-       . $incdir/subunit.sh
-}
+incdir=`dirname $0`/../../../testprogs/blackbox
+. $incdir/subunit.sh
 
 failed=0
 
index bced6e7e1936f704e66643a227874562428561c9..c9682f0dd10cf09dbe02f53acceb8da5f46f483f 100755 (executable)
@@ -17,10 +17,8 @@ LOCAL_PATH="$1"
 TEMP_CONFFILE=${LOCAL_PATH}/smb.conf.tmp
 TESTPARM="$VALGRIND ${TESTPARM:-$BINDIR/testparm} --suppress-prompt --skip-logic-checks"
 
-test x"$TEST_FUNCTIONS_SH" != x"INCLUDED" && {
 incdir=`dirname $0`/../../../testprogs/blackbox
 . $incdir/subunit.sh
-}
 
 failed=0
 
index 860e7c5afce25a879c7f0e18c157ea5fe3e09444..91a9f45b3a6a8cff001100a6b02193ac1f58104c 100755 (executable)
@@ -9,10 +9,8 @@ fi
 
 ADDARGS="$*"
 
-test x"$TEST_FUNCTIONS_SH" != x"INCLUDED" && {
 incdir=`dirname $0`/../../../testprogs/blackbox
 . $incdir/subunit.sh
-}
 
 testit "wbinfo" $VALGRIND $BINDIR/wbinfo $ADDARGS || failed=`expr $failed + 1`