mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-16 15:57:00 +00:00
tests: add v6 check
The counting of total maximum address space seems to be broken at the moment, and the check is expected to fail until a counting fix is available. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
1424db9427
commit
a2fa69a403
5 changed files with 101 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ EXTRA_DIST = \
|
|||
simple \
|
||||
test.sh
|
||||
|
||||
TESTS = simple bootp leading0
|
||||
TESTS = simple bootp leading0 v6
|
||||
check_SCRIPTS = test.sh
|
||||
|
||||
check-local: $(SHELL) $(top_srcdir)/tests/test.sh
|
||||
|
|
|
|||
10
tests/confs/v6
Normal file
10
tests/confs/v6
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
subnet6 dead:abba:1000::/56 {
|
||||
range6 dead:abba:1000::2 dead:abba:1000:00ff:ffff:ffff:ffff:ffff;
|
||||
prefix6 dead:abba:1000:0100:: dead:abba:1000:ff00::/56;
|
||||
}
|
||||
|
||||
subnet6 dead:abba:40ff::/56 {
|
||||
range6 dead:abba:4000::2 dead:abba:4000::00ff;
|
||||
prefix6 dead:abba:4000:0100:: dead:abba:4000:ff00::/56;
|
||||
}
|
||||
|
||||
11
tests/expected/v6
Normal file
11
tests/expected/v6
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
Ranges:
|
||||
shared net name first ip last ip max cur percent touch t+c t+c perc
|
||||
All networks dead:abba:1000::2 - dead:abba:1000:ff:ffff:ffff:ffff:ffff 18446744073709551614 2 0.000 0 2 0.000
|
||||
All networks dead:abba:4000::2 - dead:abba:4000::ff 254 1 0.394 0 1 0.394
|
||||
|
||||
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 18446744073709551868 3 1.190 0 3 1.190 # FIXME: this line is mocked up
|
||||
78
tests/leases/v6
Normal file
78
tests/leases/v6
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
ia-na "sample" {
|
||||
iaaddr dead:abba:1000:b4:a4e4:7b7a:140a:9ab1 {
|
||||
binding state active;
|
||||
}
|
||||
}
|
||||
|
||||
ia-na "sample" {
|
||||
iaaddr dead:abba:1000:c0:812a:6e4c:cc3:782d {
|
||||
binding state active;
|
||||
}
|
||||
}
|
||||
|
||||
ia-na "sample" {
|
||||
iaaddr dead:abba:1000:ce:3507:ad74:2645:d041 {
|
||||
binding state expired;
|
||||
}
|
||||
}
|
||||
|
||||
ia-na "sample" {
|
||||
iaaddr dead:abba:4000::68 {
|
||||
binding state expired;
|
||||
}
|
||||
}
|
||||
|
||||
ia-pd "sample" {
|
||||
iaprefix dead:abba:1000:fe00::/56 {
|
||||
binding state active;
|
||||
}
|
||||
}
|
||||
|
||||
ia-pd "sample" {
|
||||
iaprefix dead:abba:4000:ff00::/56 {
|
||||
binding state expired;
|
||||
}
|
||||
}
|
||||
|
||||
ia-pd "sample" {
|
||||
iaprefix dead:abba:4000:fe00::/56 {
|
||||
binding state expired;
|
||||
}
|
||||
}
|
||||
|
||||
ia-pd "sample" {
|
||||
iaprefix dead:abba:4000:ff00::/56 {
|
||||
binding state expired;
|
||||
}
|
||||
}
|
||||
|
||||
ia-pd "sample" {
|
||||
iaprefix dead:abba:1000:ff00::/56 {
|
||||
binding state expired;
|
||||
}
|
||||
}
|
||||
|
||||
ia-pd "sample" {
|
||||
iaprefix dead:abba:4000:ff00::/56 {
|
||||
binding state expired;
|
||||
}
|
||||
}
|
||||
|
||||
ia-pd "sample" {
|
||||
iaprefix dead:abba:4000:fe00::/56 {
|
||||
binding state expired;
|
||||
}
|
||||
}
|
||||
|
||||
ia-pd "sample" {
|
||||
iaprefix dead:abba:1000:fe00::/56 {
|
||||
binding state active;
|
||||
}
|
||||
}
|
||||
|
||||
ia-na "sample" {
|
||||
iaaddr dead:abba:1000:b4:a4e4:7b7a:140a:9ab1 {
|
||||
binding state active;
|
||||
}
|
||||
}
|
||||
|
||||
1
tests/v6
Symbolic link
1
tests/v6
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
test.sh
|
||||
Loading…
Add table
Add a link
Reference in a new issue