repo.or.cz
/
Samba
/
wip.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
wafsamba: use -Werror=declaration-after-statement if available
[Samba/wip.git]
/
ctdb
/
tests
/
takeover
/
lcp2.025.sh
blob
44b8583edc0ac7e4945db10ca14ad56c5528b40d
1
#!/bin/sh
2
3
.
"
${TEST_SCRIPTS_DIR}
/unit.sh"
4
5
define_test
"3 nodes, no IPs assigned, all healthy, 1 in STARTUP runstate"
6
7
export
CTDB_TEST_LOGLEVEL
=
2
8
9
required_result
<<EOF
10
192.168.21.254 1
11
192.168.21.253 2
12
192.168.21.252 1
13
192.168.20.254 1
14
192.168.20.253 2
15
192.168.20.252 1
16
192.168.20.251 1
17
192.168.20.250 2
18
192.168.20.249 2
19
EOF
20
21
export
CTDB_TEST_RUNSTATE
=
4
,
5
,
5
22
23
simple_test
0
,
0
,
0
<<EOF
24
192.168.21.254 -1
25
192.168.21.253 -1
26
192.168.21.252 -1
27
192.168.20.254 -1
28
192.168.20.253 -1
29
192.168.20.252 -1
30
192.168.20.251 -1
31
192.168.20.250 -1
32
192.168.20.249 -1
33
EOF