summaryrefslogtreecommitdiff
path: root/ctdb/wscript
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2018-10-11 19:32:09 +1100
committerAmitay Isaacs <amitay@samba.org>2018-11-06 07:16:17 +0100
commit46fd4f144e7c881887db0deca0ae3b340e19afb3 (patch)
tree8fa5a26f054bf0bc8e262fbdb6acc3fb71dd2ea3 /ctdb/wscript
parent25efb924bf0c551e3097a116ae8f1cb46d62993f (diff)
downloadsamba-46fd4f144e7c881887db0deca0ae3b340e19afb3.tar.gz
ctdb-tests: Add local_daemons.sh
This provides a separate script for handling local daemons. It can be used for testing outside of the CTDB simple test suite. It is installed as ctdb_local_daemons. The logic is copied from ctdb/tests/simple/scripts/local_daemons.bash. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb/wscript')
-rw-r--r--ctdb/wscript8
1 files changed, 8 insertions, 0 deletions
diff --git a/ctdb/wscript b/ctdb/wscript
index b59f6d5ed5d..e8e8e4d290e 100644
--- a/ctdb/wscript
+++ b/ctdb/wscript
@@ -1114,6 +1114,14 @@ def build(bld):
bld.symlink_as(os.path.join(bld.env.BINDIR, 'ctdb_run_cluster_tests'),
'ctdb_run_tests')
+ bld.SAMBA_GENERATOR('ctdb-local-daemons',
+ source='tests/local_daemons.sh',
+ target='ctdb_local_daemons.sh',
+ rule='sed -e "%s" -e "%s" ${SRC} > ${TGT}' % (
+ sed_expr1, sed_expr2))
+ bld.INSTALL_FILES('${BINDIR}', 'ctdb_local_daemons.sh',
+ destname='ctdb_local_daemons', chmod=0o755)
+
def testonly(ctx):
cmd = 'tests/run_tests.sh -V tests/var'