Update NEWS file: issue 687 and configure fix
[ganeti-local] / test / hs / shelltests / htools-invalid.test
1 # invalid option test
2 ./test/hs/hail --no-such-option
3 >>>= 2
4
5 # invalid option test
6 ./test/hs/hbal --no-such-option
7 >>>= 2
8
9 # invalid option test
10 ./test/hs/hspace --no-such-option
11 >>>= 2
12
13 # invalid option test
14 ./test/hs/hscan --no-such-option
15 >>>= 2
16
17 # invalid option test
18 ./test/hs/hinfo --no-such-option
19 >>>= 2
20
21 # invalid option test
22 ./test/hs/hcheck --no-such-option
23 >>>= 2
24
25 # invalid option test
26 ./test/hs/hroller --no-such-option
27 >>>= 2
28
29 # extra arguments
30 ./test/hs/hspace unexpected-argument
31 >>>2
32 Error: This program doesn't take any arguments.
33 >>>=1
34
35 ./test/hs/hbal unexpected-argument
36 >>>2
37 Error: This program doesn't take any arguments.
38 >>>=1
39
40 ./test/hs/hinfo unexpected-argument
41 >>>2
42 Error: This program doesn't take any arguments.
43 >>>=1
44
45 ./test/hs/hcheck unexpected-argument
46 >>>2
47 Error: This program doesn't take any arguments.
48 >>>=1
49
50 ./test/hs/hroller unexpected-argument
51 >>>2
52 Error: This program doesn't take any arguments.
53 >>>=1
54
55 # hroller should notice the absence of a master node
56 ./test/hs/hroller -t$TESTDATA_DIR/empty-cluster.data
57 >>>2/Error: No master node found/
58 >>>=1
59
60 # hroller fails to build a graph for an empty cluster
61 ./test/hs/hroller -f -t$TESTDATA_DIR/empty-cluster.data
62 >>>2/Error: Cannot create node graph/
63 >>>=1
64
65 # hroller should reject a configuration with more than one master,
66 # even with -f
67 ./test/hs/hroller -f -t$TESTDATA_DIR/multiple-master.data
68 >>>2/Error: Found more than one master node/
69 >>>=1
70
71 # hbal doesn't accept invalid priority
72 ./test/hs/hbal --priority=abc
73 >>>2/Unknown priority/
74 >>>=1