mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-16 15:57:00 +00:00
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:
parent
10b06d88f0
commit
c305e2f82c
5 changed files with 18 additions and 0 deletions
|
|
@ -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
1
tests/big-small
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
test.sh
|
||||
5
tests/confs/big-small
Normal file
5
tests/confs/big-small
Normal 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
10
tests/expected/big-small
Normal 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
1
tests/leases/big-small
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
simple
|
||||
Loading…
Add table
Add a link
Reference in a new issue