linux-kbuild.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 00/20] kselftest install target feature
@ 2015-01-06 19:43 Shuah Khan
  2015-01-06 19:43 ` [PATCH v4 01/20] selftests/breakpoints: add install target to enable test install Shuah Khan
                   ` (19 more replies)
  0 siblings, 20 replies; 27+ messages in thread
From: Shuah Khan @ 2015-01-06 19:43 UTC (permalink / raw)
  To: mmarek, gregkh, akpm, rostedt, mingo, davem, keescook,
	tranmanphong, mpe, cov, dh.herrmann, hughd, bobby.prani,
	serge.hallyn, ebiederm, tim.bird, josh, koct9i,
	masami.hiramatsu.pt
  Cc: Shuah Khan, linux-kbuild, linux-kernel, linux-api, netdev

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. kselftest target
now depends on kselftest_install and runs the generated kselftest
script to reduce duplicate work and for common look and feel when
running tests.

This approach leverages and extends the existing framework that
uses makefile targets to implement run_tests and adds install
target. This will scale well as new tests get added and makes
it easier for test writers to add install target at the same
time new test gets added.

This series is uploaded to the following experimental branch
for anybody that is interested in playing with it:
git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest.git devel

Some benchmark numbers: no relation to this patch series,
I just happened to get some timing numbers, this is nice
and low.
kselftest full run from install dir using kselftest.sh
9.41user 3.55system 0:24.86elapsed

This v4 series fixes echo strings to add quotes around them.
There is no change to the 00/20 kbuild patch in this series.
Other patches in the sries are updated to fix the echo strings.

v3 series: reduced duplicate code to generate script
in indiviual test Makefiles and consolidates support in
selftests main Makefile. In the main Makefile, it does
minimal work to set and export install path.

v2 series: addressed the duplicate code in install and
run_tests targets in individual test Makefiles.
Reference: https://lkml.org/lkml/2014/11/4/707

Shuah Khan (20):
  selftests/breakpoints: add install target to enable test install
  selftests/cpu-hotplug: add install target to enable test install
  selftests/efivarfs: add install target to enable test install
  selftests/firmware: add install target to enable test install
  selftests/ftrace: add install target to enable test install
  selftests/ipc: add install target to enable test install
  selftests/kcmp: add install target to enable test install
  selftests/memfd: add install target to enable test install
  selftests/memory-hotplug: add install target to enable test install
  selftests/mount: add install target to enable test install
  selftests/mqueue: add install target to enable test install
  selftests/net: add install target to enable test install
  selftests/ptrace: add install target to enable test install
  selftests/size: add install target to enable test install
  selftests/sysctl: add install target to enable test install
  selftests/timers: add install target to enable test install
  selftests/user: add install target to enable test install
  selftests/vm: add install target to enable test install
  selftests: add install target to enable test install
  kbuild: add a new kselftest_install make target to install selftests

 Makefile                                           | 14 +++++-
 tools/testing/selftests/Makefile                   | 54 +++++++++++++++++++++-
 tools/testing/selftests/breakpoints/Makefile       | 19 +++++++-
 tools/testing/selftests/cpu-hotplug/Makefile       | 14 +++++-
 .../{on-off-test.sh => cpu-on-off-test.sh}         |  0
 tools/testing/selftests/efivarfs/Makefile          | 16 ++++++-
 tools/testing/selftests/firmware/Makefile          | 43 ++++++++++-------
 tools/testing/selftests/ftrace/Makefile            | 13 +++++-
 tools/testing/selftests/ipc/Makefile               | 19 +++++++-
 tools/testing/selftests/kcmp/Makefile              | 13 +++++-
 tools/testing/selftests/memfd/Makefile             | 17 +++++--
 tools/testing/selftests/memory-hotplug/Makefile    | 14 +++++-
 .../{on-off-test.sh => mem-on-off-test.sh}         |  0
 tools/testing/selftests/mount/Makefile             | 12 ++++-
 tools/testing/selftests/mqueue/Makefile            | 18 ++++++--
 tools/testing/selftests/net/Makefile               | 20 ++++++--
 tools/testing/selftests/ptrace/Makefile            | 16 +++++--
 tools/testing/selftests/size/Makefile              | 12 ++++-
 tools/testing/selftests/sysctl/Makefile            | 17 ++++++-
 tools/testing/selftests/timers/Makefile            | 12 ++++-
 tools/testing/selftests/user/Makefile              | 12 ++++-
 tools/testing/selftests/vm/Makefile                | 11 ++++-
 22 files changed, 317 insertions(+), 49 deletions(-)
 rename tools/testing/selftests/cpu-hotplug/{on-off-test.sh => cpu-on-off-test.sh} (100%)
 rename tools/testing/selftests/memory-hotplug/{on-off-test.sh => mem-on-off-test.sh} (100%)

-- 
2.1.0


^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2015-01-16  2:59 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 ` [PATCH v4 10/20] selftests/mount: " 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 ` [PATCH v4 14/20] selftests/size: " Shuah Khan
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 ` [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 22:58     ` Michael Ellerman
2015-01-15 23:41       ` Shuah Khan
2015-01-16  2:59         ` Michael Ellerman

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).