]> www.infradead.org Git - users/hch/misc.git/commit
selftests/bpf: lwt_seg6local: Move test to test_progs
authorBastien Curutchet (eBPF Foundation) <bastien.curutchet@bootlin.com>
Fri, 7 Mar 2025 09:18:24 +0000 (10:18 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 15 Mar 2025 18:48:57 +0000 (11:48 -0700)
commit1041b8bc9f9cf00e6763455e13d0441a50f948b0
treeb04ddd2e2f7d0802dba852701a8759e2d9c7b79b
parentb1d85ff517ef86901b8d6d820843f2456320f645
selftests/bpf: lwt_seg6local: Move test to test_progs

test_lwt_seg6local.sh isn't used by the BPF CI.

Add a new file in the test_progs framework to migrate the tests done by
test_lwt_seg6local.sh. It uses the same network topology and the same BPF
programs located in progs/test_lwt_seg6local.c.
Use the network helpers instead of `nc` to exchange the final packet.

Remove test_lwt_seg6local.sh and its Makefile entry.

Signed-off-by: Bastien Curutchet (eBPF Foundation) <bastien.curutchet@bootlin.com>
Link: https://lore.kernel.org/r/20250307-seg6local-v1-2-990fff8f180d@bootlin.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/prog_tests/lwt_seg6local.c [new file with mode: 0644]
tools/testing/selftests/bpf/test_lwt_seg6local.sh [deleted file]