diff options
author | Aaron Conole <aconole@redhat.com> | 2022-10-25 06:50:18 -0400 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2022-10-27 12:31:24 +0200 |
commit | 25f16c873fb1aa8ba870319c9614f7ff7502d35b (patch) | |
tree | 1f8af75ae7fc40cf784a031f07884c8480902c75 /tools/testing/selftests/net/openvswitch/Makefile | |
parent | openvswitch: switch from WARN to pr_warn (diff) | |
download | wireguard-linux-25f16c873fb1aa8ba870319c9614f7ff7502d35b.tar.xz wireguard-linux-25f16c873fb1aa8ba870319c9614f7ff7502d35b.zip |
selftests: add openvswitch selftest suite
Previous commit resolves a WARN splat that can be difficult to reproduce,
but with the ovs-dpctl.py utility, it can be trivial. Introduce a test
case which creates a DP, and then downgrades the feature set. This will
include a utility 'ovs-dpctl.py' that can be extended to do additional
tests and diagnostics.
Signed-off-by: Aaron Conole <aconole@redhat.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/testing/selftests/net/openvswitch/Makefile')
-rw-r--r-- | tools/testing/selftests/net/openvswitch/Makefile | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/openvswitch/Makefile b/tools/testing/selftests/net/openvswitch/Makefile new file mode 100644 index 000000000000..2f1508abc826 --- /dev/null +++ b/tools/testing/selftests/net/openvswitch/Makefile @@ -0,0 +1,13 @@ +# SPDX-License-Identifier: GPL-2.0 + +top_srcdir = ../../../../.. + +CFLAGS = -Wall -Wl,--no-as-needed -O2 -g -I$(top_srcdir)/usr/include $(KHDR_INCLUDES) + +TEST_PROGS := openvswitch.sh + +TEST_FILES := ovs-dpctl.py + +EXTRA_CLEAN := test_netlink_checks + +include ../../lib.mk |