From: Shuah Khan <shuahkh@osg.samsung.com>
To: Bamvor Jian Zhang <bamvor.zhangjian@linaro.org>,
linux-kernel@vger.kernel.org
Cc: broonie@linaro.org, khilman@linaro.org, tyler.baker@linaro.org,
Shuah Khan <shuahkh@osg.samsung.com>
Subject: Re: [PATCH 4/7] selftests: check before install
Date: Thu, 27 Aug 2015 16:13:36 -0600 [thread overview]
Message-ID: <55DF8B90.60604@osg.samsung.com> (raw)
In-Reply-To: <55DF6EC8.5020507@osg.samsung.com>
On 08/27/2015 02:10 PM, Shuah Khan wrote:
> On 08/14/2015 07:43 AM, Bamvor Jian Zhang wrote:
>> When the test cases is not supported by the current architecture
>> the install files(TEST_PROGS, TEST_PROGS_EXTENDED and TEST_FILES)
>> will be empty. Check it before installation to dismiss a failure
>> reported by install program.
>>
>> Signed-off-by: Bamvor Jian Zhang <bamvor.zhangjian@linaro.org>
>> ---
>> tools/testing/selftests/Makefile | 1 -
>> tools/testing/selftests/lib.mk | 13 ++++++++-----
>> 2 files changed, 8 insertions(+), 6 deletions(-)
>>
>> diff --git a/tools/testing/selftests/Makefile b/tools/testing/selftests/Makefile
>> index 5f1d643..1d4a29a 100644
>> --- a/tools/testing/selftests/Makefile
>> +++ b/tools/testing/selftests/Makefile
>> @@ -73,7 +73,6 @@ ifdef INSTALL_PATH
>> @# Ask all targets to install their files
>> mkdir -p $(INSTALL_PATH)
>> for TARGET in $(TARGETS); do \
>> - mkdir -p $(INSTALL_PATH)/$$TARGET ; \
>> make -C $$TARGET INSTALL_PATH=$(INSTALL_PATH)/$$TARGET install; \
>> done;
>>
>> diff --git a/tools/testing/selftests/lib.mk b/tools/testing/selftests/lib.mk
>> index 1acfd02..4e14665 100644
>> --- a/tools/testing/selftests/lib.mk
>> +++ b/tools/testing/selftests/lib.mk
>> @@ -14,11 +14,14 @@ run_tests: all
>> $(RUN_TESTS)
>>
>> 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)
>> + @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); \
>> + fi
>> endef
>>
>> install: all
>>
>
> Hi Bamvor,
>
> This patch works as intended for tests that use the default
> INSTALL_RULE. In the cases where INSTALL_RULE is overridden
> as in the case of powerpc, powerpc directory still gets created
> during install.
>
> It would be nice if we can fix it for the override cases as well.
> I will get this into 4.3 for now. Would you like to send a patch
> to fix the override cases as well??
>
Applied to linux-kselftest next for 4.3-rc1.
thanks,
-- Shuah
--
Shuah Khan
Sr. Linux Kernel Developer
Open Source Innovation Group
Samsung Research America (Silicon Valley)
shuahkh@osg.samsung.com | (970) 217-8978
next prev parent reply other threads:[~2015-08-27 22:13 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-14 13:43 [PATCH 0/7] Improvement kselftest support for arm and arm64 Bamvor Jian Zhang
2015-08-14 13:43 ` [PATCH 1/7] selftests: rename jump label to static_keys Bamvor Jian Zhang
2015-08-27 22:17 ` Shuah Khan
2015-09-07 10:33 ` Michael Ellerman
2015-09-08 13:03 ` Shuah Khan
2015-08-14 13:43 ` [PATCH 2/7] selftests: add CFLAGS_EXTRA Bamvor Jian Zhang
2015-08-24 3:48 ` Michael Ellerman
2015-08-25 12:49 ` Bamvor Zhang Jian
2015-08-27 10:23 ` Michael Ellerman
2015-08-14 13:43 ` [PATCH 3/7] selftests: exec: fix for running and installing Bamvor Jian Zhang
2015-08-27 10:55 ` Michael Ellerman
2015-08-14 13:43 ` [PATCH 4/7] selftests: check before install Bamvor Jian Zhang
2015-08-27 20:10 ` Shuah Khan
2015-08-27 22:13 ` Shuah Khan [this message]
2015-08-14 13:43 ` [PATCH 5/7] selftests: disable seccomp for arm64 Bamvor Jian Zhang
2015-08-24 3:48 ` Michael Ellerman
2015-08-25 12:51 ` Bamvor Zhang Jian
2015-08-14 13:43 ` [PATCH 6/7] selftests: only compile userfaultfd for x86 and powperpc Bamvor Jian Zhang
2015-08-27 22:20 ` Shuah Khan
2015-08-31 3:26 ` Michael Ellerman
2015-09-08 9:15 ` Bamvor Zhang Jian
2015-09-08 9:54 ` Michael Ellerman
2015-09-08 12:25 ` Bamvor Zhang Jian
2015-09-08 14:34 ` Andrea Arcangeli
2015-09-09 8:43 ` Michael Ellerman
2015-09-09 17:20 ` Andrea Arcangeli
2015-08-14 13:43 ` [PATCH 7/7] selftests: breakpoints: fix installing error on the architecture except x86 Bamvor Jian Zhang
2015-08-27 14:16 ` Shuah Khan
2015-08-27 22:14 ` Shuah Khan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55DF8B90.60604@osg.samsung.com \
--to=shuahkh@osg.samsung.com \
--cc=bamvor.zhangjian@linaro.org \
--cc=broonie@linaro.org \
--cc=khilman@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tyler.baker@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome