| #
32dcfba6 |
| 11-Mar-2015 |
Michael Ellerman <[email protected]> |
selftests: Add install target
This adds make install support to selftests. The basic usage is:
$ cd tools/testing/selftests $ make install
That installs into tools/testing/selftests/install, which
selftests: Add install target
This adds make install support to selftests. The basic usage is:
$ cd tools/testing/selftests $ make install
That installs into tools/testing/selftests/install, which can then be copied where ever necessary.
The install destination is also configurable using eg:
$ INSTALL_PATH=/mnt/selftests make install
The implementation uses two targets in the child makefiles. The first "install" is expected to install all files into $(INSTALL_PATH).
The second, "emit_tests", is expected to emit the test instructions (ie. bash script) on stdout. Separating this from install means the child makefiles need no knowledge of the location of the test script.
Signed-off-by: Michael Ellerman <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
show more ...
|
| #
5e29a910 |
| 11-Mar-2015 |
Michael Ellerman <[email protected]> |
selftests: Introduce minimal shared logic for running tests
This adds a Make include file which most selftests can then include to get the run_tests logic.
On its own this has the advantage of some
selftests: Introduce minimal shared logic for running tests
This adds a Make include file which most selftests can then include to get the run_tests logic.
On its own this has the advantage of some reduction in repetition, and also means the pass/fail message is defined in fewer places.
However the key advantage is it will allow us to implement install very simply in a subsequent patch.
The default implementation just executes each program in $(TEST_PROGS).
We use a variable to hold the default implementation of $(RUN_TESTS) because that gives us a clean way to override it if necessary, ie. using override. The mount, memory-hotplug and mqueue tests use that to provide a different implementation.
Tests are not run via /bin/bash, so if they are scripts they must be executable, we add a+x to several.
Signed-off-by: Michael Ellerman <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
show more ...
|
|
Revision tags: v4.0-rc2, v4.0-rc1, v3.19, v3.19-rc7, v3.19-rc6, v3.19-rc5, v3.19-rc4, v3.19-rc3, v3.19-rc2, v3.19-rc1 |
|
| #
c9b26b81 |
| 13-Dec-2014 |
David Drysdale <[email protected]> |
syscalls: add selftest for execveat(2)
Signed-off-by: David Drysdale <[email protected]> Cc: Meredydd Luff <[email protected]> Cc: Shuah Khan <[email protected]> Cc: "Eric W. Biederman"
syscalls: add selftest for execveat(2)
Signed-off-by: David Drysdale <[email protected]> Cc: Meredydd Luff <[email protected]> Cc: Shuah Khan <[email protected]> Cc: "Eric W. Biederman" <[email protected]> Cc: Andy Lutomirski <[email protected]> Cc: Alexander Viro <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: "H. Peter Anvin" <[email protected]> Cc: Kees Cook <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: Rich Felker <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Michael Kerrisk <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
show more ...
|