From: tyler.baker@linaro.org (Tyler Baker)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 6/7] selftests/x86: install tests
Date: Tue, 14 Apr 2015 15:53:09 -0700 [thread overview]
Message-ID: <1429051989-14821-1-git-send-email-tyler.baker@linaro.org> (raw)
Set TEST_PROGS so that the required binaries are installed. Skip the install
and test case when ARCH != x86.
Signed-off-by: Tyler Baker <tyler.baker@linaro.org>
---
tools/testing/selftests/x86/Makefile | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/tools/testing/selftests/x86/Makefile b/tools/testing/selftests/x86/Makefile
index 7be67a0..1abe3f6 100644
--- a/tools/testing/selftests/x86/Makefile
+++ b/tools/testing/selftests/x86/Makefile
@@ -24,6 +24,10 @@ all_32: check_build32 $(BINARIES_32)
all_64: $(BINARIES_64)
+include ../lib.mk
+
+TEST_PROGS := $(BINARIES_32) $(BINARIES_64) run_x86_tests.sh
+
$(TARGETS_C_BOTHBITS:%=%_32): %_32: %.c
ifeq ($(ARCH),x86)
$(CC) -m32 -o $@ $(CFLAGS) $(EXTRA_CFLAGS) $^ -lrt -ldl
@@ -52,6 +56,12 @@ check_build32:
exit 1; \
fi
+install:
+ifneq ($(ARCH),x86)
+echo "Not an x86 target, can't install x86 tests"
+override EMIT_TESTS := echo "echo \"selftests: run_x86_tests.sh [SKIP]\""
+endif
+
run_tests:
./run_x86_tests.sh
--
2.1.0
reply other threads:[~2015-04-14 22:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1429051989-14821-1-git-send-email-tyler.baker@linaro.org \
--to=tyler.baker@linaro.org \
--cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).