Revision 189b51fa htest/shelltests/htools-multi-group.test
b/htest/shelltests/htools-multi-group.test | ||
---|---|---|
1 | 1 |
# standard multi-group tests |
2 |
./test/hinfo -v -v -p --print-instances -t$T/simu-twogroups.standard |
|
2 |
./htest/hinfo -v -v -p --print-instances -t$T/simu-twogroups.standard
|
|
3 | 3 |
>>>= 0 |
4 |
./test/hbal -t$T/simu-twogroups.standard |
|
4 |
./htest/hbal -t$T/simu-twogroups.standard
|
|
5 | 5 |
>>>= !0 |
6 | 6 |
|
7 | 7 |
# hbal should not be able to balance |
8 |
./test/hbal -t$T/simu-twogroups.standard |
|
8 |
./htest/hbal -t$T/simu-twogroups.standard
|
|
9 | 9 |
>>>2 /Found multiple node groups/ |
10 | 10 |
>>>= !0 |
11 | 11 |
|
12 | 12 |
# but hbal should be able to balance one node group |
13 |
./test/hbal -t$T/simu-twogroups.standard -G group-01 |
|
13 |
./htest/hbal -t$T/simu-twogroups.standard -G group-01
|
|
14 | 14 |
>>>= 0 |
15 | 15 |
# and it should not find an invalid group |
16 |
./test/hbal -t$T/simu-twogroups.standard -G no-such-group |
|
16 |
./htest/hbal -t$T/simu-twogroups.standard -G no-such-group
|
|
17 | 17 |
>>>= !0 |
18 | 18 |
|
19 | 19 |
# tiered allocs multi-group tests |
20 |
./test/hinfo -v -v -p --print-instances -t$T/simu-twogroups.tiered |
|
20 |
./htest/hinfo -v -v -p --print-instances -t$T/simu-twogroups.tiered
|
|
21 | 21 |
>>>= 0 |
22 |
./test/hbal -t$T/simu-twogroups.tiered |
|
22 |
./htest/hbal -t$T/simu-twogroups.tiered
|
|
23 | 23 |
>>>= !0 |
24 | 24 |
|
25 | 25 |
# hbal should not be able to balance |
26 |
./test/hbal -t$T/simu-twogroups.tiered |
|
26 |
./htest/hbal -t$T/simu-twogroups.tiered
|
|
27 | 27 |
>>>2 /Found multiple node groups/ |
28 | 28 |
>>>= !0 |
29 | 29 |
|
30 | 30 |
# but hbal should be able to balance one node group |
31 |
./test/hbal -t$T/simu-twogroups.tiered -G group-01 |
|
31 |
./htest/hbal -t$T/simu-twogroups.tiered -G group-01
|
|
32 | 32 |
>>>= 0 |
33 | 33 |
# and it should not find an invalid group |
34 |
./test/hbal -t$T/simu-twogroups.tiered -G no-such-group |
|
34 |
./htest/hbal -t$T/simu-twogroups.tiered -G no-such-group
|
|
35 | 35 |
>>>= !0 |
36 | 36 |
|
37 | 37 |
# hcheck should be able to run with multiple groups |
38 |
./test/hcheck -t$T/simu-twogroups.tiered --machine-readable |
|
38 |
./htest/hcheck -t$T/simu-twogroups.tiered --machine-readable
|
|
39 | 39 |
>>> /HCHECK_OK=1/ |
40 | 40 |
>>>= 0 |
41 | 41 |
|
42 | 42 |
# hcheck should be able to improve a group with split instances |
43 |
./test/hbal -t $TESTDATA_DIR/hbal-split-insts.data -G group-01 -O node-01-001 |
|
43 |
./htest/hbal -t $TESTDATA_DIR/hbal-split-insts.data -G group-01 -O node-01-001
|
|
44 | 44 |
>>> /Cluster score improved from .* to .*/ |
45 | 45 |
>>>= 0 |
Also available in: Unified diff