diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-06-30 17:05:02 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:18:59 -0500 |
commit | 7a4496f606ab3d6594489eeee89ed2140b8c7655 (patch) | |
tree | e23c94ce2f9330c373f762d7f673d7f5d09c8c58 /source4/build | |
parent | ce5882e82fa688532c3e0453c48d2b629538b0ed (diff) | |
download | samba-7a4496f606ab3d6594489eeee89ed2140b8c7655.tar.gz samba-7a4496f606ab3d6594489eeee89ed2140b8c7655.tar.bz2 samba-7a4496f606ab3d6594489eeee89ed2140b8c7655.zip |
r8020: - add --with-selftest-prefix option that specify the prefix used in make test
- also we use ./prefix test as default and not `pwd`/prefix-test
to workaround the path length limit for unix sockets
... char sun_path[108]; ...
metze
(This used to be commit d04057b932266325b1267597b2bc202db392a88a)
Diffstat (limited to 'source4/build')
-rw-r--r-- | source4/build/m4/check_path.m4 | 15 | ||||
-rw-r--r-- | source4/build/smb_build/makefile.pm | 4 |
2 files changed, 17 insertions, 2 deletions
diff --git a/source4/build/m4/check_path.m4 b/source4/build/m4/check_path.m4 index 5fec1c3f05..7ff0a353b8 100644 --- a/source4/build/m4/check_path.m4 +++ b/source4/build/m4/check_path.m4 @@ -130,6 +130,21 @@ AC_SUBST(bindir) AC_SUBST(sbindir) AC_SUBST(swatdir) +################################################# +# set prefix for 'make test' +selftest_prefix="./" +AC_SUBST(selftest_prefix) +AC_ARG_WITH(selftest-prefix, +[ --with-selftest-prefix=DIR The prefix where make test will be runned (\$selftest_prefix)], +[ case "$withval" in + yes|no) + AC_MSG_WARN([--with-selftest-prefix called without argument - will use default]) + ;; + * ) + selftest_prefix="$withval" + ;; + esac]) + developer=no AC_ARG_ENABLE(developer, [ --enable-developer Turn on developer warnings and debugging (default=no)], [if test x$enable_developer = xyes; then diff --git a/source4/build/smb_build/makefile.pm b/source4/build/smb_build/makefile.pm index a9ac1d76b1..97dd0b5710 100644 --- a/source4/build/smb_build/makefile.pm +++ b/source4/build/smb_build/makefile.pm @@ -148,10 +148,10 @@ basics: idl proto_exists test: @DEFAULT_TEST_TARGET@ test-swrap: all - ./script/tests/selftest.sh `pwd`/prefix-test SOCKET_WRAPPER + ./script/tests/selftest.sh @selftest_prefix@/prefix-test SOCKET_WRAPPER test-noswrap: all - ./script/tests/selftest.sh `pwd`/prefix-test + ./script/tests/selftest.sh @selftest_prefix@/prefix-test __EOD__ } |