diff options
author | Martin Schwenke <martin@meltin.net> | 2017-02-16 19:23:44 +1100 |
---|---|---|
committer | Martin Schwenke <martins@samba.org> | 2020-07-22 07:53:35 +0000 |
commit | 066c205e5fb0e28bb5cab61a583889bb85607fb9 (patch) | |
tree | d533ea629ecd67f61de74efe28f226cae130988b | |
parent | 3ff8765d04c0fb950b7be4f9a049999aeb08223b (diff) | |
download | samba-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/wscript | 7 |
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', |