summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/test_xdp_vlan_mode_generic.sh
diff options
context:
space:
mode:
authorJesper Dangaard Brouer <brouer@redhat.com>2019-08-01 20:00:21 +0200
committerDavid S. Miller <davem@davemloft.net>2019-08-05 11:17:40 -0700
commitd35661fcf95d8818c1f9acc818a1bad23dda4e1c (patch)
treeb8cc52e50fae22ddfe35f491f97a26874979337c /tools/testing/selftests/bpf/test_xdp_vlan_mode_generic.sh
parent4de9c89a4982431c4a02739743fd360dc5581f22 (diff)
downloadlwn-d35661fcf95d8818c1f9acc818a1bad23dda4e1c.tar.gz
lwn-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_generic.sh')
-rwxr-xr-xtools/testing/selftests/bpf/test_xdp_vlan_mode_generic.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/test_xdp_vlan_mode_generic.sh b/tools/testing/selftests/bpf/test_xdp_vlan_mode_generic.sh
new file mode 100755
index 000000000000..c515326d6d59
--- /dev/null
+++ b/tools/testing/selftests/bpf/test_xdp_vlan_mode_generic.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+# SPDX-License-Identifier: GPL-2.0
+
+# Exit on failure
+set -e
+
+# Wrapper script to test generic-XDP
+export TESTNAME=xdp_vlan_mode_generic
+./test_xdp_vlan.sh --mode=xdpgeneric