Skip to content

Commit

Permalink
tc-testing: updated mirred and vlan with more tests
Browse files Browse the repository at this point in the history
Added extra test cases for different control actions (reclassify, pipe
etc.), cookies, max values & exceeding maximum, and replace existing
actions unit tests.

Signed-off-by: Roman Mashak <mrv@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Roman Mashak authored and David S. Miller committed May 16, 2018
1 parent 2f42a12 commit 55df3e9
Show file tree
Hide file tree
Showing 2 changed files with 324 additions and 20 deletions.
24 changes: 23 additions & 1 deletion tools/testing/selftests/tc-testing/tc-tests/actions/mirred.json
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@
},
{
"id": "8b69",
"name": "Add mirred mirror action with maximum index",
"name": "Add mirred mirror action with index at 32-bit maximum",
"category": [
"actions",
"mirred"
Expand All @@ -362,6 +362,28 @@
"$TC actions flush action mirred"
]
},
{
"id": "3f66",
"name": "Add mirred mirror action with index exceeding 32-bit maximum",
"category": [
"actions",
"mirred"
],
"setup": [
[
"$TC actions flush action mirred",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action mirred ingress mirror dev lo pipe index 429496729555",
"expExitCode": "255",
"verifyCmd": "$TC actions get action mirred index 429496729555",
"matchPattern": "action order [0-9]*: mirred \\(Ingress Mirror to device lo\\) pipe.*index 429496729555",
"matchCount": "0",
"teardown": []
},
{
"id": "a70e",
"name": "Delete mirred mirror action",
Expand Down
Loading

0 comments on commit 55df3e9

Please sign in to comment.