Statistics
| Branch: | Tag: | Revision:

root / test / hs / shelltests / htools-multi-group.test @ 91c17910

History | View | Annotate | Download (1.4 kB)

1
# standard multi-group tests
2
./test/hs/hinfo -v -v -p --print-instances -t$T/simu-twogroups.standard
3
>>>= 0
4
./test/hs/hbal -t$T/simu-twogroups.standard
5
>>>= !0
6

    
7
# hbal should not be able to balance
8
./test/hs/hbal -t$T/simu-twogroups.standard
9
>>>2 /Found multiple node groups/
10
>>>= !0
11

    
12
# but hbal should be able to balance one node group
13
./test/hs/hbal -t$T/simu-twogroups.standard -G group-01
14
>>>= 0
15
# and it should not find an invalid group
16
./test/hs/hbal -t$T/simu-twogroups.standard -G no-such-group
17
>>>= !0
18

    
19
# tiered allocs multi-group tests
20
./test/hs/hinfo -v -v -p --print-instances -t$T/simu-twogroups.tiered
21
>>>= 0
22
./test/hs/hbal -t$T/simu-twogroups.tiered
23
>>>= !0
24

    
25
# hbal should not be able to balance
26
./test/hs/hbal -t$T/simu-twogroups.tiered
27
>>>2 /Found multiple node groups/
28
>>>= !0
29

    
30
# but hbal should be able to balance one node group
31
./test/hs/hbal -t$T/simu-twogroups.tiered -G group-01
32
>>>= 0
33
# and it should not find an invalid group
34
./test/hs/hbal -t$T/simu-twogroups.tiered -G no-such-group
35
>>>= !0
36

    
37
# hcheck should be able to run with multiple groups
38
./test/hs/hcheck -t$T/simu-twogroups.tiered --machine-readable
39
>>> /HCHECK_OK=1/
40
>>>= 0
41

    
42
# hcheck should be able to improve a group with split instances, and also
43
# warn us about them
44
./test/hs/hbal -t $TESTDATA_DIR/hbal-split-insts.data -G group-01 -O node-01-001 -v
45
>>> /Cluster score improved from .* to .*/
46
>>>2/Found instances belonging to multiple node groups:/
47
>>>= 0