1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

selftest: Require libarchive for --enable-selftest

This avoids one more case where tests can go missing by removing the conditional.

(Yes, this has happend for other tests in the past).

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue May 15 06:31:03 CEST 2018 on sn-devel-144
This commit is contained in:
Andrew Bartlett 2018-05-10 14:00:54 +12:00
parent aced401728
commit a0f0350252
2 changed files with 26 additions and 25 deletions

View File

@ -54,7 +54,6 @@ try:
finally:
f.close()
have_libarchive = ("HAVE_LIBARCHIVE" in config_hash)
have_linux_kernel_oplocks = ("HAVE_KERNEL_OPLOCKS_LINUX" in config_hash)
have_inotify = ("HAVE_INOTIFY" in config_hash)
have_ldwrap = ("HAVE_LDWRAP" in config_hash)
@ -295,8 +294,6 @@ for env in ["fileserver"]:
# tar command tests
#
# tar command enabled only if built with libarchive
if have_libarchive:
# Test smbclient/tarmode
plantestsuite("samba3.blackbox.smbclient_tarmode.NT1", env,
[os.path.join(samba3srcdir, "script/tests/test_smbclient_tarmode.sh"),

View File

@ -228,6 +228,10 @@ main() {
"build without libarchive support. "
"libarchive support is required for the smbclient "
"tar-file mode")
elif conf.CONFIG_GET('ENABLE_SELFTEST'):
raise Utils.WafError('libarchive library required for '
'--enable-selftest')
# check for DMAPI libs
if Options.options.with_dmapi == False: