mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-08 18:43:21 +01:00
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 <[email protected]> Signed-off-by: Tyler Baker <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
This commit is contained in:
1 parent
bd67d5c15c
commit
e8c1d7cdf1
1 file changed
+3
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user