Re: [net] seg6: selftests/bpf: fix BPF object file name in test_lwt_seg6local.sh

From: Yonghong Song
Date: Mon Nov 07 2022 - 12:49:12 EST




On 11/7/22 6:30 AM, Andrea Mayer wrote:
The test_lwt_seg6local.c implements several eBPF programs which are
used to test the SRv6 End.BPF behavior.
Since commit afef88e65554 ("selftests/bpf: Store BPF object files with
.bpf.o extension"), part of the build system and test programs loading
BPF object files are supposed to work with the .bpf.o extension.

Consequently, the test_lwt_seg6local.c is compiled into
test_lwt_seg6local.bpf.o and the corresponding test_lwt_seg6local.sh
script is not updated to deal with the correct .bpf.o extension.

This patch fixes the test_lwt_seg6local.sh, using the correct .bpf.o
extension for the testing BPF object file, i.e. test_lwt_seg6local.bpf.o.

Fixes: afef88e65554 ("selftests/bpf: Store BPF object files with .bpf.o extension")
Signed-off-by: Andrea Mayer <andrea.mayer@xxxxxxxxxxx>

Acked-by: Yonghong Song <yhs@xxxxxx>