~ubuntu-branches/ubuntu/vivid/ctdb/vivid-proposed

« back to all changes in this revision

Viewing changes to tests/takeover/testcases/lcp2.002.sh

  • Committer: Package Import Robot
  • Author(s): Mathieu Parent
  • Date: 2011-11-06 15:18:59 UTC
  • mfrom: (1.2.14)
  • Revision ID: package-import@ubuntu.com-20111106151859-41lblk8ml4es7ra3
Tags: 1.11+git20111102-1
* New upstream release
  - removed 92-apache-service-enable.diff: integrated 
  - removed 99-fix-broken-readdir-test.diff: integrated
* d/rules, d/control, d/compat:
  - converted to dh (% target and dh_auto_*)
  - moved to compat level 9 (buildeps upgraded)
  - dh9 enabled hardening build flags
  - added hardening=+bindnow
  - dh9 enabled multiarch
    + Don't use /use/lib64 on ppc64 (Closes: #644907)
    + libctdb-dev is Multi-Arch: same
    + removed 10_no-lib64.diff: not needed with multiarch
* ctdb.init:
  - removed gettext support
  - synced with upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
. "${TAKEOVER_TESTS_DIR}/common.sh"
 
4
 
 
5
define_test "3 nodes, 3 -> 2 healthy"
 
6
 
 
7
export CTDB_TEST_LOGLEVEL=0
 
8
 
 
9
required_result <<EOF
 
10
192.168.21.254 2
 
11
192.168.21.253 2
 
12
192.168.21.252 0
 
13
192.168.20.254 2
 
14
192.168.20.253 2
 
15
192.168.20.252 0
 
16
192.168.20.251 2
 
17
192.168.20.250 0
 
18
192.168.20.249 0
 
19
EOF
 
20
 
 
21
simple_test 0,2,0 <<EOF
 
22
192.168.20.249 0
 
23
192.168.20.250 1
 
24
192.168.20.251 2
 
25
192.168.20.252 0
 
26
192.168.20.253 1
 
27
192.168.20.254 2
 
28
192.168.21.252 0
 
29
192.168.21.253 1
 
30
192.168.21.254 2
 
31
EOF