diff options
author | Tim Prouty <tprouty@samba.org> | 2008-11-11 18:46:21 -0800 |
---|---|---|
committer | Tim Prouty <tprouty@samba.org> | 2008-11-11 19:06:50 -0800 |
commit | e6f8fd994567f85efd88b56e438816ee337f4f6e (patch) | |
tree | 1c0bb4b09144f3e49a16b58181041e160d408dfb /source3/m4 | |
parent | c62427c7fc7fd9c2c33faa25e931d4583bea905a (diff) | |
download | samba-e6f8fd994567f85efd88b56e438816ee337f4f6e.tar.gz samba-e6f8fd994567f85efd88b56e438816ee337f4f6e.tar.bz2 samba-e6f8fd994567f85efd88b56e438816ee337f4f6e.zip |
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: "<prefix>/tmp"
- Adds a new configure option: --with-selftest-shrdir
- Plumbs shrdir through Makefile.in and configure.in
Diffstat (limited to 'source3/m4')
-rw-r--r-- | source3/m4/check_path.m4 | 16 |
1 files changed, 16 insertions, 0 deletions
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 @@ -276,6 +276,22 @@ AC_ARG_WITH(selftest-prefix, ]) ################################################# +# 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="" AC_SUBST(smbtorture4_path) |