linux/tools/testing/selftests
Michael Ellerman 5e29a9105b 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 <mpe@ellerman.id.au>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
2015-03-13 15:13:40 -06:00
..
breakpoints selftests: Introduce minimal shared logic for running tests 2015-03-13 15:13:40 -06:00
cpu-hotplug selftests: Introduce minimal shared logic for running tests 2015-03-13 15:13:40 -06:00
efivarfs selftests: Introduce minimal shared logic for running tests 2015-03-13 15:13:40 -06:00
exec selftests: Introduce minimal shared logic for running tests 2015-03-13 15:13:40 -06:00
firmware selftests: Introduce minimal shared logic for running tests 2015-03-13 15:13:40 -06:00
ftrace selftests: Introduce minimal shared logic for running tests 2015-03-13 15:13:40 -06:00
ipc selftests: Introduce minimal shared logic for running tests 2015-03-13 15:13:40 -06:00
kcmp selftests: Introduce minimal shared logic for running tests 2015-03-13 15:13:40 -06:00
memfd selftests: Introduce minimal shared logic for running tests 2015-03-13 15:13:40 -06:00
memory-hotplug selftests: Introduce minimal shared logic for running tests 2015-03-13 15:13:40 -06:00
mount selftests: Introduce minimal shared logic for running tests 2015-03-13 15:13:40 -06:00
mqueue selftests: Introduce minimal shared logic for running tests 2015-03-13 15:13:40 -06:00
net selftests: Introduce minimal shared logic for running tests 2015-03-13 15:13:40 -06:00
powerpc selftests/powerpc: Add memcmp testcase 2015-01-23 16:44:23 +11:00
ptrace selftests: Introduce minimal shared logic for running tests 2015-03-13 15:13:40 -06:00
rcutorture Merge branches 'doc.2015.01.07a', 'fixes.2015.01.15a', 'preempt.2015.01.06a', 'srcu.2015.01.06a', 'stall.2015.01.16a' and 'torture.2015.01.11a' into HEAD 2015-01-15 23:34:34 -08:00
size selftests: Introduce minimal shared logic for running tests 2015-03-13 15:13:40 -06:00
sysctl selftests: Introduce minimal shared logic for running tests 2015-03-13 15:13:40 -06:00
timers selftests/timers: Add set-2038 test from timetest suite 2015-03-12 13:22:16 -06:00
user selftests: Introduce minimal shared logic for running tests 2015-03-13 15:13:40 -06:00
vm selftests: Introduce minimal shared logic for running tests 2015-03-13 15:13:40 -06:00
kselftest.h selftests: add kselftest framework for uniform test reporting 2014-11-17 10:38:56 -07:00
lib.mk selftests: Introduce minimal shared logic for running tests 2015-03-13 15:13:40 -06:00
Makefile tools/testing/selftests/Makefile: alphasort the TARGETS list 2014-12-18 19:08:11 -08:00