linux-kbuild.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Shuah Khan <shuahkh@osg.samsung.com>
To: mmarek@suse.cz, gregkh@linuxfoundation.org,
	akpm@linux-foundation.org, rostedt@goodmis.org, mingo@redhat.com,
	davem@davemloft.net, keescook@chromium.org,
	tranmanphong@gmail.com, mpe@ellerman.id.au, cov@codeaurora.org,
	dh.herrmann@gmail.com, hughd@google.com, bobby.prani@gmail.com,
	serge.hallyn@ubuntu.com, ebiederm@xmission.com,
	tim.bird@sonymobile.com, josh@joshtriplett.org, koct9i@gmail.com
Cc: Shuah Khan <shuahkh@osg.samsung.com>,
	linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-api@vger.kernel.org, netdev@vger.kernel.org
Subject: [PATCH v3 01/20] selftests/breakpoints: add install target to enable test install
Date: Wed, 24 Dec 2014 09:27:37 -0700	[thread overview]
Message-ID: <0a42ee9b3e243c71927d7d71c5cb6e5f5ade510e.1419387513.git.shuahkh@osg.samsung.com> (raw)
In-Reply-To: <cover.1419387513.git.shuahkh@osg.samsung.com>
In-Reply-To: <cover.1419387513.git.shuahkh@osg.samsung.com>

Add a new make target to enable installing test. This target
installs test in the kselftest install location and add to the
kselftest script to run the test. Install target can be run
only from top level kernel source directory.

Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
---
 tools/testing/selftests/breakpoints/Makefile | 19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)

diff --git a/tools/testing/selftests/breakpoints/Makefile b/tools/testing/selftests/breakpoints/Makefile
index e18b42b..b5a5fe8 100644
--- a/tools/testing/selftests/breakpoints/Makefile
+++ b/tools/testing/selftests/breakpoints/Makefile
@@ -8,6 +8,7 @@ ifeq ($(ARCH),x86_64)
 	ARCH := x86
 endif
 
+TEST_STR = ./breakpoint_test || echo breakpoints selftests: [FAIL]
 
 all:
 ifeq ($(ARCH),x86)
@@ -16,8 +17,22 @@ else
 	echo "Not an x86 target, can't build breakpoints selftests"
 endif
 
-run_tests:
-	@./breakpoint_test || echo "breakpoints selftests: [FAIL]"
+install:
+ifdef INSTALL_KSFT_PATH
+ifeq ($(ARCH),x86)
+	install ./breakpoint_test $(INSTALL_KSFT_PATH)
+	@echo "$(TEST_STR)" >> $(KSELFTEST)
+else
+	@echo Not an x86 target, unable to install breakpoints selftests
+endif
+else
+	@echo Run make kselftest_install in top level source directory
+endif
+
+run_tests: all
+ifeq ($(ARCH),x86)
+	@$(TEST_STR)
+endif
 
 clean:
 	rm -fr breakpoint_test
-- 
2.1.0


  reply	other threads:[~2014-12-24 16:36 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-24 16:27 [PATCH v3 00/20] kselftest install target feature Shuah Khan
2014-12-24 16:27 ` Shuah Khan [this message]
2014-12-24 16:27 ` [PATCH v3 02/20] selftests/cpu-hotplug: add install target to enable test install Shuah Khan
2014-12-24 16:27 ` [PATCH v3 03/20] selftests/efivarfs: " Shuah Khan
2014-12-24 16:27 ` [PATCH v3 04/20] selftests/firmware: " Shuah Khan
2014-12-24 16:27 ` [PATCH v3 05/20] selftests/ftrace: " Shuah Khan
2015-01-02 15:45   ` Steven Rostedt
2015-01-04  5:18     ` Masami Hiramatsu
2015-01-04  5:29     ` Masami Hiramatsu
2015-01-05 18:06     ` Shuah Khan
2014-12-24 16:27 ` [PATCH v3 06/20] selftests/ipc: " Shuah Khan
2014-12-24 16:27 ` [PATCH v3 07/20] selftests/kcmp: " Shuah Khan
2014-12-24 16:27 ` [PATCH v3 08/20] selftests/memfd: " Shuah Khan
2014-12-24 16:27 ` [PATCH v3 09/20] selftests/memory-hotplug: " Shuah Khan
2014-12-24 16:27 ` [PATCH v3 10/20] selftests/mount: " Shuah Khan
2014-12-24 16:27 ` [PATCH v3 11/20] selftests/mqueue: " Shuah Khan
2014-12-24 16:27 ` [PATCH v3 12/20] selftests/net: " Shuah Khan
2014-12-24 16:27 ` [PATCH v3 13/20] selftests/ptrace: " Shuah Khan
2014-12-24 16:27 ` [PATCH v3 14/20] selftests/size: " Shuah Khan
2015-01-01  2:31   ` WIP alternative - was " Tim Bird
2015-01-05 21:28     ` Shuah Khan
2015-01-05 21:56       ` Tim Bird
2015-01-07 23:22         ` Shuah Khan
2014-12-24 16:27 ` [PATCH v3 15/20] selftests/sysctl: " Shuah Khan
2014-12-24 16:27 ` [PATCH v3 16/20] selftests/timers: " Shuah Khan
2014-12-24 16:27 ` [PATCH v3 17/20] selftests/user: " Shuah Khan
2014-12-24 16:27 ` [PATCH v3 18/20] selftests/vm: " Shuah Khan
2014-12-24 16:27 ` [PATCH v3 19/20] selftests: " Shuah Khan
2014-12-24 16:27 ` [PATCH v3 20/20] kbuild: add a new kselftest_install make target to install selftests Shuah Khan
2014-12-29  4:53 ` [PATCH v3 00/20] kselftest install target feature Michael Ellerman
2014-12-29 15:24   ` 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=0a42ee9b3e243c71927d7d71c5cb6e5f5ade510e.1419387513.git.shuahkh@osg.samsung.com \
    --to=shuahkh@osg.samsung.com \
    --cc=akpm@linux-foundation.org \
    --cc=bobby.prani@gmail.com \
    --cc=cov@codeaurora.org \
    --cc=davem@davemloft.net \
    --cc=dh.herrmann@gmail.com \
    --cc=ebiederm@xmission.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=hughd@google.com \
    --cc=josh@joshtriplett.org \
    --cc=keescook@chromium.org \
    --cc=koct9i@gmail.com \
    --cc=linux-api@vger.kernel.org \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=mmarek@suse.cz \
    --cc=mpe@ellerman.id.au \
    --cc=netdev@vger.kernel.org \
    --cc=rostedt@goodmis.org \
    --cc=serge.hallyn@ubuntu.com \
    --cc=tim.bird@sonymobile.com \
    --cc=tranmanphong@gmail.com \
    /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).