Skip to contentSkip to conversation

tests/py: Move tcpopt.t to any/ directory

PATCH In review Phil Sutter 2 participants 2 messages Mar 10, 2020 netfilter

lore
Share & tools
lore

Phil Sutter

author reviewer
#0 lore raw

PATCH 1/1 tests/py: Move tcpopt.t to any/ directory

Merge tcpopt.t files in ip, ip6 and inet into a common one, they were just marignally different.

---
 tests/py/{inet => any}/tcpopt.t             |   3 +
 tests/py/{inet => any}/tcpopt.t.json        |  70 ++-
 tests/py/{inet => any}/tcpopt.t.json.output |   0
 tests/py/any/tcpopt.t.payload               | 603 ++++++++++++++++++++
 tests/py/inet/tcpopt.t.payload              | 200 -------
 tests/py/ip/tcpopt.t                        |  38 --
 tests/py/ip/tcpopt.t.json                   | 416 --------------
 tests/py/ip/tcpopt.t.json.output            |  16 -
 tests/py/ip/tcpopt.t.payload                | 181 ------
 tests/py/ip6/tcpopt.t                       |  37 --
 tests/py/ip6/tcpopt.t.json                  | 416 --------------
 tests/py/ip6/tcpopt.t.json.output           |  16 -
 tests/py/ip6/tcpopt.t.payload               | 181 ------
 13 files changed, 649 insertions(+), 1528 deletions(-)
 rename tests/py/{inet => any}/tcpopt.t (94%)
 rename tests/py/{inet => any}/tcpopt.t.json (88%)
 rename tests/py/{inet => any}/tcpopt.t.json.output (100%)
 create mode 100644 tests/py/any/tcpopt.t.payload
 delete mode 100644 tests/py/inet/tcpopt.t.payload
 delete mode 100644 tests/py/ip/tcpopt.t
 delete mode 100644 tests/py/ip/tcpopt.t.json
 delete mode 100644 tests/py/ip/tcpopt.t.json.output
 delete mode 100644 tests/py/ip/tcpopt.t.payload
 delete mode 100644 tests/py/ip6/tcpopt.t
 delete mode 100644 tests/py/ip6/tcpopt.t.json
 delete mode 100644 tests/py/ip6/tcpopt.t.json.output
 delete mode 100644 tests/py/ip6/tcpopt.t.payload
tests/py/any/tcpopt.t renamed from tests/py/inet/tcpopt.t +3 -0
similarity index 94%
rename from tests/py/inet/tcpopt.t
rename to tests/py/any/tcpopt.t
index b457691f7f27a..08b1dcb3c4899 100644
@@ -1,5 +1,7 @@
 :input;type filter hook input priority 0
 
+*ip;test-ip4;input
+*ip6;test-ip6;input
 *inet;test-inet;input
 
 tcp option eol kind 1;ok
@@ -19,6 +21,7 @@ tcp option sack0 left 1;ok;tcp option sack left 1
 tcp option sack1 left 1;ok
 tcp option sack2 left 1;ok
 tcp option sack3 left 1;ok
+tcp option sack right 1;ok
 tcp option sack0 right 1;ok;tcp option sack right 1
 tcp option sack1 right 1;ok
 tcp option sack2 right 1;ok
tests/py/any/tcpopt.t.json renamed from tests/py/inet/tcpopt.t.json +43 -27

232 lines not on this page · raw message

tests/py/any/tcpopt.t.json.output renamed from tests/py/inet/tcpopt.t.json.output +0 -0
similarity index 100%
rename from tests/py/inet/tcpopt.t.json.output
rename to tests/py/any/tcpopt.t.json.output
tests/py/any/tcpopt.t.payload new file +603 -0

603 lines not on this page · raw message

tests/py/inet/tcpopt.t.payload deleted +0 -200

200 lines not on this page · raw message

tests/py/ip/tcpopt.t deleted +0 -38
deleted file mode 100644
index 7ee50a89d9c5f..0000000000000
@@ -1,38 +0,0 @@
-:input;type filter hook input priority 0
-
-*ip;test-ip;input
-
-tcp option eol kind 1;ok
-tcp option noop kind 1;ok
-tcp option maxseg kind 1;ok
-tcp option maxseg length 1;ok
-tcp option maxseg size 1;ok
-tcp option window kind 1;ok
-tcp option window length 1;ok
-tcp option window count 1;ok
-tcp option sack-permitted kind 1;ok
-tcp option sack-permitted length 1;ok
-tcp option sack kind 1;ok
-tcp option sack length 1;ok
-tcp option sack left 1;ok
-tcp option sack0 left 1;ok;tcp option sack left 1
-tcp option sack1 left 1;ok
-tcp option sack2 left 1;ok
-tcp option sack3 left 1;ok
-tcp option sack right 1;ok
-tcp option sack0 right 1;ok;tcp option sack right 1
-tcp option sack1 right 1;ok
-tcp option sack2 right 1;ok
-tcp option sack3 right 1;ok
-tcp option timestamp kind 1;ok
-tcp option timestamp length 1;ok
-tcp option timestamp tsval 1;ok
-tcp option timestamp tsecr 1;ok
-
-tcp option foobar;fail
-tcp option foo bar;fail
-tcp option eol left;fail
-tcp option eol left 1;fail
-tcp option eol left 1;fail
-tcp option sack window;fail
-tcp option sack window 1;fail
tests/py/ip/tcpopt.t.json deleted +0 -416

416 lines not on this page · raw message

tests/py/ip/tcpopt.t.json.output deleted +0 -16
deleted file mode 100644
index 81dd8ad80da84..0000000000000
@@ -1,16 +0,0 @@
-# tcp option sack0 right 1
-[
-    {
-        "match": {
-            "left": {
-                "tcp option": {
-                    "field": "right",
-                    "name": "sack"
-                }
-            },
-	    "op": "==",
-            "right": 1
-        }
-    }
-]
-
tests/py/ip/tcpopt.t.payload deleted +0 -181

181 lines not on this page · raw message

tests/py/ip6/tcpopt.t deleted +0 -37
deleted file mode 100644
index 497f69fc86785..0000000000000
@@ -1,37 +0,0 @@
-:input;type filter hook input priority 0
-*ip6;test-ip6;input
-
-tcp option eol kind 1;ok
-tcp option noop kind 1;ok
-tcp option maxseg kind 1;ok
-tcp option maxseg length 1;ok
-tcp option maxseg size 1;ok
-tcp option window kind 1;ok
-tcp option window length 1;ok
-tcp option window count 1;ok
-tcp option sack-permitted kind 1;ok
-tcp option sack-permitted length 1;ok
-tcp option sack kind 1;ok
-tcp option sack length 1;ok
-tcp option sack left 1;ok
-tcp option sack0 left 1;ok;tcp option sack left 1
-tcp option sack1 left 1;ok
-tcp option sack2 left 1;ok
-tcp option sack3 left 1;ok
-tcp option sack right 1;ok
-tcp option sack0 right 1;ok;tcp option sack right 1
-tcp option sack1 right 1;ok
-tcp option sack2 right 1;ok
-tcp option sack3 right 1;ok
-tcp option timestamp kind 1;ok
-tcp option timestamp length 1;ok
-tcp option timestamp tsval 1;ok
-tcp option timestamp tsecr 1;ok
-
-tcp option foobar;fail
-tcp option foo bar;fail
-tcp option eol left;fail
-tcp option eol left 1;fail
-tcp option eol left 1;fail
-tcp option sack window;fail
-tcp option sack window 1;fail
tests/py/ip6/tcpopt.t.json deleted +0 -416

416 lines not on this page · raw message

tests/py/ip6/tcpopt.t.json.output deleted +0 -16
deleted file mode 100644
index 81dd8ad80da84..0000000000000
@@ -1,16 +0,0 @@
-# tcp option sack0 right 1
-[
-    {
-        "match": {
-            "left": {
-                "tcp option": {
-                    "field": "right",
-                    "name": "sack"
-                }
-            },
-	    "op": "==",
-            "right": 1
-        }
-    }
-]
-
tests/py/ip6/tcpopt.t.payload deleted +0 -181

181 lines not on this page · raw message

Signature · 1 line
2.25.1
maintainer
#1 lore raw
Quoted 2 lines · Phil Sutter

Merge tcpopt.t files in ip, ip6 and inet into a common one, they were just marignally different.

Thanks, please push this out.