Revision 04cc7d3f

b/htest/data/empty-cluster.data
1
group-01|fake-uuid-01|preferred|
2

  
3

  
4

  
5

  
6
|128,1,1024,1,1,1|128,1,1024,1,1,1|32768,8,1048576,16,8,12|diskless,file,sharedfile,plain,blockdev,drbd,rbd,ext|4.0|32.0
7
group-01|128,1,1024,1,1,1|128,1,1024,1,1,1|32768,8,1048576,16,8,12|diskless,file,sharedfile,plain,blockdev,drbd,rbd,ext|4.0|32.0
b/htest/shelltests/htools-basic.test
3 3
>>>= 0
4 4
./htest/hail --help
5 5
>>>= 0
6
./htest/hail --help-completion
7
>>>= 0
6 8
./htest/hbal --version
7 9
>>>= 0
8 10
./htest/hbal --help
9 11
>>>= 0
12
./htest/hbal --help-completion
13
>>>= 0
10 14
./htest/hspace --version
11 15
>>>= 0
12 16
./htest/hspace --help
13 17
>>>= 0
18
./htest/hspace --help-completion
19
>>>= 0
14 20
./htest/hscan --version
15 21
>>>= 0
16 22
./htest/hscan --help
17 23
>>>= 0
24
./htest/hscan --help-completion
25
>>>= 0
18 26
./htest/hinfo --version
19 27
>>>= 0
20 28
./htest/hinfo --help
21 29
>>>= 0
30
./htest/hinfo --help-completion
31
>>>= 0
22 32
./htest/hcheck --version
23 33
>>>= 0
24 34
./htest/hcheck --help
25 35
>>>= 0
36
./htest/hcheck --help-completion
37
>>>= 0
26 38
./htest/hroller --version
27 39
>>>= 0
28 40
./htest/hroller --help
29 41
>>>= 0
42
./htest/hroller --help-completion
43
>>>= 0
b/htest/shelltests/htools-invalid.test
22 22
./htest/hcheck --no-such-option
23 23
>>>= 2
24 24

  
25
# invalid option test
26
./htest/hroller --no-such-option
27
>>>= 2
28

  
25 29
# extra arguments
26 30
./htest/hspace unexpected-argument
27 31
>>>2
......
42 46
>>>2
43 47
Error: This program doesn't take any arguments.
44 48
>>>=1
49

  
50
./htest/hroller unexpected-argument
51
>>>2
52
Error: This program doesn't take any arguments.
53
>>>=1
54

  
55
# hroller fails to build a graph for an empty cluster
56
./htest/hroller -t$TESTDATA_DIR/empty-cluster.data
57
>>>2
58
Error: Cannot create node graph
59
>>>=1
b/htest/shelltests/htools-no-backend.test
14 14
./htest/hinfo
15 15
>>>= 1
16 16

  
17
# hroller no backend
18
./htest/hroller
19
>>>= 1
20

  
17 21
# hbal multiple backends
18 22
./htest/hbal -t /dev/null -m localhost
19 23
>>>2
b/htest/shelltests/htools-single-group.test
27 27
./htest/hcheck -t$T/simu-onegroup.tiered --machine-readable
28 28
>>> /HCHECK_INIT_CLUSTER_NEED_REBALANCE=0/
29 29
>>>= 0
30

  
31
# hroller should be able to print the solution
32
./htest/hroller -t$T/simu-onegroup.tiered
33
>>>= 0
34

  
35
# hroller should be able to print the solution, in verbose mode as well
36
./htest/hroller -t$T/simu-onegroup.tiered -v -v
37
>>>= 0

Also available in: Unified diff