selftests: add quicktest support
authorShuah Khan <shuahkh@osg.samsung.com>
Fri, 19 Jun 2015 19:13:43 +0000 (13:13 -0600)
committerShuah Khan <shuahkh@osg.samsung.com>
Tue, 23 Jun 2015 13:20:16 +0000 (07:20 -0600)
Add quicktest support to enable users to choose to run
tests that complete in a short time. Choosing this option
excludes tests that take longer time complete e.g: timers.
User can specify quicktest option from kernel top level or
selftests directory.

Kernel top level directory:
make quicktest=1 kselftest

tools/testing/selftests directory:
make quicktest=1 run_tests

Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/testing/selftests/Makefile

index 7474b7d..24ae9e8 100644 (file)
@@ -16,11 +16,15 @@ TARGETS += ptrace
 TARGETS += seccomp
 TARGETS += size
 TARGETS += sysctl
+ifneq (1, $(quicktest))
 TARGETS += timers
+endif
 TARGETS += user
 TARGETS += vm
 TARGETS += x86
 #Please keep the TARGETS list alphabetically sorted
+# Run "make quicktest=1 run_tests" or
+# "make quicktest=1 kselftest from top level Makefile
 
 TARGETS_HOTPLUG = cpu-hotplug
 TARGETS_HOTPLUG += memory-hotplug