tests: check how command works with invalid input

Lack of this check resulted to bug that was shipped to users, which was
fixed in commit 805d353.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2013-04-21 14:37:34 +01:00
parent 805d353584
commit 1a7649beb3
5 changed files with 11 additions and 0 deletions

View file

@ -1,6 +1,7 @@
TESTS = \
bootp \
complete \
empty \
full-json \
leading0 \
same-twice \

0
tests/confs/empty Normal file
View file

1
tests/empty Symbolic link
View file

@ -0,0 +1 @@
test.sh

9
tests/expected/empty Normal file
View file

@ -0,0 +1,9 @@
Ranges:
shared net name first ip last ip max cur percent touch t+c t+c perc
Shared networks:
name max cur percent touch t+c t+c perc
Sum of all ranges:
name max cur percent touch t+c t+c perc
All networks 0 0 -nan 0 0 -nan

0
tests/leases/empty Normal file
View file