]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: shell: Extend get element test
authorPhil Sutter <phil@nwl.cc>
Mon, 22 Oct 2018 13:45:09 +0000 (15:45 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 22 Oct 2018 19:45:32 +0000 (21:45 +0200)
Despite the recent fixes, the test still fails. While trying to address
the remaining issues, I found more potentially problematic inputs so
extend the test by those.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/shell/testcases/sets/0034get_element_0

index 2bfb527b8080fb6cc9536955812d5bb1400c0560..c7e7298a4aac18da26b78b97af85d13993165aa8 100755 (executable)
@@ -27,10 +27,17 @@ check 15-18 ""
 
 # multiple single elements, ranges smaller than present
 check "10, 40" "10, 40"
+check "22-24, 26-28" "20-30, 20-30"
 check 21-29 20-30
 
+# mixed single elements and ranges
+check "10, 20" "10, 20-30"
+check "10, 22" "10, 20-30"
+check "10, 22-24" "10, 20-30"
+
 # non-existing ranges matching elements
 check 10-40 ""
+check 10-20 ""
 check 10-25 ""
 check 25-55 ""