This patchset introduces JSON as a verification method in tdc and adds a new plugin, scapyPlugin, as a way to send traffic to test tc filters and actions.
The first patch adds the JSON verification to the core tdc script. The second patch makes a change to the TdcPlugin module that will allow tdc plugins to examine the test case currently being executed, such that plugins can play a more active role in testing. This feature is needed for the new plugin. The third patch adds the scapyPlugin itself, and an example test case file to demonstrate how the scapy block works. Lucas Bates (3): tc-testing: Add JSON verification to tdc 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 | 146 ++++++++++++++++++--- 4 files changed, 279 insertions(+), 21 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