root / htest / shelltests / htools-multi-group.test @ bc4cdeef
History | View | Annotate | Download (1.3 kB)
1 | 53d4cdf1 | Iustin Pop | # standard multi-group tests |
---|---|---|---|
2 | 189b51fa | Iustin Pop | ./htest/hinfo -v -v -p --print-instances -t$T/simu-twogroups.standard |
3 | 53d4cdf1 | Iustin Pop | >>>= 0 |
4 | 189b51fa | Iustin Pop | ./htest/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 | 189b51fa | Iustin Pop | ./htest/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 | 189b51fa | Iustin Pop | ./htest/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 | 189b51fa | Iustin Pop | ./htest/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 | 189b51fa | Iustin Pop | ./htest/hinfo -v -v -p --print-instances -t$T/simu-twogroups.tiered |
21 | 53d4cdf1 | Iustin Pop | >>>= 0 |
22 | 189b51fa | Iustin Pop | ./htest/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 | 189b51fa | Iustin Pop | ./htest/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 | 189b51fa | Iustin Pop | ./htest/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 | 189b51fa | Iustin Pop | ./htest/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 | 189b51fa | Iustin Pop | ./htest/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 | a95aa74c | Iustin Pop | # hcheck should be able to improve a group with split instances |
43 | 189b51fa | Iustin Pop | ./htest/hbal -t $TESTDATA_DIR/hbal-split-insts.data -G group-01 -O node-01-001 |
44 | a95aa74c | Iustin Pop | >>> /Cluster score improved from .* to .*/ |
45 | a95aa74c | Iustin Pop | >>>= 0 |