All of lore.kernel.org
 help / color / mirror / Atom feed
From: Shuah Khan <shuahkh@osg.samsung.com>
To: gregkh@linuxfoundation.org, akpm@linux-foundation.org,
	mmarek@suse.cz, davem@davemloft.net, keescook@chromium.org,
	tranmanphong@gmail.com, dh.herrmann@gmail.com, hughd@google.com,
	bobby.prani@gmail.com, ebiederm@xmission.com,
	serge.hallyn@ubuntu.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 00/20] kselftest install target feature
Date: Tue,  4 Nov 2014 10:10:56 -0700	[thread overview]
Message-ID: <cover.1415117102.git.shuahkh@osg.samsung.com> (raw)

This patch series adds a new kselftest_install make target
to enable selftest install. When make kselftest_install is
run, selftests are installed on the system. A new install
target is added to selftests Makefile which will install
targets for the tests that are specified in INSTALL_TARGETS.
During install, a script is generated to run tests that are
installed. This script will be installed in the selftest install
directory. Individual test Makefiles are changed to add to the
script. This will allow new tests to add install and run test
commands to the generated kselftest script.

Approach:

make kselftest_target:
-- exports kselftest INSTALL_KSFT_PATH
   default $(INSTALL_MOD_PATH)/lib/kselftest/$(KERNELRELEASE)
-- exports path for ksefltest.sh
-- runs selftests make install target:

selftests make install target
-- creates kselftest.sh script in install install dir
-- runs install targets for all INSTALL_TARGETS

Individual test make install targets:
-- install test programs and/or scripts in install dir
-- append to the ksefltest.sh file to add commands to run test

Shuah Khan (20):
  selftests/user: move test out of Makefile into a shell script
  selftests/net: move test out of Makefile into a shell script
  kbuild: kselftest_install - add a new make target to install selftests
  selftests: add install target to enable installing selftests
  selftests/breakpoints: add install target to enable installing test
  selftests/cpu-hotplug: add install target to enable installing test
  selftests/efivarfs: add install target to enable installing test
  selftests/firmware: add install target to enable installing test
  selftests/ipc: add install target to enable installing test
  selftests/kcmp: add install target to enable installing test
  selftests/memfd: add install target to enable installing test
  selftests/memory-hotplug: add install target to enable installing test
  selftests/mount: add install target to enable installing test
  selftests/mqueue: add install target to enable installing test
  selftests/net: add install target to enable installing test
  selftests/ptrace: add install target to enable installing test
  selftests/sysctl: add install target to enable installing test
  selftests/timers: add install target to enable installing test
  selftests/vm: add install target to enable installing test
  selftests/user: add install target to enable installing test

 Makefile                                        | 17 +++++++++++++++++
 tools/testing/selftests/Makefile                | 14 ++++++++++++++
 tools/testing/selftests/breakpoints/Makefile    | 12 ++++++++++++
 tools/testing/selftests/cpu-hotplug/Makefile    |  9 +++++++++
 tools/testing/selftests/efivarfs/Makefile       | 13 ++++++++++++-
 tools/testing/selftests/firmware/Makefile       | 20 ++++++++++++++++++++
 tools/testing/selftests/ipc/Makefile            | 11 +++++++++++
 tools/testing/selftests/kcmp/Makefile           | 12 ++++++++++++
 tools/testing/selftests/memfd/Makefile          | 10 ++++++++++
 tools/testing/selftests/memory-hotplug/Makefile |  9 +++++++++
 tools/testing/selftests/mount/Makefile          |  7 +++++++
 tools/testing/selftests/mqueue/Makefile         |  8 ++++++++
 tools/testing/selftests/net/Makefile            | 18 +++++++++++-------
 tools/testing/selftests/net/test_bpf.sh         | 10 ++++++++++
 tools/testing/selftests/ptrace/Makefile         | 11 +++++++++--
 tools/testing/selftests/sysctl/Makefile         | 10 ++++++++++
 tools/testing/selftests/timers/Makefile         |  7 +++++++
 tools/testing/selftests/user/Makefile           | 15 ++++++++-------
 tools/testing/selftests/user/test_user_copy.sh  | 10 ++++++++++
 tools/testing/selftests/vm/Makefile             |  7 +++++++
 20 files changed, 213 insertions(+), 17 deletions(-)
 create mode 100755 tools/testing/selftests/net/test_bpf.sh
 create mode 100755 tools/testing/selftests/user/test_user_copy.sh

-- 
1.9.1


             reply	other threads:[~2014-11-04 17:24 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-04 17:10 Shuah Khan [this message]
2014-11-04 17:10 ` [PATCH 01/20] selftests/user: move test out of Makefile into a shell script Shuah Khan
2014-11-04 17:10 ` [PATCH 02/20] selftests/net: " Shuah Khan
2014-11-04 19:53   ` David Miller
2014-11-05 15:28     ` Shuah Khan
2014-11-04 17:10 ` [PATCH 03/20] kbuild: kselftest_install - add a new make target to install selftests Shuah Khan
2014-11-04 17:11 ` [PATCH 04/20] selftests: add install target to enable installing selftests Shuah Khan
2014-11-04 17:11 ` [PATCH 05/20] selftests/breakpoints: add install target to enable installing test Shuah Khan
2014-11-04 17:11 ` [PATCH 06/20] selftests/cpu-hotplug: " Shuah Khan
2014-11-04 17:11 ` [PATCH 07/20] selftests/efivarfs: " Shuah Khan
2014-11-04 17:11 ` [PATCH 08/20] selftests/firmware: " Shuah Khan
2014-11-04 17:11   ` Shuah Khan
2014-11-04 17:11 ` [PATCH 09/20] selftests/ipc: " Shuah Khan
2014-11-04 17:11 ` [PATCH 10/20] selftests/kcmp: " Shuah Khan
2014-11-04 17:11 ` [PATCH 11/20] selftests/memfd: " Shuah Khan
2014-11-04 17:11   ` Shuah Khan
2014-11-04 17:11 ` [PATCH 12/20] selftests/memory-hotplug: " Shuah Khan
2014-11-04 17:11 ` [PATCH 13/20] selftests/mount: " Shuah Khan
2014-11-04 17:11 ` [PATCH 14/20] selftests/mqueue: " Shuah Khan
2014-11-04 17:11   ` Shuah Khan
2014-11-04 17:11 ` [PATCH 15/20] selftests/net: " Shuah Khan
2014-11-04 17:11 ` [PATCH 16/20] selftests/ptrace: " Shuah Khan
2014-11-04 17:11 ` [PATCH 17/20] selftests/sysctl: " Shuah Khan
2014-11-04 17:11 ` [PATCH 18/20] selftests/timers: " Shuah Khan
2014-11-04 17:11 ` [PATCH 19/20] selftests/vm: " Shuah Khan
2014-11-04 17:11 ` [PATCH 20/20] selftests/user: " Shuah Khan
2014-11-04 19:22 ` [PATCH 00/20] kselftest install target feature Kees Cook
2014-11-04 19:22   ` Kees Cook
2014-11-04 23:45   ` Shuah Khan
2014-11-05 23:23     ` Kees Cook

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=cover.1415117102.git.shuahkh@osg.samsung.com \
    --to=shuahkh@osg.samsung.com \
    --cc=akpm@linux-foundation.org \
    --cc=bobby.prani@gmail.com \
    --cc=davem@davemloft.net \
    --cc=dh.herrmann@gmail.com \
    --cc=ebiederm@xmission.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=hughd@google.com \
    --cc=keescook@chromium.org \
    --cc=linux-api@vger.kernel.org \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mmarek@suse.cz \
    --cc=netdev@vger.kernel.org \
    --cc=serge.hallyn@ubuntu.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.