summaryrefslogtreecommitdiff
path: root/source3/script/tests/runtests.sh
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-08-24 13:09:13 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:01:13 -0500
commite2a5b7da6a10e54a8ab8b41b64544794aaddbeb4 (patch)
tree825173b8f8f8b279e4498ccb2a144dbf7c37deff /source3/script/tests/runtests.sh
parentc3d30670d4117fde0fc7f4d74b076bc74c6b46ec (diff)
downloadsamba-e2a5b7da6a10e54a8ab8b41b64544794aaddbeb4.tar.gz
samba-e2a5b7da6a10e54a8ab8b41b64544794aaddbeb4.tar.bz2
samba-e2a5b7da6a10e54a8ab8b41b64544794aaddbeb4.zip
r9583: ensure that Samba was with with --enable-socket-wrapper for running 'make test'
(This used to be commit 019155e748d9e04150bae39676362b794c1b6043)
Diffstat (limited to 'source3/script/tests/runtests.sh')
-rw-r--r--source3/script/tests/runtests.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/source3/script/tests/runtests.sh b/source3/script/tests/runtests.sh
index b814ad91e7..bb599ea3ec 100644
--- a/source3/script/tests/runtests.sh
+++ b/source3/script/tests/runtests.sh
@@ -44,6 +44,19 @@ export PRIVATEDIR LIBDIR PIDDIR LOCKDIR TMPDIR LOGDIR
export SRCDIR SCRIPTDIR
export USERNAME PASSWORD
+
+##
+## verify that we were built with --enable-socket-wrapper
+##
+
+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...."
+ echo "***"
+ exit 1
+fi
+
##
## create the test directory layout
##