1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

added a 4 node test

(This used to be ctdb commit 982468d0770684ec18cf95e3f254250debf4fd4c)
This commit is contained in:
Andrew Tridgell 2006-12-18 16:05:22 +11:00
parent ab7185c2ce
commit 1f44ccb569
2 changed files with 13 additions and 0 deletions

4
ctdb/tests/4nodes.txt Normal file
View File

@ -0,0 +1,4 @@
127.0.0.1:9001
127.0.0.2:9001
127.0.0.3:9001
127.0.0.4:9001

View File

@ -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