diff options
author | Lucas Bates <lucasb@mojatatu.com> | 2019-06-24 21:00:27 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-25 12:57:29 -0700 |
commit | 489ce2f42514b4324e5c63e93ae7570cab995254 (patch) | |
tree | 0f869655f2c64cb2d9b6a5260e0bf34b4d8eb7f5 /tools/testing/selftests/tc-testing/tc-tests/actions/bpf.json | |
parent | 27d92807f863173ecaf9eec5d3833bb5e31f440a (diff) | |
download | linux-489ce2f42514b4324e5c63e93ae7570cab995254.tar.bz2 |
tc-testing: Restore original behaviour for namespaces in tdc
This patch restores the original behaviour for tdc prior to the
introduction of the plugin system, where the network namespace
functionality was split from the main script.
It introduces the concept of required plugins for testcases,
and will automatically load any plugin that isn't already
enabled when said plugin is required by even one testcase.
Additionally, the -n option for the nsPlugin is deprecated
so the default action is to make use of the namespaces.
Instead, we introduce -N to not use them, but still create
the veth pair.
buildebpfPlugin's -B option is also deprecated.
If a test cases requires the features of a specific plugin
in order to pass, it should instead include a new key/value
pair describing plugin interactions:
"plugins": {
"requires": "buildebpfPlugin"
},
A test case can have more than one required plugin: a list
can be inserted as the value for 'requires'.
Signed-off-by: Lucas Bates <lucasb@mojatatu.com>
Acked-by: Davide Caratti <dcaratti@redhat.com>
Tested-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/tc-testing/tc-tests/actions/bpf.json')
-rw-r--r-- | tools/testing/selftests/tc-testing/tc-tests/actions/bpf.json | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/testing/selftests/tc-testing/tc-tests/actions/bpf.json b/tools/testing/selftests/tc-testing/tc-tests/actions/bpf.json index b074ea9b6fe8..47a3082b6661 100644 --- a/tools/testing/selftests/tc-testing/tc-tests/actions/bpf.json +++ b/tools/testing/selftests/tc-testing/tc-tests/actions/bpf.json @@ -54,6 +54,9 @@ "actions", "bpf" ], + "plugins": { + "requires": "buildebpfPlugin" + }, "setup": [ [ "$TC action flush action bpf", @@ -78,6 +81,9 @@ "actions", "bpf" ], + "plugins": { + "requires": "buildebpfPlugin" + }, "setup": [ [ "$TC action flush action bpf", |