Statistics
| Branch: | Tag: | Revision:

root / test / hs / shelltests / htools-multi-group.test @ e0d15aae

History | View | Annotate | Download (1.4 kB)

1 53d4cdf1 Iustin Pop
# standard multi-group tests
2 83846468 Iustin Pop
./test/hs/hinfo -v -v -p --print-instances -t$T/simu-twogroups.standard
3 53d4cdf1 Iustin Pop
>>>= 0
4 83846468 Iustin Pop
./test/hs/hbal -t$T/simu-twogroups.standard
5 53d4cdf1 Iustin Pop
>>>= !0
6 53d4cdf1 Iustin Pop
7 53d4cdf1 Iustin Pop
# hbal should not be able to balance
8 83846468 Iustin Pop
./test/hs/hbal -t$T/simu-twogroups.standard
9 53d4cdf1 Iustin Pop
>>>2 /Found multiple node groups/
10 53d4cdf1 Iustin Pop
>>>= !0
11 53d4cdf1 Iustin Pop
12 53d4cdf1 Iustin Pop
# but hbal should be able to balance one node group
13 83846468 Iustin Pop
./test/hs/hbal -t$T/simu-twogroups.standard -G group-01
14 53d4cdf1 Iustin Pop
>>>= 0
15 53d4cdf1 Iustin Pop
# and it should not find an invalid group
16 83846468 Iustin Pop
./test/hs/hbal -t$T/simu-twogroups.standard -G no-such-group
17 53d4cdf1 Iustin Pop
>>>= !0
18 53d4cdf1 Iustin Pop
19 53d4cdf1 Iustin Pop
# tiered allocs multi-group tests
20 83846468 Iustin Pop
./test/hs/hinfo -v -v -p --print-instances -t$T/simu-twogroups.tiered
21 53d4cdf1 Iustin Pop
>>>= 0
22 83846468 Iustin Pop
./test/hs/hbal -t$T/simu-twogroups.tiered
23 53d4cdf1 Iustin Pop
>>>= !0
24 53d4cdf1 Iustin Pop
25 53d4cdf1 Iustin Pop
# hbal should not be able to balance
26 83846468 Iustin Pop
./test/hs/hbal -t$T/simu-twogroups.tiered
27 53d4cdf1 Iustin Pop
>>>2 /Found multiple node groups/
28 53d4cdf1 Iustin Pop
>>>= !0
29 53d4cdf1 Iustin Pop
30 53d4cdf1 Iustin Pop
# but hbal should be able to balance one node group
31 83846468 Iustin Pop
./test/hs/hbal -t$T/simu-twogroups.tiered -G group-01
32 53d4cdf1 Iustin Pop
>>>= 0
33 53d4cdf1 Iustin Pop
# and it should not find an invalid group
34 83846468 Iustin Pop
./test/hs/hbal -t$T/simu-twogroups.tiered -G no-such-group
35 53d4cdf1 Iustin Pop
>>>= !0
36 165b385b Agata Murawska
37 165b385b Agata Murawska
# hcheck should be able to run with multiple groups
38 83846468 Iustin Pop
./test/hs/hcheck -t$T/simu-twogroups.tiered --machine-readable
39 47ed1d79 Agata Murawska
>>> /HCHECK_OK=1/
40 5b93f2ec Agata Murawska
>>>= 0
41 a95aa74c Iustin Pop
42 591fa888 Iustin Pop
# hcheck should be able to improve a group with split instances, and also
43 591fa888 Iustin Pop
# warn us about them
44 83846468 Iustin Pop
./test/hs/hbal -t $TESTDATA_DIR/hbal-split-insts.data -G group-01 -O node-01-001 -v
45 a95aa74c Iustin Pop
>>> /Cluster score improved from .* to .*/
46 591fa888 Iustin Pop
>>>2/Found instances belonging to multiple node groups:/
47 a95aa74c Iustin Pop
>>>= 0