]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: py: any: Remove duplicate tests
authorManuel Johannes Messner <manuel.johannes.messner@hs-furtwangen.de>
Mon, 5 Sep 2016 18:20:14 +0000 (20:20 +0200)
committerFlorian Westphal <fw@strlen.de>
Tue, 6 Sep 2016 11:10:31 +0000 (13:10 +0200)
This commit removes some duplicated tests.

Signed-off-by: Manuel Johannes Messner <manuel.johannes.messner@hs-furtwangen.de>
Signed-off-by: Florian Westphal <fw@strlen.de>
tests/py/any/meta.t
tests/py/any/meta.t.payload

index 852ef824525d83e8c192e2a7cf6c35885beb7d35..a1249e8b23e8274f447257c85a60332fe01d7d4b 100644 (file)
@@ -66,8 +66,6 @@ meta mark xor 0x03 == 0x01;ok;mark 0x00000002
 meta mark xor 0x03 != 0x01;ok;mark != 0x00000002
 
 meta iif "lo" accept;ok;iif "lo" accept
-meta iif "lo" accept;ok;iif "lo" accept
-meta iif != "lo" accept;ok;iif != "lo" accept
 meta iif != "lo" accept;ok;iif != "lo" accept
 
 meta iifname "dummy0";ok;iifname "dummy0"
@@ -92,7 +90,6 @@ meta oif {"lo"} accept;ok
 meta oifname "dummy0";ok;oifname "dummy0"
 meta oifname != "dummy0";ok;oifname != "dummy0"
 meta oifname { "dummy0", "lo"};ok
-- meta iifname != {"dummy0", "lo"};ok
 meta oifname "dummy*";ok;oifname "dummy*"
 meta oifname "dummy\*";ok;oifname "dummy\*"
 
index 19cc6ac585c8dc23afe6c057dc8df6a4f069c780..5fff76e21e25d477bfa5ee444c688268323e1cbd 100644 (file)
@@ -199,18 +199,6 @@ ip test-ip4 input
   [ cmp eq reg 1 0x00000001 ]
   [ immediate reg 0 accept ]
 
-# meta iif "lo" accept
-ip test-ip4 input
-  [ meta load iif => reg 1 ]
-  [ cmp eq reg 1 0x00000001 ]
-  [ immediate reg 0 accept ]
-
-# meta iif != "lo" accept
-ip test-ip4 input
-  [ meta load iif => reg 1 ]
-  [ cmp neq reg 1 0x00000001 ]
-  [ immediate reg 0 accept ]
-
 # meta iif != "lo" accept
 ip test-ip4 input
   [ meta load iif => reg 1 ]