tc-testing: use a plugin to build eBPF program

use a TDC plugin, instead of building eBPF programs in the 'setup' stage.
'-B' argument can be used to build eBPF programs in $EBPFDIR directory,
in the 'pre-suite' stage. Binaries are then cleaned in 'post-suite' stage.

Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Davide Caratti
2018-10-04 18:34:39 +02:00
committed by David S. Miller
parent cf5eafbfa5
commit 4c2d39bd40
3 changed files with 70 additions and 6 deletions

View File

@@ -55,7 +55,6 @@
"bpf"
],
"setup": [
"make -C bpf",
[
"$TC action flush action bpf",
0,
@@ -69,8 +68,7 @@
"matchPattern": "action order [0-9]*: bpf action.o:\\[action-ok\\] id [0-9]* tag [0-9a-f]{16}( jited)? default-action pipe.*index 667 ref",
"matchCount": "1",
"teardown": [
"$TC action flush action bpf",
"make -C bpf clean"
"$TC action flush action bpf"
]
},
{
@@ -81,7 +79,6 @@
"bpf"
],
"setup": [
"make -C bpf",
[
"$TC action flush action bpf",
0,
@@ -100,8 +97,7 @@
0,
1,
255
],
"make -C bpf clean"
]
]
},
{