From e6f8fd994567f85efd88b56e438816ee337f4f6e Mon Sep 17 00:00:00 2001 From: Tim Prouty Date: Tue, 11 Nov 2008 18:46:21 -0800 Subject: s3: Add support for make test to use a share dir outside of the prefix dir Some systems need to have the tdbs (and other files required for samba to run) on a different filesystem than the share directory that samba is exporting. This patch: - Adds an optional "shrdir" argument to selftest.sh - If shrdir is specified it will be used, otherwise the default will be used: "/tmp" - Adds a new configure option: --with-selftest-shrdir - Plumbs shrdir through Makefile.in and configure.in --- source3/m4/check_path.m4 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'source3/m4/check_path.m4') diff --git a/source3/m4/check_path.m4 b/source3/m4/check_path.m4 index 9c99468084..0cff397c93 100644 --- a/source3/m4/check_path.m4 +++ b/source3/m4/check_path.m4 @@ -275,6 +275,22 @@ AC_ARG_WITH(selftest-prefix, esac ]) +################################################# +# set shrdir for 'make test' +selftest_shrdir="" +AC_SUBST(selftest_shrdir) +AC_ARG_WITH(selftest-shrdir, +[AS_HELP_STRING([--with-selftest-shrdir=DIR], [The share directory that make test will be run against ($selftest_shrdir)])], +[ case "$withval" in + yes|no) + AC_MSG_WARN([--with-selftest-shrdir called without argument - will use default]) + ;; + * ) + selftest_shrdir="$withval" + ;; + esac +]) + ################################################# # set path of samba4's smbtorture smbtorture4_path="" -- cgit