From: Tyler Baker Date: Tue, 21 Apr 2015 22:49:48 +0000 (-0700) Subject: selftests: copy TEST_DIRS to INSTALL_PATH X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e8c1d7cdf13707a919f5a067c69d37b532cd09ab;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git selftests: copy TEST_DIRS to INSTALL_PATH Loop over all TEST_DIRS and recursively copy them to the INSTALL_PATH. Tests such as ftrace require a directory and all of it's contents to execute the test properly, thus these directories and files need to be copied when we perform an install. Acked-by: Michael Ellerman Signed-off-by: Tyler Baker Signed-off-by: Shuah Khan --- diff --git a/tools/testing/selftests/lib.mk b/tools/testing/selftests/lib.mk index 2194155ae62a..ee412bab7ed4 100644 --- a/tools/testing/selftests/lib.mk +++ b/tools/testing/selftests/lib.mk @@ -13,6 +13,9 @@ run_tests: all define INSTALL_RULE mkdir -p $(INSTALL_PATH) + @for TEST_DIR in $(TEST_DIRS); do\ + cp -r $$TEST_DIR $(INSTALL_PATH); \ + done; install -t $(INSTALL_PATH) $(TEST_PROGS) $(TEST_PROGS_EXTENDED) $(TEST_FILES) endef