1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/tools/testing/selftests/tc-testing/creating-testcases
Davide Caratti 7f3f864026 selftests: tc-testing: add "depends_on" property to skip tests
currently, users can skip individual test cases by means of writing

  "skip": "yes"

in the scenario file. Extend this functionality, introducing 'dependsOn':
it's optional property like "skip", but the value contains a command (for
example, a probe on iproute2 to check if it supports a specific feature).
If such property is present, tdc executes that command and skips the test
when the return value is non-zero.

Reviewed-by: Pedro Tammela <pctammela@mojatatu.com>
Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-03-30 23:24:24 -07:00
..
AddingTestCases.txt selftests: tc-testing: add "depends_on" property to skip tests 2023-03-30 23:24:24 -07:00
example.json tc-testing: very simple example test cases 2017-11-01 11:04:46 +09:00
scapy-example.json tc-testing: introduce scapyPlugin for basic traffic 2019-07-09 14:07:20 -07:00
template.json tc-testing: very simple example test cases 2017-11-01 11:04:46 +09:00