Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1220196
| Path | csiph.com!goblin2!goblin.stu.neva.ru!gothmog.csi.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Bamvor Jian Zhang <bamvor.zhangjian@linaro.org> |
| Newsgroups | linux.kernel |
| Subject | [PATCH v2 5/6] selftests: change install command to rsync |
| Date | Mon, 07 Sep 2015 16:10:03 +0200 |
| Message-ID | <q65hp-7Mu-35@gated-at.bofh.it> (permalink) |
| References | <q65ho-7Mu-19@gated-at.bofh.it> |
| X-Original-To | linux-kernel@vger.kernel.org |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=+bTCmAip708xYtzjXvLlA4XfiGbyM1uZmF6BlAmAgO8=; b=KqY+jjwQs6r64XOvMugK/exbb0UOuTbw9lyAJSD5ewFNxHZ+0vdur5l6q25aTPHqBV BW3GUHz1QNtPayqBxdAC8TQCHLcheOErI6LzZBOF5O0qJ38GZmyd5nxwa6gEyG3UGsZv mAN536fwqd6Abq8zVufNuG2NlE730Y6kZhlsOHLag7BUn7USeplXtg5/nW+/yk3DmNML b+2oEgHMM8noukFlI3clw5TCUL3XMhK+/8OG+caIpVS25CD7bB7fKJeMTdM4oST6QhSJ sY0s5+tRTdPRA0Bj4AW67LHe8ZE9XDMGpAnSM1zWzVtqYkCYVuTmg31SY9wQ0o6WZmZ+ majw== |
| X-Gm-Message-State | ALoCoQmxOt+AKyPhFKVUGFcF21qudZqDdq5Yovr/lN6CdRgPOE+igeZTiPJo/j0Ve8PCbPWs+R3M |
| X-Received | by 10.66.147.68 with SMTP id ti4mr46350307pab.90.1441634927988; Mon, 07 Sep 2015 07:08:47 -0700 (PDT) |
| X-Mailer | git-send-email 2.1.4 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 54 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | broonie@kernel.org, khilman@linaro.org, tyler.baker@linaro.org, bamvor.zhangjian@linaro.org, shuahkh@osg.samsung.com, mpe@ellerman.id.au |
| X-Original-Date | Mon, 7 Sep 2015 22:04:51 +0800 |
| X-Original-Message-ID | <1441634692-19494-6-git-send-email-bamvor.zhangjian@linaro.org> |
| X-Original-References | <1441634692-19494-1-git-send-email-bamvor.zhangjian@linaro.org> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1220196 |
Show key headers only | View raw
The command of install could not handle the special files in exec
testcases, change the default rule to rsync to fix this.
The result of installation is unchanged after this commit.
Suggested-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Bamvor Jian Zhang <bamvor.zhangjian@linaro.org>
---
tools/testing/selftests/ftrace/Makefile | 2 +-
tools/testing/selftests/lib.mk | 11 ++++-------
2 files changed, 5 insertions(+), 8 deletions(-)
diff --git a/tools/testing/selftests/ftrace/Makefile b/tools/testing/selftests/ftrace/Makefile
index 0acbeca..4e6ed13 100644
--- a/tools/testing/selftests/ftrace/Makefile
+++ b/tools/testing/selftests/ftrace/Makefile
@@ -1,7 +1,7 @@
all:
TEST_PROGS := ftracetest
-TEST_DIRS := test.d/
+TEST_DIRS := test.d
include ../lib.mk
diff --git a/tools/testing/selftests/lib.mk b/tools/testing/selftests/lib.mk
index 97f1c67..50a93f5 100644
--- a/tools/testing/selftests/lib.mk
+++ b/tools/testing/selftests/lib.mk
@@ -12,13 +12,10 @@ run_tests: all
$(RUN_TESTS)
define INSTALL_RULE
- @if [ "X$(TEST_PROGS)$(TEST_PROGS_EXTENDED)$(TEST_FILES)" != "X" ]; then \
- mkdir -p $(INSTALL_PATH); \
- for TEST_DIR in $(TEST_DIRS); do \
- cp -r $$TEST_DIR $(INSTALL_PATH); \
- done; \
- echo "install -t $(INSTALL_PATH) $(TEST_PROGS) $(TEST_PROGS_EXTENDED) $(TEST_FILES)"; \
- install -t $(INSTALL_PATH) $(TEST_PROGS) $(TEST_PROGS_EXTENDED) $(TEST_FILES); \
+ @if [ "X$(TEST_PROGS)$(TEST_PROGS_EXTENDED)$(TEST_FILES)" != "X" ]; then \
+ mkdir -p ${INSTALL_PATH}; \
+ echo "rsync -a $(TEST_DIRS) $(TEST_PROGS) $(TEST_PROGS_EXTENDED) $(TEST_FILES) $(INSTALL_PATH)/"; \
+ rsync -a $(TEST_DIRS) $(TEST_PROGS) $(TEST_PROGS_EXTENDED) $(TEST_FILES) $(INSTALL_PATH)/; \
fi
endef
--
2.1.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH v2 5/6] selftests: change install command to rsync Bamvor Jian Zhang <bamvor.zhangjian@linaro.org> - 2015-09-07 16:10 +0200
Re: [PATCH v2 5/6] selftests: change install command to rsync Michael Ellerman <mpe@ellerman.id.au> - 2015-09-08 08:00 +0200
Re: [PATCH v2 5/6] selftests: change install command to rsync Bamvor Zhang Jian <bamvor.zhangjian@linaro.org> - 2015-09-08 11:30 +0200
Re: [PATCH v2 5/6] selftests: change install command to rsync Michael Ellerman <mpe@ellerman.id.au> - 2015-09-08 11:40 +0200
Re: [PATCH v2 5/6] selftests: change install command to rsync Bamvor Zhang Jian <bamvor.zhangjian@linaro.org> - 2015-09-08 11:50 +0200
csiph-web