htools live test: test instance selection as well
authorGuido Trotter <ultrotter@google.com>
Fri, 10 Jun 2011 13:24:49 +0000 (14:24 +0100)
committerGuido Trotter <ultrotter@google.com>
Fri, 17 Jun 2011 08:41:56 +0000 (11:41 +0300)
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>

htools/live-test.sh

index 510bb17..c47766f 100755 (executable)
@@ -85,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