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-tests: Add "ctdb listnodes" and "ctdb xpnn" stub tests
[Samba.git]
/
ctdb
/
tests
/
tool
/
stubby.xpnn.002.sh
blob
cc4f38ca009cfb6cf8faaf2eb8e6d7cde2ffe5dd
1
#!/bin/sh
2
3
.
"
${TEST_SCRIPTS_DIR}
/unit.sh"
4
5
define_test
"3 nodes, current is 2"
6
7
setup_nodes
<<EOF
8
192.168.20.41
9
192.168.20.42
10
192.168.20.43
11
EOF
12
13
required_result
0
"PNN:2"
14
15
simple_test
<<EOF
16
NODEMAP
17
0 192.168.20.41 0x0
18
1 192.168.20.42 0x0
19
2 192.168.20.43 0x0 CURRENT
20
EOF