selftests: lib.mk: Also install "config" and "settings"
authorKees Cook <keescook@chromium.org>
Thu, 27 May 2021 03:17:54 +0000 (20:17 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 8 Jun 2021 01:18:28 +0000 (19:18 -0600)
Installed seccomp tests would time out because the "settings" file was
missing. Install both "settings" (needed for proper test execution) and
"config" (needed for informational purposes) with the other test
targets.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/lib.mk

index 0af84ad..fa2ac0e 100644 (file)
@@ -100,6 +100,7 @@ define INSTALL_RULE
        $(eval INSTALL_LIST = $(TEST_CUSTOM_PROGS)) $(INSTALL_SINGLE_RULE)
        $(eval INSTALL_LIST = $(TEST_GEN_PROGS_EXTENDED)) $(INSTALL_SINGLE_RULE)
        $(eval INSTALL_LIST = $(TEST_GEN_FILES)) $(INSTALL_SINGLE_RULE)
+       $(eval INSTALL_LIST = $(wildcard config settings)) $(INSTALL_SINGLE_RULE)
 endef
 
 install: all