Skip to content

RFC selftests: openvswitch: cleanups for running as selftests

Aaron Conole linux-kselftest netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest7 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7selftests: openvswitch: add test case error directories to clean listtools/testing/selftests/net/openvswitch/Makefile+11 -10 replies
2/7selftests: openvswitch: be more verbose with selftest debuggingtools/testing/selftests/net/openvswitch/openvswitch.sh+7 -30 replies
3/7selftests: openvswitch: use non-graceful kills when neededtools/testing/selftests/net/openvswitch/openvswitch.sh+4 -22 replies
4/7selftests: openvswitch: delete previously allocated netnstools/testing/selftests/net/openvswitch/openvswitch.sh+4 -02 replies
5/7selftests: openvswitch: make arping test a bit 'slower'tools/testing/selftests/net/openvswitch/openvswitch.sh+1 -10 replies
6/7selftests: openvswitch: insert module when running the teststools/testing/selftests/net/openvswitch/openvswitch.sh+11 -00 replies
7/7selftests: openvswitch: add config and timeout settingstools/testing/selftests/net/openvswitch/config tools/testing/selftests/net/openvswitch/settings+51 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/7] selftests: openvswitch: cleanups for running as selftests

The series is a host of cleanups to the openvswitch selftest suite which should be ready to run under the netdev selftest runners using vng. For now, the testing has been done with RW directories, but additional testing will be done to try and keep it all as RO to be more friendly.

There is one more test case I plan which will print the debug log details when a test case fails so that a developer can get a clear picture why the test case failed. That will be done for the proper submission as another patch in this series.

Additionally, the timeout setting was just an arbitrary number that I picked, but needs more testing to tune it properly (since 5 minutes may be a bit too long).

Tested on fedora 38 using virtme-ng with the following commandline:

../virtme-ng/vng -v --run . --user root --cpus 4 \
    --rwdir=/home/aconole/git/linux/tools/testing/selftests/net/openvswitch/ \
    -- \
    make -C tools/testing/selftests/net/openvswitch \
         TARGETS=openvswitch TEST_PROGS=openvswitch.sh run_tests

Aaron Conole (7):
selftests: openvswitch: add test case error directories to clean list
selftests: openvswitch: be more verbose with selftest debugging
selftests: openvswitch: use non-graceful kills when needed
selftests: openvswitch: delete previously allocated netns
selftests: openvswitch: make arping test a bit 'slower'
selftests: openvswitch: insert module when running the tests
selftests: openvswitch: add config and timeout settings

 .../selftests/net/openvswitch/Makefile        | 12 ++++-
 .../testing/selftests/net/openvswitch/config  | 50 +++++++++++++++++++
 .../selftests/net/openvswitch/openvswitch.sh  | 33 +++++++++---
 .../selftests/net/openvswitch/settings        |  1 +
 4 files changed, 89 insertions(+), 7 deletions(-)
 create mode 100644 tools/testing/selftests/net/openvswitch/config
 create mode 100644 tools/testing/selftests/net/openvswitch/settings
Signature · 1 line
2.41.0