From 3deffe8040840ba215e744e0699a8ab3653aac66 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Wed, 27 Apr 2016 14:46:52 +0200 Subject: tests/py: add interval tests Add some initial tests to cover dynamic interval sets. Signed-off-by: Pablo Neira Ayuso --- tests/py/ip6/sets.t | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests/py/ip6/sets.t') diff --git a/tests/py/ip6/sets.t b/tests/py/ip6/sets.t index 765b971b..ff38925e 100644 --- a/tests/py/ip6/sets.t +++ b/tests/py/ip6/sets.t @@ -23,3 +23,14 @@ ip6 saddr @set2 drop;ok ip6 saddr @set33 drop;fail + +!set3 type ipv6_addr flags interval;ok +?set3 1234:1234:1234:1234::/64;ok +?set3 1324:1234:1234:1235::/64;ok +?set3 1324:1234:1234:1233::/64;ok +?set3 1234:1234:1234:1234:1234:1234:/96;fail +?set3 1324:1234:1234:1236::/64;ok + +!set4 type ipv6_addr flags interval;ok +?set4 1234:1234:1234:1234::/64 4321:1234:1234:1234::/64;ok +?set4 4321:1234:1234:1234:1234:1234::/96;fail -- cgit v1.2.3