linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 1/7] selftests: copy TEST_DIRS to INSTALL_PATH
@ 2015-04-21 22:49 Tyler Baker
  2015-05-06 20:17 ` Shuah Khan
  0 siblings, 1 reply; 2+ messages in thread
From: Tyler Baker @ 2015-04-21 22:49 UTC (permalink / raw)
  To: linux-arm-kernel

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 <mpe@ellerman.id.au>
Signed-off-by: Tyler Baker <tyler.baker@linaro.org>
---
 tools/testing/selftests/lib.mk | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tools/testing/selftests/lib.mk b/tools/testing/selftests/lib.mk
index 2194155..ee412ba 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
 
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH v4 1/7] selftests: copy TEST_DIRS to INSTALL_PATH
  2015-04-21 22:49 [PATCH v4 1/7] selftests: copy TEST_DIRS to INSTALL_PATH Tyler Baker
@ 2015-05-06 20:17 ` Shuah Khan
  0 siblings, 0 replies; 2+ messages in thread
From: Shuah Khan @ 2015-05-06 20:17 UTC (permalink / raw)
  To: linux-arm-kernel

On 04/21/2015 04:49 PM, Tyler Baker wrote:
> 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 <mpe@ellerman.id.au>
> Signed-off-by: Tyler Baker <tyler.baker@linaro.org>

Thanks for working on this. Applied to linux-kselftest next
for 4.2

thanks,
-- Shuah


-- 
Shuah Khan
Sr. Linux Kernel Developer
Open Source Innovation Group
Samsung Research America (Silicon Valley)
shuahkh at osg.samsung.com | (970) 217-8978

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-05-06 20:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-21 22:49 [PATCH v4 1/7] selftests: copy TEST_DIRS to INSTALL_PATH Tyler Baker
2015-05-06 20:17 ` Shuah Khan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).