Additional tests for action API
Subsystems (4)
cover Additional tests for action API
Add two new tests for action create/change code.
Vlad Buslov (2):
tc-testing: add simple action test to verify batch add cleanup
tc-testing: add simple action test to verify batch change cleanup
.../tc-testing/tc-tests/actions/simple.json | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+)
Signature · 1 line
2.29.2
PATCH 1/2 tc-testing: add simple action test to verify batch add cleanup
Verify cleanup of failed actions batch add where second action in batch fails after successful init of first action.
--- .../tc-testing/tc-tests/actions/simple.json | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+)
tools/testing/selftests/tc-testing/tc-tests/actions/simple.json +30 -0
@@ -175,5 +175,35 @@ "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" + ] } ]
Signature · 1 line
2.29.2
PATCH 2/2 tc-testing: add simple action test to verify batch change cleanup
In reply to Vlad BuslovVerify cleanup of failed actions batch change where second action in batch fails after successful init of first action.
--- .../tc-testing/tc-tests/actions/simple.json | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+)
tools/testing/selftests/tc-testing/tc-tests/actions/simple.json +29 -0
@@ -205,5 +205,34 @@ "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" + ] } ]
Signature · 1 line
2.29.2
Quoted 2 lines · Vlad Buslov
Add two new tests for action create/change code.
Thanks.
This series was applied to netdev/net-next.git (refs/heads/master):
Hello:
This series was applied to netdev/net-next.git (refs/heads/master):
Quoted 8 lines · On Wed, 7 Apr 2021 18:46:41 +0300 you wrote:
Add two new tests for action create/change code.
Vlad Buslov (2):
tc-testing: add simple action test to verify batch add cleanup
tc-testing: add simple action test to verify batch change cleanup.../tc-testing/tc-tests/actions/simple.json | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+)
Here is the summary with links:
- [net-next,1/2] tc-testing: add simple action test to verify batch add cleanup
https://git.kernel.org/netdev/net-next/c/79749ae19de6 - [net-next,2/2] tc-testing: add simple action test to verify batch change cleanup https://git.kernel.org/netdev/net-next/c/652e3124c3ee
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html