]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Fix flavored variants of test_ima
authorKP Singh <kpsingh@google.com>
Thu, 26 Nov 2020 18:49:46 +0000 (18:49 +0000)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 30 Nov 2020 21:56:32 +0000 (22:56 +0100)
commit62b095e53b4dd2031ca20f5db5bb5ade7d7156a5
treea6e0e3c859b988a922b50fd2a1d96f36c2c17b49
parent52690c546788c8d149d78735f9b50bb6771a8595
selftests/bpf: Fix flavored variants of test_ima

Flavored variants of test_progs (e.g. test_progs-no_alu32) change their
working directory to the corresponding subdirectory (e.g. no_alu32).
Since the setup script required by test_ima (ima_setup.sh) is not
mentioned in the dependencies, it does not get copied to these
subdirectories and causes flavored variants of test_ima to fail.

Adding the script to TRUNNER_EXTRA_FILES ensures that the file is also
copied to the subdirectories for the flavored variants of test_progs.

Fixes: 986961860112 ("bpf: Add a selftest for bpf_ima_inode_hash")
Reported-by: Yonghong Song <yhs@fb.com>
Suggested-by: Yonghong Song <yhs@fb.com>
Signed-off-by: KP Singh <kpsingh@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20201126184946.1708213-1-kpsingh@chromium.org
tools/testing/selftests/bpf/Makefile