[PATCH 3/3] tests: py: any: Remove duplicate tests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This commit removes some duplicated tests.

Signed-off-by: Manuel Johannes Messner <manuel.johannes.messner@xxxxxxxxxxxxxxxx>
---
 tests/py/any/meta.t         |  3 ---
 tests/py/any/meta.t.payload | 12 ------------
 2 files changed, 15 deletions(-)

diff --git a/tests/py/any/meta.t b/tests/py/any/meta.t
index 852ef82..a1249e8 100644
--- a/tests/py/any/meta.t
+++ b/tests/py/any/meta.t
@@ -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\*"
 
diff --git a/tests/py/any/meta.t.payload b/tests/py/any/meta.t.payload
index 19cc6ac..5fff76e 100644
--- a/tests/py/any/meta.t.payload
+++ b/tests/py/any/meta.t.payload
@@ -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 ]
-- 
2.9.3

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux