diff options
author | Jesper Dangaard Brouer <brouer@redhat.com> | 2019-08-01 20:00:21 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-08-05 11:17:40 -0700 |
commit | d35661fcf95d8818c1f9acc818a1bad23dda4e1c (patch) | |
tree | b8cc52e50fae22ddfe35f491f97a26874979337c /tools/testing/selftests/bpf/test_xdp_vlan.sh | |
parent | 4de9c89a4982431c4a02739743fd360dc5581f22 (diff) | |
download | talos-op-linux-d35661fcf95d8818c1f9acc818a1bad23dda4e1c.tar.gz talos-op-linux-d35661fcf95d8818c1f9acc818a1bad23dda4e1c.zip |
selftests/bpf: add wrapper scripts for test_xdp_vlan.sh
In-order to test both native-XDP (xdpdrv) and generic-XDP (xdpgeneric)
create two wrapper test scripts, that start the test_xdp_vlan.sh script
with these modes.
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/bpf/test_xdp_vlan.sh')
-rwxr-xr-x | tools/testing/selftests/bpf/test_xdp_vlan.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/test_xdp_vlan.sh b/tools/testing/selftests/bpf/test_xdp_vlan.sh index c8aed63b0ffe..7348661be815 100755 --- a/tools/testing/selftests/bpf/test_xdp_vlan.sh +++ b/tools/testing/selftests/bpf/test_xdp_vlan.sh @@ -2,7 +2,10 @@ # SPDX-License-Identifier: GPL-2.0 # Author: Jesper Dangaard Brouer <hawk@kernel.org> -TESTNAME=xdp_vlan +# Allow wrapper scripts to name test +if [ -z "$TESTNAME" ]; then + TESTNAME=xdp_vlan +fi # Default XDP mode XDP_MODE=xdpgeneric |