path: root/tools/testing/selftests/timers
diff options
authorShuah Khan <shuahkh@osg.samsung.com>2017-08-23 14:42:44 -0600
committerShuah Khan <shuahkh@osg.samsung.com>2017-08-25 10:15:24 -0600
commit77d802e237c89a8b3d2879510c68625fda8ac0df (patch)
tree5bf0fa9f6a22a7a7aa80a4c98078134d4be29fe2 /tools/testing/selftests/timers
parentselftests: lib.mk: suppress "cd" output from run_tests target (diff)
selftests: change lib.mk RUN_TESTS to take test list as an argument
Change lib.mk RUN_TESTS to take test list as an argument. This will allow it to be called from individual test makefiles to run additional tests that aren't suitable for a default kselftest run. As an example, timers test includes destructive tests that aren't included in the common run_tests target. Change times/Makefile to use RUN_TESTS call with destructive test list as an argument instead of using its own RUN_TESTS target. Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'tools/testing/selftests/timers')
1 files changed, 1 insertions, 13 deletions
diff --git a/tools/testing/selftests/timers/Makefile b/tools/testing/selftests/timers/Makefile
index c3c55e221c75..ae4593115408 100644
--- a/tools/testing/selftests/timers/Makefile
+++ b/tools/testing/selftests/timers/Makefile
@@ -15,20 +15,8 @@ TEST_GEN_PROGS_EXTENDED = $(DESTRUCTIVE_TESTS) rtctest_setdate
include ../lib.mk
- @for TEST in $(DESTRUCTIVE_TESTS); do \
- BASENAME_TEST=`basename $$TEST`; \
- if [ ! -x $$BASENAME_TEST ]; then \
- echo "selftests: Warning: file $$BASENAME_TEST is not executable, correct this.";\
- echo "selftests: $$BASENAME_TEST [FAIL]"; \
- else \
- cd `dirname $$TEST`; (./$$BASENAME_TEST && echo "selftests: $$BASENAME_TEST [PASS]") || echo "selftests: $$BASENAME_TEST [FAIL]"; cd -;\
- fi; \
- done;
# these tests require escalated privileges
# and may modify the system time or trigger
# other behavior like suspend
run_destructive_tests: run_tests