bash_completion: Enable extglob while parsing file
[ganeti-local] / test / htools-dynutil.test
1 echo a > $T/dynu; ./test/hbal -U $T/dynu $BACKEND_DYNU
2 >>>2 /Cannot parse line/
3 >>>= !0
4
5 echo a b c d e f g h > $T/dynu; ./test/hbal -U $T/dynu $BACKEND_DYNU
6 >>>2 /Cannot parse line/
7 >>>= !0
8
9 echo inst cpu mem dsk net >$T/dynu; ./test/hbal -U $T/dynu $BACKEND_DYNU
10 >>>2 /cannot parse string '(cpu|mem|dsk|net)'/
11 >>>= !0
12
13 # unknown instances are currently just ignored
14 echo no-such-inst 2 2 2 2 > $T/dynu; ./test/hbal -U $T/dynu $BACKEND_DYNU
15 >>>= 0
16
17 # new-0 is the name of the first instance allocated by hspace
18 echo new-0 2 2 2 2 > $T/dynu; ./test/hbal -U $T/dynu $BACKEND_DYNU
19 >>>= 0