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_mode_native.sh | |
parent | bpf: fix XDP vlan selftests test_xdp_vlan.sh (diff) | |
download | linux-dev-d35661fcf95d8818c1f9acc818a1bad23dda4e1c.tar.xz linux-dev-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_mode_native.sh')
-rwxr-xr-x | tools/testing/selftests/bpf/test_xdp_vlan_mode_native.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/test_xdp_vlan_mode_native.sh b/tools/testing/selftests/bpf/test_xdp_vlan_mode_native.sh new file mode 100755 index 000000000000..5cf7ce1f16c1 --- /dev/null +++ b/tools/testing/selftests/bpf/test_xdp_vlan_mode_native.sh @@ -0,0 +1,9 @@ +#!/bin/bash +# SPDX-License-Identifier: GPL-2.0 + +# Exit on failure +set -e + +# Wrapper script to test native-XDP +export TESTNAME=xdp_vlan_mode_native +./test_xdp_vlan.sh --mode=xdpdrv |