summaryrefslogtreecommitdiffstats
path: root/tools/testing
diff options
context:
space:
mode:
authorTyler Baker <tyler.baker@linaro.org>2015-04-21 15:49:48 -0700
committerShuah Khan <shuahkh@osg.samsung.com>2015-05-26 15:58:06 -0600
commite8c1d7cdf13707a919f5a067c69d37b532cd09ab (patch)
treec03e41202e177a25dea04f75bc8436078352efe1 /tools/testing
parentbd67d5c15cc190f52eb2f2a2f6f6b800ca33d9dd (diff)
downloadop-kernel-dev-e8c1d7cdf13707a919f5a067c69d37b532cd09ab.zip
op-kernel-dev-e8c1d7cdf13707a919f5a067c69d37b532cd09ab.tar.gz
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 <mpe@ellerman.id.au> Signed-off-by: Tyler Baker <tyler.baker@linaro.org> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'tools/testing')
-rw-r--r--tools/testing/selftests/lib.mk3
1 files changed, 3 insertions, 0 deletions
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
OpenPOWER on IntegriCloud