All of lore.kernel.org
 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,
	masami.hiramatsu.pt@hitachi.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 v4 02/20] selftests/cpu-hotplug: add install target to enable test install
Date: Tue,  6 Jan 2015 12:43:16 -0700	[thread overview]
Message-ID: <83e299d0172fa4487f8cd6db6c529fbbc8ff2ca5.1420571615.git.shuahkh@osg.samsung.com> (raw)
In-Reply-To: <cover.1420571615.git.shuahkh@osg.samsung.com>
In-Reply-To: <cover.1420571615.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/cpu-hotplug/Makefile               | 14 ++++++++++++--
 .../cpu-hotplug/{on-off-test.sh => cpu-on-off-test.sh}     |  0
 2 files changed, 12 insertions(+), 2 deletions(-)
 rename tools/testing/selftests/cpu-hotplug/{on-off-test.sh => cpu-on-off-test.sh} (100%)

diff --git a/tools/testing/selftests/cpu-hotplug/Makefile b/tools/testing/selftests/cpu-hotplug/Makefile
index e9c28d8..c168033 100644
--- a/tools/testing/selftests/cpu-hotplug/Makefile
+++ b/tools/testing/selftests/cpu-hotplug/Makefile
@@ -1,9 +1,19 @@
+TEST_STR=/bin/bash ./cpu-on-off-test.sh || echo 'cpu-hotplug selftests: [FAIL]'
+
 all:
 
+install:
+ifdef INSTALL_KSFT_PATH
+	install ./cpu-on-off-test.sh $(INSTALL_KSFT_PATH)/cpu-on-off-test.sh
+	@echo "$(TEST_STR)" >> $(KSELFTEST)
+else
+	@echo "Run make kselftest_install in top level source directory"
+endif
+
 run_tests:
-	@/bin/bash ./on-off-test.sh || echo "cpu-hotplug selftests: [FAIL]"
+	@$(TEST_STR)
 
 run_full_test:
-	@/bin/bash ./on-off-test.sh -a || echo "cpu-hotplug selftests: [FAIL]"
+	@/bin/bash ./cpu-on-off-test.sh -a || echo "cpu-hotplug selftests: [FAIL]"
 
 clean:
diff --git a/tools/testing/selftests/cpu-hotplug/on-off-test.sh b/tools/testing/selftests/cpu-hotplug/cpu-on-off-test.sh
similarity index 100%
rename from tools/testing/selftests/cpu-hotplug/on-off-test.sh
rename to tools/testing/selftests/cpu-hotplug/cpu-on-off-test.sh
-- 
2.1.0


  parent reply	other threads:[~2015-01-06 19:51 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-06 19:43 [PATCH v4 00/20] kselftest install target feature Shuah Khan
2015-01-06 19:43 ` [PATCH v4 01/20] selftests/breakpoints: add install target to enable test install Shuah Khan
2015-01-06 19:43 ` Shuah Khan [this message]
2015-01-06 19:43 ` [PATCH v4 03/20] selftests/efivarfs: " Shuah Khan
2015-01-06 19:43 ` [PATCH v4 04/20] selftests/firmware: " Shuah Khan
2015-01-06 19:43 ` [PATCH v4 05/20] selftests/ftrace: " Shuah Khan
2015-01-06 19:43 ` [PATCH v4 06/20] selftests/ipc: " Shuah Khan
2015-01-06 19:43 ` [PATCH v4 07/20] selftests/kcmp: " Shuah Khan
2015-01-06 19:43 ` [PATCH v4 08/20] selftests/memfd: " Shuah Khan
2015-01-06 19:43 ` [PATCH v4 09/20] selftests/memory-hotplug: " Shuah Khan
2015-01-06 19:43   ` Shuah Khan
2015-01-06 19:43 ` [PATCH v4 10/20] selftests/mount: " Shuah Khan
2015-01-06 19:43   ` Shuah Khan
2015-01-06 19:43 ` [PATCH v4 11/20] selftests/mqueue: " Shuah Khan
2015-01-06 19:43 ` [PATCH v4 12/20] selftests/net: " Shuah Khan
2015-01-06 19:43 ` [PATCH v4 13/20] selftests/ptrace: " Shuah Khan
2015-01-06 19:43   ` Shuah Khan
2015-01-06 19:43 ` [PATCH v4 14/20] selftests/size: " Shuah Khan
2015-01-07 23:05   ` Tim Bird
2015-01-07 23:05     ` Tim Bird
2015-01-07 23:05     ` Tim Bird
2015-01-06 19:43 ` [PATCH v4 15/20] selftests/sysctl: " Shuah Khan
2015-01-06 19:43   ` Shuah Khan
2015-01-06 19:43 ` [PATCH v4 16/20] selftests/timers: " Shuah Khan
2015-01-06 19:43 ` [PATCH v4 17/20] selftests/user: " Shuah Khan
2015-01-06 19:43 ` [PATCH v4 18/20] selftests/vm: " Shuah Khan
2015-01-06 19:43 ` [PATCH v4 19/20] selftests: " Shuah Khan
2015-01-06 19:43 ` [PATCH v4 20/20] kbuild: add a new kselftest_install make target to install selftests Shuah Khan
2015-01-14 16:32   ` Shuah Khan
2015-01-15 11:39     ` Michal Marek
2015-01-15 11:39       ` Michal Marek
2015-01-15 22:58     ` Michael Ellerman
2015-01-15 22:58       ` Michael Ellerman
2015-01-15 23:41       ` Shuah Khan
2015-01-15 23:41         ` Shuah Khan
2015-01-16  2:59         ` Michael Ellerman

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=83e299d0172fa4487f8cd6db6c529fbbc8ff2ca5.1420571615.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=masami.hiramatsu.pt@hitachi.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.