diff --git a/test/htools-balancing.test b/test/htools-balancing.test index 37e9e832d5d4b750b0d5ba72471f7532c9715dc3..5647cb55040e46cb614d1f4cc048931e50b8496a 100644 --- a/test/htools-balancing.test +++ b/test/htools-balancing.test @@ -32,6 +32,11 @@ diff -u $T/simu-rebal-merged.standard $T/simu-rebal.standard.original >>> /(Nothing to do, exiting|No solution found)/ >>>= 0 +# hcheck sees no reason to rebalance after rebalancing was already done +./test/hcheck -t$T/simu-rebal.standard.balanced --machine-readable +>>>1 /HCHECK_INIT_CLUSTER_NEED_REBALANCE=0/ +>>>= 0 + ### now tiered tests # test basic parsing diff --git a/test/htools-basic.test b/test/htools-basic.test index 39a8807ebef73755a78723741531fe1aa924afec..d05d54406f82bd1678875ffa041d10692ef1b0f8 100644 --- a/test/htools-basic.test +++ b/test/htools-basic.test @@ -19,3 +19,7 @@ >>>= 0 ./test/hinfo --help >>>= 0 +./test/hcheck --version +>>>= 0 +./test/hcheck --help +>>>= 0 \ No newline at end of file diff --git a/test/htools-invalid.test b/test/htools-invalid.test index 1d57cce6b17ae634cd2975f7f6c95ce325379e5d..f8849cf1ae145a44f803f2ce4ebe7df1937c825e 100644 --- a/test/htools-invalid.test +++ b/test/htools-invalid.test @@ -18,6 +18,10 @@ ./test/hinfo --no-such-option >>>= 2 +# invalid option test +./test/hcheck --no-such-option +>>>= 2 + # extra arguments ./test/hspace unexpected-argument >>>2 @@ -33,3 +37,8 @@ Error: this program doesn't take any arguments. >>>2 Error: this program doesn't take any arguments. >>>=1 + +./test/hcheck unexpected-argument +>>>2 +Error: this program doesn't take any arguments. +>>>=1 \ No newline at end of file diff --git a/test/htools-multi-group.test b/test/htools-multi-group.test index b39dd8e897a28f5fec543dcf9c6f3ddd48af3bae..2f6ec7213b0c34ab735bb77f3fd07bcb347b28d2 100644 --- a/test/htools-multi-group.test +++ b/test/htools-multi-group.test @@ -33,3 +33,8 @@ # and it should not find an invalid group ./test/hbal -t$T/simu-twogroups.tiered -G no-such-group >>>= !0 + +# hcheck should be able to run with multiple groups +./test/hcheck -t$T/simu-twogroups.tiered --machine-readable +>>>1 /HCHECK_OK=1/ +>>>= 0 \ No newline at end of file diff --git a/test/htools-single-group.test b/test/htools-single-group.test index c77db81c0dd8ebdd9293c1a9dd8956d418a8bea4..202926255f846ffd49f9335c302bcdd5c39a05ef 100644 --- a/test/htools-single-group.test +++ b/test/htools-single-group.test @@ -22,3 +22,8 @@ ./test/hbal -t$T/simu-onegroup.tiered >>> /(Nothing to do, exiting|No solution found)/ >>>= 0 + +# hcheck should not find reason to rebalance +./test/hcheck -t$T/simu-onegroup.tiered --machine-readable +>>>1 /HCHECK_INIT_CLUSTER_NEED_REBALANCE=0/ +>>>= 0 \ No newline at end of file