summaryrefslogtreecommitdiff
path: root/tests/integration_tests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration_tests.sh')
-rwxr-xr-xtests/integration_tests.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/integration_tests.sh b/tests/integration_tests.sh
index 8264960..3a1e4ea 100755
--- a/tests/integration_tests.sh
+++ b/tests/integration_tests.sh
@@ -284,6 +284,9 @@ do
assert_raises "$IPADDRCHECK --is-ipv4-range $range" 1
done
+assert_raises "$IPADDRCHECK --range-prefix-length 24 --is-ipv4-range 10.0.0.1-10.0.0.10" 0
+assert_raises "$IPADDRCHECK --range-prefix-length 29 --is-ipv4-range 10.0.0.1-10.0.0.10" 1
+
# --is-ipv6-range
for range in \
${ipv6_range_positive[*]}
@@ -297,4 +300,7 @@ do
assert_raises "$IPADDRCHECK --is-ipv6-range $range" 1
done
+assert_raises "$IPADDRCHECK --range-prefix-length 64 --is-ipv6-range 2001:db8::1-2001:db8::100" 0
+assert_raises "$IPADDRCHECK --range-prefix-length 64 --is-ipv6-range 2001:db8:aaaa::1-2001:db8:bbbb::1" 1
+
assert_end ipaddrcheck_integration