tests: add range definition flip test

This test ensure 10b06d88f0 will not get
regression in future.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2016-02-18 23:03:15 +00:00
parent 10b06d88f0
commit c305e2f82c
No known key found for this signature in database
GPG key ID: A9553245FDE9B739
5 changed files with 18 additions and 0 deletions

View file

@ -10,6 +10,7 @@ TESTS = \
tests/alarm-warning-ranges \
tests/alarm-warning-snets \
tests/shnet-alarm \
tests/big-small \
tests/bootp \
tests/complete \
tests/empty \

1
tests/big-small Symbolic link
View file

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

5
tests/confs/big-small Normal file
View file

@ -0,0 +1,5 @@
subnet 10.0.0.0 netmask 255.255.255.0 {
pool {
range 10.0.0.10 10.0.0.1;
}
}

10
tests/expected/big-small Normal file
View file

@ -0,0 +1,10 @@
Ranges:
shared net name first ip last ip max cur percent touch t+c t+c perc
All networks 10.0.0.1 - 10.0.0.10 10 10 100.000 0 10 100.000
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 10 10 100.000 0 10 100.000

1
tests/leases/big-small Symbolic link
View file

@ -0,0 +1 @@
simple