Commit c5f77ad8 authored by David S. Miller's avatar David S. Miller

Merge branch 'net-sched-action-tests'

Vlad Buslov says:

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

Add two new tests for action create/change code.
====================
Acked-by: default avatarCong Wang <cong.wang@bytedance.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parents fbe82b3d 652e3124
...@@ -175,5 +175,64 @@ ...@@ -175,5 +175,64 @@
"teardown": [ "teardown": [
"$TC actions flush action simple" "$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"
]
} }
] ]
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment