Skip to content

Commit

Permalink
Merge branch 'net-sched-action-tests'
Browse files Browse the repository at this point in the history
Vlad Buslov says:

====================
Additional tests for action API

Add two new tests for action create/change code.
====================

Acked-by: Cong Wang <cong.wang@bytedance.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Apr 8, 2021
2 parents fbe82b3 + 652e312 commit c5f77ad
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions tools/testing/selftests/tc-testing/tc-tests/actions/simple.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,5 +175,64 @@
"teardown": [
"$TC actions flush action simple"
]
},
{
"id": "8d07",
"name": "Verify cleanup of failed actions batch add",
"category": [
"actions",
"simple"
],
"setup": [
[
"$TC actions flush action simple",
0,
1,
255
],
"$TC actions add action simple sdata \"2\" index 2",
[
"$TC actions add action simple sdata \"1\" index 1 action simple sdata \"2\" index 2",
255
],
"$TC actions flush action simple"
],
"cmdUnderTest": "$TC actions add action simple sdata \"2\" index 2",
"expExitCode": "0",
"verifyCmd": "$TC actions list action simple",
"matchPattern": "action order [0-9]*: Simple <2>.*index 2 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action simple"
]
},
{
"id": "a68a",
"name": "Verify cleanup of failed actions batch change",
"category": [
"actions",
"simple"
],
"setup": [
[
"$TC actions flush action simple",
0,
1,
255
],
[
"$TC actions change action simple sdata \"1\" index 1 action simple sdata \"2\" goto chain 42 index 2",
255
],
"$TC actions flush action simple"
],
"cmdUnderTest": "$TC actions add action simple sdata \"1\" index 1",
"expExitCode": "0",
"verifyCmd": "$TC actions list action simple",
"matchPattern": "action order [0-9]*: Simple <1>.*index 1 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action simple"
]
}
]

0 comments on commit c5f77ad

Please sign in to comment.