repo.or.cz
/
Samba.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
ctdb: setup $CTDB_BASE for deterministic ip alloc tests
[Samba.git]
/
ctdb
/
tests
/
UNIT
/
takeover
/
det.003.sh
blob
931c498bfa4a4a4b0b4adc67398cd6bc4cb3bc70
1
#!/bin/sh
2
3
.
"
${TEST_SCRIPTS_DIR}
/unit.sh"
4
5
setup_ctdb_base
"
$CTDB_TEST_TMP_DIR
"
"ctdb-etc"
6
7
define_test
"3 nodes, 1 -> all healthy"
8
9
required_result
<<EOF
10
${TEST_DATE_STAMP}
Deterministic IPs enabled. Resetting all ip allocations
11
192.168.21.254 0
12
192.168.21.253 1
13
192.168.21.252 2
14
192.168.20.254 0
15
192.168.20.253 1
16
192.168.20.252 2
17
192.168.20.251 0
18
192.168.20.250 1
19
192.168.20.249 2
20
EOF
21
22
simple_test
0
,
0
,
0
<<EOF
23
192.168.20.249 1
24
192.168.20.250 1
25
192.168.20.251 1
26
192.168.20.252 1
27
192.168.20.253 1
28
192.168.20.254 1
29
192.168.21.252 1
30
192.168.21.253 1
31
192.168.21.254 1
32
EOF