This series supersedes the previous submission that included a patch for test case verification using JSON output. It adds a new tdc plugin, scapyPlugin, as a way to send traffic to test tc filters and actions.
The first patch makes a change to the TdcPlugin module that will allow tdc plugins to examine the test case currently being executed, so plugins can play a more active role in testing by accepting information or commands from the test case. This is required for scapyPlugin to work. The second patch adds scapyPlugin itself, and an example test case file to demonstrate how the scapy block works in the test cases. Lucas Bates (2): tc-testing: Allow tdc plugins to see test case data tc-testing: introduce scapyPlugin for basic traffic tools/testing/selftests/tc-testing/TdcPlugin.py | 5 +- .../creating-testcases/scapy-example.json | 98 ++++++++++++++++++++++ .../selftests/tc-testing/plugin-lib/scapyPlugin.py | 51 +++++++++++ tools/testing/selftests/tc-testing/tdc.py | 10 +-- 4 files changed, 156 insertions(+), 8 deletions(-) create mode 100644 tools/testing/selftests/tc-testing/creating-testcases/scapy-example.json create mode 100644 tools/testing/selftests/tc-testing/plugin-lib/scapyPlugin.py -- 2.7.4