path: root/tests
diff options
authorPablo Neira Ayuso <>2016-04-27 14:46:52 +0200
committerPablo Neira Ayuso <>2016-04-27 15:04:30 +0200
commit3deffe8040840ba215e744e0699a8ab3653aac66 (patch)
tree368f084d446ee0866c29844f25ff5482b6b4e097 /tests
parent98ce06f8b546eacb654bb8738eac4383f43fabbf (diff)
tests/py: add interval tests
Add some initial tests to cover dynamic interval sets. Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'tests')
2 files changed, 23 insertions, 0 deletions
diff --git a/tests/py/ip/sets.t b/tests/py/ip/sets.t
index 2b4e7e1b..0e2b1935 100644
--- a/tests/py/ip/sets.t
+++ b/tests/py/ip/sets.t
@@ -31,3 +31,15 @@
ip saddr @set1 drop;ok
ip saddr @set2 drop;ok
ip saddr @set33 drop;fail
+!set3 type ipv4_addr flags interval;ok
+!set4 type ipv4_addr flags interval;ok
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