From: Martin Schwenke Date: Thu, 16 Feb 2017 08:23:44 +0000 (+1100) Subject: ctdb-build: Don't build/install tests in top-level build by default X-Git-Tag: talloc-2.3.2~1021 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=066c205e5fb0e28bb5cab61a583889bb85607fb9;p=thirdparty%2Fsamba.git 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 --- 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',