Skip to contentSkip to conversation

selftests: lib.mk: Also install "config" and "settings"

PATCH In review Kees Cook 2 participants 2 messages May 27, 2021 – Jun 4, 2021 Kselftest

lore
Share & tools
lore

Kees Cook

author
#0 lore raw

PATCH 1/1 selftests: lib.mk: Also install "config" and "settings"

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.

---
 tools/testing/selftests/lib.mk | 1 +
 1 file changed, 1 insertion(+)
tools/testing/selftests/lib.mk +1 -0
index 0af84ad48aa7..fa2ac0e56b43 100644
@@ -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
Signature · 1 line
2.25.1
maintainer
#1 lore raw
Quoted 16 lines · Kees Cook

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.

---
  tools/testing/selftests/lib.mk | 1 +
  1 file changed, 1 insertion(+)
tools/testing/selftests/lib.mk +0 -0
index 0af84ad48aa7..fa2ac0e56b43 100644

tools/testing/selftests/lib.mk define INSTALL_RULE · line 106

Quoted 7 lines
tools/testing/selftests/lib.mk +1 -0
@@ -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

I will pick this up for 5.14

thanks,
-- Shuah