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 13/20] selftests/ptrace: add install target to enable test install Date: Tue, 6 Jan 2015 12:43:27 -0700 [thread overview] Message-ID: <e6e0602db98043998a0059355e4500d0c559953a.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/ptrace/Makefile | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/ptrace/Makefile b/tools/testing/selftests/ptrace/Makefile index 47ae2d3..6fc352c 100644 --- a/tools/testing/selftests/ptrace/Makefile +++ b/tools/testing/selftests/ptrace/Makefile @@ -1,10 +1,20 @@ CFLAGS += -iquote../../../../include/uapi -Wall -peeksiginfo: peeksiginfo.c -all: peeksiginfo +TEST_STR = ./peeksiginfo || echo 'peeksiginfo selftests: [FAIL]' + +all: + gcc peeksiginfo.c -o peeksiginfo + +install: +ifdef INSTALL_KSFT_PATH + install ./peeksiginfo $(INSTALL_KSFT_PATH) + @echo "$(TEST_STR)" >> $(KSELFTEST) +else + @echo "Run make kselftest_install in top level source directory" +endif clean: rm -f peeksiginfo run_tests: all - @./peeksiginfo || echo "peeksiginfo selftests: [FAIL]" + @$(TEST_STR) -- 2.1.0
WARNING: multiple messages have this Message-ID (diff)
From: Shuah Khan <shuahkh-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org> To: mmarek-AlSwsSmVLrQ@public.gmane.org, gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org, akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org, rostedt-nx8X9YLhiw1AfugRpC6u6w@public.gmane.org, mingo-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org, keescook-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org, tranmanphong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, mpe-Gsx/Oe8HsFggBc27wqDAHg@public.gmane.org, cov-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org, dh.herrmann-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, hughd-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org, bobby.prani-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, serge.hallyn-GeWIH/nMZzLQT0dZR+AlfA@public.gmane.org, ebiederm-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org, tim.bird-/MT0OVThwyLZJqsBc5GL+g@public.gmane.org, josh-iaAMLnmF4UmaiuxdJuQwMA@public.gmane.org, koct9i-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, masami.hiramatsu.pt-FCd8Q96Dh0JBDgjK7y7TUQ@public.gmane.org Cc: Shuah Khan <shuahkh-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org>, linux-kbuild-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Subject: [PATCH v4 13/20] selftests/ptrace: add install target to enable test install Date: Tue, 6 Jan 2015 12:43:27 -0700 [thread overview] Message-ID: <e6e0602db98043998a0059355e4500d0c559953a.1420571615.git.shuahkh@osg.samsung.com> (raw) In-Reply-To: <cover.1420571615.git.shuahkh-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org> In-Reply-To: <cover.1420571615.git.shuahkh-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org> 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-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org> --- tools/testing/selftests/ptrace/Makefile | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/ptrace/Makefile b/tools/testing/selftests/ptrace/Makefile index 47ae2d3..6fc352c 100644 --- a/tools/testing/selftests/ptrace/Makefile +++ b/tools/testing/selftests/ptrace/Makefile @@ -1,10 +1,20 @@ CFLAGS += -iquote../../../../include/uapi -Wall -peeksiginfo: peeksiginfo.c -all: peeksiginfo +TEST_STR = ./peeksiginfo || echo 'peeksiginfo selftests: [FAIL]' + +all: + gcc peeksiginfo.c -o peeksiginfo + +install: +ifdef INSTALL_KSFT_PATH + install ./peeksiginfo $(INSTALL_KSFT_PATH) + @echo "$(TEST_STR)" >> $(KSELFTEST) +else + @echo "Run make kselftest_install in top level source directory" +endif clean: rm -f peeksiginfo run_tests: all - @./peeksiginfo || echo "peeksiginfo selftests: [FAIL]" + @$(TEST_STR) -- 2.1.0
next prev parent reply other threads:[~2015-01-06 19:53 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 ` [PATCH v4 02/20] selftests/cpu-hotplug: " Shuah Khan 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 ` Shuah Khan [this message] 2015-01-06 19:43 ` [PATCH v4 13/20] selftests/ptrace: " 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=e6e0602db98043998a0059355e4500d0c559953a.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: linkBe 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.