selftests/bpf: move sockopt tests under test_progs
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
Changes in v2 from the cover letter
* don't create a subtest per sockopt test, too verbose (Alexei Starovoitov)
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | selftests/bpf: test_progs: add test__join_cgroup helpertools/ tools/ tools/ | +41 | 2 replies | |
| 2/6 | selftests/bpf: test_progs: convert test_sockopttools/ tools/ tools/ | +8 | 0 replies | |
| 3/6 | selftests/bpf: test_progs: convert test_sockopt_sktools/ tools/ tools/ +1 more | +15 | 0 replies | |
| 4/6 | selftests/bpf: test_progs: convert test_sockopt_multitools/ tools/ tools/ | +11 | 0 replies | |
| 5/6 | selftests/bpf: test_progs: convert test_sockopt_inherittools/ tools/ tools/ | +43 | 0 replies | |
| 6/6 | selftests/bpf: test_progs: convert test_tcp_rtttools/ tools/ tools/ | +28 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH bpf-next v2 0/6] selftests/bpf: move sockopt tests under test_progs
Now that test_progs is shaping into more generic test framework, let's convert sockopt tests to it. This requires adding a helper to create and join a cgroup first (test__join_cgroup). Since we already hijack stdout/stderr that shouldn't be a problem (cgroup helpers log to stderr).
The rest of the patches just move sockopt tests files under prog_tests/ and do the required small adjustments.
v2:
* don't create a subtest per sockopt test, too verbose (Alexei Starovoitov)
Stanislav Fomichev (6):
selftests/bpf: test_progs: add test__join_cgroup helper selftests/bpf: test_progs: convert test_sockopt selftests/bpf: test_progs: convert test_sockopt_sk selftests/bpf: test_progs: convert test_sockopt_multi selftests/bpf: test_progs: convert test_sockopt_inherit selftests/bpf: test_progs: convert test_tcp_rtt
tools/testing/selftests/bpf/.gitignore | 5 -
tools/testing/selftests/bpf/Makefile | 12 +--
.../{test_sockopt.c => prog_tests/sockopt.c} | 50 ++-------
.../sockopt_inherit.c} | 102 ++++++++----------
.../sockopt_multi.c} | 62 ++---------
.../sockopt_sk.c} | 60 +++--------
.../{test_tcp_rtt.c => prog_tests/tcp_rtt.c} | 83 +++++---------
tools/testing/selftests/bpf/test_progs.c | 38 +++++++
tools/testing/selftests/bpf/test_progs.h | 4 +-
9 files changed, 142 insertions(+), 274 deletions(-)
rename tools/testing/selftests/bpf/{test_sockopt.c => prog_tests/sockopt.c} (96%)
rename tools/testing/selftests/bpf/{test_sockopt_inherit.c => prog_tests/sockopt_inherit.c} (72%)
rename tools/testing/selftests/bpf/{test_sockopt_multi.c => prog_tests/sockopt_multi.c} (83%)
rename tools/testing/selftests/bpf/{test_sockopt_sk.c => prog_tests/sockopt_sk.c} (79%)
rename tools/testing/selftests/bpf/{test_tcp_rtt.c => prog_tests/tcp_rtt.c} (76%)Signature · 1 line
2.23.0.187.g17f5b7556c-goog