File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed
tools/testing/selftests/timers Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -13,20 +13,20 @@ TEST_GEN_PROGS_EXTENDED = alarmtimer-suspend valid-adjtimex adjtick change_skew
13
13
14
14
include ../lib.mk
15
15
16
+ define RUN_DESTRUCTIVE_TESTS
17
+ @for TEST in $(TEST_GEN_PROGS_EXTENDED ) ; do \
18
+ BASENAME_TEST=`basename $$TEST`; \
19
+ if [ ! -x $$BASENAME_TEST ]; then \
20
+ echo "selftests: Warning: file $$BASENAME_TEST is not executable, correct this.";\
21
+ echo "selftests: $$BASENAME_TEST [FAIL]"; \
22
+ else \
23
+ cd `dirname $$TEST`; (./$$BASENAME_TEST && echo "selftests: $$BASENAME_TEST [PASS]") || echo "selftests: $$BASENAME_TEST [FAIL]"; cd -;\
24
+ fi; \
25
+ done;
26
+ endef
27
+
16
28
# these tests require escalated privileges
17
29
# and may modify the system time or trigger
18
30
# other behavior like suspend
19
31
run_destructive_tests : run_tests
20
- ./alarmtimer-suspend
21
- ./valid-adjtimex
22
- ./adjtick
23
- ./change_skew
24
- ./skew_consistency
25
- ./clocksource-switch
26
- ./freq-step
27
- ./leap-a-day -s -i 10
28
- ./leapcrash
29
- ./set-tz
30
- ./set-tai
31
- ./set-2038
32
-
32
+ $(RUN_DESTRUCTIVE_TESTS )
You can’t perform that action at this time.
0 commit comments