diff options
author | Florent Revest <revest@chromium.org> | 2021-02-10 12:14:04 +0100 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-02-11 17:44:41 -0800 |
commit | 61f8c9c8f3c8fb60722f0f3168d1a546dbf8a3d4 (patch) | |
tree | 20e462cfca537597fb3e360747d723bc359889f9 /tools/testing/selftests/bpf/.gitignore | |
parent | c5dbb89fc2ac013afe67b9e4fcb3743c02b567cd (diff) |
selftests/bpf: Integrate the socket_cookie test to test_progs
Currently, the selftest for the BPF socket_cookie helpers is built and
run independently from test_progs. It's easy to forget and hard to
maintain.
This patch moves the socket cookies test into prog_tests/ and vastly
simplifies its logic by:
- rewriting the loading code with BPF skeletons
- rewriting the server/client code with network helpers
- rewriting the cgroup code with test__join_cgroup
- rewriting the error handling code with CHECKs
Signed-off-by: Florent Revest <revest@chromium.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: KP Singh <kpsingh@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210210111406.785541-3-revest@chromium.org
Diffstat (limited to 'tools/testing/selftests/bpf/.gitignore')
-rw-r--r-- | tools/testing/selftests/bpf/.gitignore | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/.gitignore b/tools/testing/selftests/bpf/.gitignore index 9abca0616ec0..c0c48fdb9ac1 100644 --- a/tools/testing/selftests/bpf/.gitignore +++ b/tools/testing/selftests/bpf/.gitignore @@ -17,7 +17,6 @@ test_sockmap test_lirc_mode2_user get_cgroup_id_user test_skb_cgroup_id_user -test_socket_cookie test_cgroup_storage test_flow_dissector flow_dissector_load |