]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: Introduce tc testsuite
authorLucas Bates <lucasb@mojatatu.com>
Fri, 16 Jun 2017 21:22:35 +0000 (17:22 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Jun 2017 17:15:10 +0000 (13:15 -0400)
commit3258035b39d9aac04caad1972e737a388b06ae61
treebb6cae0c441c5e24d88e4732916d3815f7178383
parent7638f8b6092318a08c5201e4705e914a1be627fe
selftests: Introduce tc testsuite

Add the beginnings of a testsuite for tc functionality in the kernel.
These are a series of unit tests that use the tc executable and verify
the success of those commands by checking both the exit codes and the
output from tc's 'show' operation.

To run the tests:
  # cd tools/testing/selftests/tc-testing
  # sudo ./tdc.py

You can specify the tc executable to use with the -p argument on the command
line or editing the 'TC' variable in tdc_config.py. Refer to the README for
full details on how to run.

The initial complement of test cases are limited mostly to tc actions. Test
cases are most welcome; see the creating-testcases subdirectory for help
in creating them.

Signed-off-by: Lucas Bates <lucasb@mojatatu.com>
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/tc-testing/.gitignore [new file with mode: 0644]
tools/testing/selftests/tc-testing/README [new file with mode: 0644]
tools/testing/selftests/tc-testing/TODO.txt [new file with mode: 0644]
tools/testing/selftests/tc-testing/creating-testcases/AddingTestCases.txt [new file with mode: 0644]
tools/testing/selftests/tc-testing/creating-testcases/template.json [new file with mode: 0644]
tools/testing/selftests/tc-testing/tc-tests/actions/tests.json [new file with mode: 0644]
tools/testing/selftests/tc-testing/tc-tests/filters/tests.json [new file with mode: 0644]
tools/testing/selftests/tc-testing/tdc.py [new file with mode: 0755]
tools/testing/selftests/tc-testing/tdc_config.py [new file with mode: 0644]
tools/testing/selftests/tc-testing/tdc_helper.py [new file with mode: 0644]