From 066c205e5fb0e28bb5cab61a583889bb85607fb9 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Thu, 16 Feb 2017 19:23:44 +1100 Subject: 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 Reviewed-by: Amitay Isaacs --- ctdb/wscript | 7 +++++++ 1 file changed, 7 insertions(+) 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', -- cgit v1.2.1