summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2017-02-16 19:23:44 +1100
committerMartin Schwenke <martins@samba.org>2020-07-22 07:53:35 +0000
commit066c205e5fb0e28bb5cab61a583889bb85607fb9 (patch)
treed533ea629ecd67f61de74efe28f226cae130988b
parent3ff8765d04c0fb950b7be4f9a049999aeb08223b (diff)
downloadsamba-066c205e5fb0e28bb5cab61a583889bb85607fb9.tar.gz
ctdb-build: Don't build/install tests in top-level build by default
The standalone build still includes tests, as does the top-level build when --enable-selftest is used. The latter is consistent with the use of --enable-selftest in the rest of the tree. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
-rw-r--r--ctdb/wscript7
1 files changed, 7 insertions, 0 deletions
diff --git a/ctdb/wscript b/ctdb/wscript
index 5f93f3a0668..35c8c0622fc 100644
--- a/ctdb/wscript
+++ b/ctdb/wscript
@@ -868,6 +868,13 @@ def build(bld):
for d in ['volatile', 'persistent', 'state']:
bld.INSTALL_DIR(os.path.join(bld.env.CTDB_VARDIR, d))
+ #
+ # Test-only below this point
+ #
+
+ if not bld.env.standalone_ctdb and not bld.CONFIG_GET('ENABLE_SELFTEST'):
+ return
+
bld.SAMBA_BINARY('errcode',
source='tests/src/errcode.c',
deps='replace',