summaryrefslogtreecommitdiffstats
path: root/tests/py/any
diff options
context:
space:
mode:
authorLukas Wunner <lukas@wunner.de>2021-10-24 09:37:35 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2021-10-28 02:01:20 +0200
commit1e30a3a49a5eaf2a1e0e4b2d8f4949db9db565e7 (patch)
tree6018b85290f3d00d026df8970ad9976a001f6bdf /tests/py/any
parentc03d5e2bda285db8358407de3581b4ea933bd3dc (diff)
tests: py: Move netdev-specific tests to appropriate subdirectory
The fwd and dup statements are specific to netdev hooks, so move their tests to the appropriate subdirectory. Signed-off-by: Lukas Wunner <lukas@wunner.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/any')
-rw-r--r--tests/py/any/dup.t7
-rw-r--r--tests/py/any/dup.t.json30
-rw-r--r--tests/py/any/dup.t.payload14
-rw-r--r--tests/py/any/fwd.t8
-rw-r--r--tests/py/any/fwd.t.json47
-rw-r--r--tests/py/any/fwd.t.json.output27
-rw-r--r--tests/py/any/fwd.t.payload20
7 files changed, 0 insertions, 153 deletions
diff --git a/tests/py/any/dup.t b/tests/py/any/dup.t
deleted file mode 100644
index 181b4195..00000000
--- a/tests/py/any/dup.t
+++ /dev/null
@@ -1,7 +0,0 @@
-:ingress;type filter hook ingress device lo priority 0
-
-*netdev;test-netdev;ingress
-
-dup to "lo";ok
-dup to meta mark map { 0x00000001 : "lo", 0x00000002 : "lo"};ok
-
diff --git a/tests/py/any/dup.t.json b/tests/py/any/dup.t.json
deleted file mode 100644
index dc56f649..00000000
--- a/tests/py/any/dup.t.json
+++ /dev/null
@@ -1,30 +0,0 @@
-# dup to "lo"
-[
- {
- "dup": {
- "addr": "lo"
- }
- }
-]
-
-# dup to meta mark map { 0x00000001 : "lo", 0x00000002 : "lo"}
-[
- {
- "dup": {
- "addr": {
- "map": {
- "key": {
- "meta": { "key": "mark" }
- },
- "data": {
- "set": [
- [ 1, "lo" ],
- [ 2, "lo" ]
- ]
- }
- }
- }
- }
- }
-]
-
diff --git a/tests/py/any/dup.t.payload b/tests/py/any/dup.t.payload
deleted file mode 100644
index 51ff782c..00000000
--- a/tests/py/any/dup.t.payload
+++ /dev/null
@@ -1,14 +0,0 @@
-# dup to "lo"
-netdev test-netdev ingress
- [ immediate reg 1 0x00000001 ]
- [ dup sreg_dev 1 ]
-
-# dup to meta mark map { 0x00000001 : "lo", 0x00000002 : "lo"}
-__map%d test-netdev b
-__map%d test-netdev 0
- element 00000001 : 00000001 0 [end] element 00000002 : 00000001 0 [end]
-netdev test-netdev ingress
- [ meta load mark => reg 1 ]
- [ lookup reg 1 set __map%d dreg 1 ]
- [ dup sreg_dev 1 ]
-
diff --git a/tests/py/any/fwd.t b/tests/py/any/fwd.t
deleted file mode 100644
index 2e34d55a..00000000
--- a/tests/py/any/fwd.t
+++ /dev/null
@@ -1,8 +0,0 @@
-:ingress;type filter hook ingress device lo priority 0
-
-*netdev;test-netdev;ingress
-
-fwd to "lo";ok
-fwd to meta mark map { 0x00000001 : "lo", 0x00000002 : "lo"};ok
-
-fwd ip to 192.168.2.200 device "lo";ok
diff --git a/tests/py/any/fwd.t.json b/tests/py/any/fwd.t.json
deleted file mode 100644
index 583606c0..00000000
--- a/tests/py/any/fwd.t.json
+++ /dev/null
@@ -1,47 +0,0 @@
-# fwd to "lo"
-[
- {
- "fwd": {
- "dev": "lo"
- }
- }
-]
-
-# fwd to meta mark map { 0x00000001 : "lo", 0x00000002 : "lo"}
-[
- {
- "fwd": {
- "dev": {
- "map": {
- "key": {
- "meta": { "key": "mark" }
- },
- "data": {
- "set": [
- [
- "0x00000001",
- "lo"
- ],
- [
- "0x00000002",
- "lo"
- ]
- ]
- }
- }
- }
- }
- }
-]
-
-# fwd ip to 192.168.2.200 device "lo"
-[
- {
- "fwd": {
- "addr": "192.168.2.200",
- "dev": "lo",
- "family": "ip"
- }
- }
-]
-
diff --git a/tests/py/any/fwd.t.json.output b/tests/py/any/fwd.t.json.output
deleted file mode 100644
index 8433e492..00000000
--- a/tests/py/any/fwd.t.json.output
+++ /dev/null
@@ -1,27 +0,0 @@
-# fwd to meta mark map { 0x00000001 : "lo", 0x00000002 : "lo"}
-[
- {
- "fwd": {
- "dev": {
- "map": {
- "key": {
- "meta": { "key": "mark" }
- },
- "data": {
- "set": [
- [
- 1,
- "lo"
- ],
- [
- 2,
- "lo"
- ]
- ]
- }
- }
- }
- }
- }
-]
-
diff --git a/tests/py/any/fwd.t.payload b/tests/py/any/fwd.t.payload
deleted file mode 100644
index f03077a6..00000000
--- a/tests/py/any/fwd.t.payload
+++ /dev/null
@@ -1,20 +0,0 @@
-# fwd to "lo"
-netdev test-netdev ingress
- [ immediate reg 1 0x00000001 ]
- [ fwd sreg_dev 1 ]
-
-# fwd to meta mark map { 0x00000001 : "lo", 0x00000002 : "lo"}
-__map%d test-netdev b
-__map%d test-netdev 0
- element 00000001 : 00000001 0 [end] element 00000002 : 00000001 0 [end]
-netdev test-netdev ingress
- [ meta load mark => reg 1 ]
- [ lookup reg 1 set __map%d dreg 1 ]
- [ fwd sreg_dev 1 ]
-
-# fwd ip to 192.168.2.200 device "lo"
-netdev test-netdev ingress
- [ immediate reg 1 0x00000001 ]
- [ immediate reg 2 0xc802a8c0 ]
- [ fwd sreg_dev 1 sreg_addr 2 nfproto 2 ]
-