aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/tc-testing/plugins
diff options
context:
space:
mode:
authorBrenda J. Butler <bjb@mojatatu.com>2018-02-14 14:09:21 -0500
committerDavid S. Miller <davem@davemloft.net>2018-02-15 15:38:33 -0500
commit93707cbabcc8baf2b2b5f4a99c1f08ee83eb7abd (patch)
tree256d0b3309004cfdbadef6b089ac42c1fab752f9 /tools/testing/selftests/tc-testing/plugins
parenttools: tc-testing: Refactor test-runner (diff)
downloadlinux-dev-93707cbabcc8baf2b2b5f4a99c1f08ee83eb7abd.tar.xz
linux-dev-93707cbabcc8baf2b2b5f4a99c1f08ee83eb7abd.zip
tools: tc-testing: Introduce plugin architecture
This should be a general test architecture, and yet allow specific tests to be done. Introduce a plugin architecture. An individual test has 4 stages, setup/execute/verify/teardown. Each plugin gets a chance to run a function at each stage, plus one call before all the tests are called ("pre" suite) and one after all the tests are called ("post" suite). In addition, just before each command is executed, the plugin gets a chance to modify the command using the "adjust_command" hook. This makes the test suite quite flexible. Future patches will take some functionality out of the tdc.py script and place it in plugins. To use the plugins, place the implementation in the plugins directory and run tdc.py. It will notice the plugins and use them. Signed-off-by: Brenda J. Butler <bjb@mojatatu.com> Acked-by: Lucas Bates <lucasb@mojatatu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/tc-testing/plugins')
-rw-r--r--tools/testing/selftests/tc-testing/plugins/__init__.py0
1 files changed, 0 insertions, 0 deletions
diff --git a/tools/testing/selftests/tc-testing/plugins/__init__.py b/tools/testing/selftests/tc-testing/plugins/__init__.py
new file mode 100644
index 000000000000..e69de29bb2d1
--- /dev/null
+++ b/tools/testing/selftests/tc-testing/plugins/__init__.py