Skip to content

Commit d6ac8ca

Browse files
jpbruckeranakryiko
authored andcommitted
selftests/bpf: Move generated test files to $(TEST_GEN_FILES)
During an out-of-tree build, attempting to install the $(TEST_FILES) into the $(OUTPUT) directory fails, because the objects were already generated into $(OUTPUT): rsync: [sender] link_stat "tools/testing/selftests/bpf/test_lwt_ip_encap.o" failed: No such file or directory (2) rsync: [sender] link_stat "tools/testing/selftests/bpf/test_tc_edt.o" failed: No such file or directory (2) Use $(TEST_GEN_FILES) instead. Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20210113163319.1516382-4-jean-philippe@linaro.org
1 parent 5837ced commit d6ac8ca

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tools/testing/selftests/bpf/Makefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,9 @@ ifneq ($(BPF_GCC),)
4444
TEST_GEN_PROGS += test_progs-bpf_gcc
4545
endif
4646

47-
TEST_GEN_FILES =
48-
TEST_FILES = test_lwt_ip_encap.o \
49-
test_tc_edt.o \
50-
xsk_prereqs.sh
47+
TEST_GEN_FILES = test_lwt_ip_encap.o \
48+
test_tc_edt.o
49+
TEST_FILES = xsk_prereqs.sh
5150

5251
# Order correspond to 'make run_tests' order
5352
TEST_PROGS := test_kmod.sh \

0 commit comments

Comments
 (0)