summaryrefslogtreecommitdiff
path: root/ctdb/tests
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2019-02-06 13:57:00 +1100
committerAmitay Isaacs <amitay@samba.org>2019-03-15 05:17:14 +0000
commit8c2ff3f2b52e679a8e14cf97b5dddd1927a20bd1 (patch)
treee16864c157c625eda8de2d596ad676ef5175b2a6 /ctdb/tests
parent627a5cf1e717aab65b99eaba4e2efe78307adbf2 (diff)
downloadsamba-8c2ff3f2b52e679a8e14cf97b5dddd1927a20bd1.tar.gz
ctdb-daemon: Add an environment variable to set version
This can be used to test the version checking logic. Cache the version to avoid re-checking the environment variable each time. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@samba.org>
Diffstat (limited to 'ctdb/tests')
-rw-r--r--ctdb/tests/README11
1 files changed, 11 insertions, 0 deletions
diff --git a/ctdb/tests/README b/ctdb/tests/README
index c911dd8f68d..bbda3313850 100644
--- a/ctdb/tests/README
+++ b/ctdb/tests/README
@@ -162,6 +162,17 @@ Test and debugging variable options
Default is no.
+ CTDB_TEST_SAMBA_VERSION=VERSION
+
+ VERSION is a 32-bit number containg the Samba major
+ version in the most significant 16 bits and the minor
+ version in the least significant 16 bits. This can be
+ used to test CTDB's checking of incompatible versions
+ without installing an incompatible version. This is
+ probably best set like this:
+
+ export CTDB_TEST_SAMBA_VERSION=$(( (4 << 16) | 12 ))
+
CTDB_VARDIR=DIRECTORY
DIRECTORY containing CTDB files that are modified at runtime.