]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
added a 4 node test
authorAndrew Tridgell <tridge@samba.org>
Mon, 18 Dec 2006 05:05:22 +0000 (16:05 +1100)
committerAndrew Tridgell <tridge@samba.org>
Mon, 18 Dec 2006 05:05:22 +0000 (16:05 +1100)
(This used to be ctdb commit 982468d0770684ec18cf95e3f254250debf4fd4c)

ctdb/tests/4nodes.txt [new file with mode: 0644]
ctdb/tests/test.sh

diff --git a/ctdb/tests/4nodes.txt b/ctdb/tests/4nodes.txt
new file mode 100644 (file)
index 0000000..880fe91
--- /dev/null
@@ -0,0 +1,4 @@
+127.0.0.1:9001
+127.0.0.2:9001
+127.0.0.3:9001
+127.0.0.4:9001
index 0aa93fbdbdbf0f8320cc06a2d4e4949a812fa156..144e92a66c11ee7eaa47c13936812fc4e03b20fa 100755 (executable)
@@ -2,8 +2,17 @@
 
 killall -q ctdb_test
 
+echo "Trying 2 nodes"
 bin/ctdb_test --nlist nodes.txt --listen 127.0.0.1:9001 &
 bin/ctdb_test --nlist nodes.txt --listen 127.0.0.2:9001 &
 
 sleep 3
 killall ctdb_test
+
+echo "Trying 4 nodes"
+bin/ctdb_test --nlist tests/4nodes.txt --listen 127.0.0.1:9001 &
+bin/ctdb_test --nlist tests/4nodes.txt --listen 127.0.0.2:9001 &
+bin/ctdb_test --nlist tests/4nodes.txt --listen 127.0.0.3:9001 &
+bin/ctdb_test --nlist tests/4nodes.txt --listen 127.0.0.4:9001 &
+sleep 3
+killall ctdb_test