diff options
author | Lucas Bates <lucasb@mojatatu.com> | 2017-10-13 17:51:23 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-14 18:47:53 -0700 |
commit | 0923edf456fbd6c75031ad48ad14897a6b912954 (patch) | |
tree | c709611aeb8d63ebc968dbaec37905a9ee75ba9e /tools/testing/selftests/tc-testing/tc-tests/actions/ife.json | |
parent | tc-testing: Add test cases for flushing actions (diff) | |
download | wireguard-linux-0923edf456fbd6c75031ad48ad14897a6b912954.tar.xz wireguard-linux-0923edf456fbd6c75031ad48ad14897a6b912954.zip |
tc-testing: Split test case files into smaller chunks
The original submission had the test cases stored in one
monolithic file. This can be unwieldy to edit, especially as more
test cases are added. This patch removes the original tests.json
file in favour of individual ones broken down by category.
Signed-off-by: Lucas Bates <lucasb@mojatatu.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/tc-testing/tc-tests/actions/ife.json')
-rw-r--r-- | tools/testing/selftests/tc-testing/tc-tests/actions/ife.json | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/tools/testing/selftests/tc-testing/tc-tests/actions/ife.json b/tools/testing/selftests/tc-testing/tc-tests/actions/ife.json new file mode 100644 index 000000000000..9f34f0753969 --- /dev/null +++ b/tools/testing/selftests/tc-testing/tc-tests/actions/ife.json @@ -0,0 +1,52 @@ +[ + { + "id": "a568", + "name": "Add action with ife type", + "category": [ + "actions", + "ife" + ], + "setup": [ + [ + "$TC actions flush action ife", + 0, + 1, + 255 + ], + "$TC actions add action ife encode type 0xDEAD index 1" + ], + "cmdUnderTest": "$TC actions get action ife index 1", + "expExitCode": "0", + "verifyCmd": "$TC actions get action ife index 1", + "matchPattern": "type 0xDEAD", + "matchCount": "1", + "teardown": [ + "$TC actions flush action ife" + ] + }, + { + "id": "b983", + "name": "Add action without ife type", + "category": [ + "actions", + "ife" + ], + "setup": [ + [ + "$TC actions flush action ife", + 0, + 1, + 255 + ], + "$TC actions add action ife encode index 1" + ], + "cmdUnderTest": "$TC actions get action ife index 1", + "expExitCode": "0", + "verifyCmd": "$TC actions get action ife index 1", + "matchPattern": "type 0xED3E", + "matchCount": "1", + "teardown": [ + "$TC actions flush action ife" + ] + } +] |