Revision 08fa3f09 test/hs/shelltests/htools-mon-collector.test

b/test/hs/shelltests/htools-mon-collector.test
49 49
[]
50 50
Failed reading: versionInfo
51 51
>>>= !0
52

  
53
# Tests for diskstats
54
./test/hs/hpc-mon-collector diskstats --help
55
>>>= 0
56

  
57
./test/hs/hpc-mon-collector diskstats --help-completion
58
>>>= 0
59

  
60
./test/hs/hpc-mon-collector diskstats --version
61
>>>= 0
62

  
63
# Test that the diskstats collector fails parsing a non-diskstats file
64
./test/hs/hpc-mon-collector diskstats -f /dev/zero
65
>>>2/Failed reading/
66
>>>= !0
67

  
68
# Test that a non-existent file is correctly reported
69
./test/hs/hpc-mon-collector diskstats --file=/proc/no-such-file
70
>>>2/Error: reading from file: .* does not exist/
71
>>>= !0
72

  
73
# Test that arguments are rejected
74
./test/hs/hpc-mon-collector diskstats /dev/null
75
>>>2/takes exactly zero arguments/
76
>>>= !0
77

  
78
# Test that a standard test file is parsed correctly
79
./test/hs/hpc-mon-collector diskstats -f $PYTESTDATA_DIR/proc_diskstats.txt
80
>>>=0

Also available in: Unified diff