]> git.baikalelectronics.ru Git - kernel.git/commit
bpf, testing: Add missing object file to TEST_FILES
authorAnders Roxell <anders.roxell@linaro.org>
Mon, 11 Nov 2019 16:17:28 +0000 (17:17 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 11 Nov 2019 21:35:23 +0000 (22:35 +0100)
commit0ab2b76366cf224fdcd35792ecd93428a0923cbf
treeff10b5317aaae2840b462f2fea3eab51b39315ff
parent06cd172e7c4cf136b3039b2bbd3153895970e399
bpf, testing: Add missing object file to TEST_FILES

When installing kselftests to its own directory and run the
test_lwt_ip_encap.sh it will complain that test_lwt_ip_encap.o can't be
found. Same with the test_tc_edt.sh test it will complain that
test_tc_edt.o can't be found.

  $ ./test_lwt_ip_encap.sh
  starting egress IPv4 encap test
  Error opening object test_lwt_ip_encap.o: No such file or directory
  Object hashing failed!
  Cannot initialize ELF context!
  Failed to parse eBPF program: Invalid argument

Rework to add test_lwt_ip_encap.o and test_tc_edt.o to TEST_FILES so the
object file gets installed when installing kselftest.

Fixes: 5ff9b45984d3 ("selftests/bpf: Replace test_progs and test_maps w/ general rule")
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20191111161728.8854-1-anders.roxell@linaro.org
tools/testing/selftests/bpf/Makefile