summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/tc-testing/tc-tests/filters/matchall.json
diff options
context:
space:
mode:
authorPedro Tammela <pctammela@mojatatu.com>2023-11-29 19:24:24 -0300
committerJakub Kicinski <kuba@kernel.org>2023-11-30 23:22:18 -0800
commit0fbb5a54f9416953fa8a3857425a62ea6b1efd5c (patch)
tree5d69d2f71c8551ffde2413ca074a6c5bd65f36bf /tools/testing/selftests/tc-testing/tc-tests/filters/matchall.json
parent7de8b2efafeb770e3f2113d506c31be7f4c9618e (diff)
selftests: tc-testing: remove filters/tests.json
Remove this generic file and move the tests to their appropriate files Signed-off-by: Pedro Tammela <pctammela@mojatatu.com> Acked-by: Jamal Hadi Salim <jhs@mojatatu.com> Link: https://lore.kernel.org/r/20231129222424.910148-5-pctammela@mojatatu.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing/selftests/tc-testing/tc-tests/filters/matchall.json')
-rw-r--r--tools/testing/selftests/tc-testing/tc-tests/filters/matchall.json23
1 files changed, 23 insertions, 0 deletions
diff --git a/tools/testing/selftests/tc-testing/tc-tests/filters/matchall.json b/tools/testing/selftests/tc-testing/tc-tests/filters/matchall.json
index afa1b9b0c856..f8d28c415bc3 100644
--- a/tools/testing/selftests/tc-testing/tc-tests/filters/matchall.json
+++ b/tools/testing/selftests/tc-testing/tc-tests/filters/matchall.json
@@ -480,5 +480,28 @@
"$TC qdisc del dev $DUMMY ingress",
"$TC actions del action police index 199"
]
+ },
+ {
+ "id": "2638",
+ "name": "Add matchall and try to get it",
+ "category": [
+ "filter",
+ "matchall"
+ ],
+ "plugins": {
+ "requires": "nsPlugin"
+ },
+ "setup": [
+ "$TC qdisc add dev $DEV1 clsact",
+ "$TC filter add dev $DEV1 protocol all pref 1 ingress handle 0x1234 matchall action ok"
+ ],
+ "cmdUnderTest": "$TC filter get dev $DEV1 protocol all pref 1 ingress handle 0x1234 matchall",
+ "expExitCode": "0",
+ "verifyCmd": "$TC filter show dev $DEV1 ingress",
+ "matchPattern": "filter protocol all pref 1 matchall chain 0 handle 0x1234",
+ "matchCount": "1",
+ "teardown": [
+ "$TC qdisc del dev $DEV1 clsact"
+ ]
}
]