htools: add two more small unittests
[ganeti-local] / htools / live-test.sh
index c059bbd..c47766f 100755 (executable)
@@ -75,6 +75,8 @@ echo Testing hbal/text with evacuation mode
 ./hbal -t$T/$RAPI.data $GROUP -E
 echo Testing hbal/text with no disk moves
 ./hbal -t$T/$RAPI.data $GROUP --no-disk-moves
+echo Testing hbal/text with no instance moves
+./hbal -t$T/$RAPI.data $GROUP --no-instance-moves
 echo Testing hbal/text with offline node mode
 ./hbal -t$T/$RAPI.data $GROUP -O$FN
 echo Testing hbal/text with utilization data
@@ -83,9 +85,11 @@ echo "$FI 2 2 2 2" > $T/util.data
 echo Testing hbal/text with bad utilization data
 echo "$FI 2 a 3b" > $T/util.data
 ! ./hbal -t$T/$RAPI.data $GROUP -U $T/util.data
-echo Testing hbal/text with instance exclusion
+echo Testing hbal/text with instance exclusion/selection
 ./hbal -t$T/$RAPI.data $GROUP --exclude-instances=$FI
+./hbal -t$T/$RAPI.data $GROUP --select-instances=$FI
 ! ./hbal -t$T/$RAPI.data --exclude-instances=no_such_instance
+! ./hbal -t$T/$RAPI.data --select-instances=no_such_instance
 echo Testing hbal/text with tag exclusion
 ./hbal -t $T/$RAPI.data $GROUP --exclusion-tags=no_such_tag
 echo Testing hbal multiple backend failure