htools-multi-group.test 1.3 KB
Newer Older
1
# standard multi-group tests
2
./htest/hinfo -v -v -p --print-instances -t$T/simu-twogroups.standard
3
>>>= 0
4
./htest/hbal -t$T/simu-twogroups.standard
5
6
7
>>>= !0

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

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

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

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

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

# hcheck should be able to run with multiple groups
38
./htest/hcheck -t$T/simu-twogroups.tiered --machine-readable
Agata Murawska's avatar
Agata Murawska committed
39
>>> /HCHECK_OK=1/
40
>>>= 0
41
42

# hcheck should be able to improve a group with split instances
43
./htest/hbal -t $TESTDATA_DIR/hbal-split-insts.data -G group-01 -O node-01-001
44
45
>>> /Cluster score improved from .* to .*/
>>>= 0