1 # SPDX-License-Identifier: GPL-2.0 !! 1 CC = $(CROSS_COMPILE)gcc 2 CFLAGS += -O3 -Wl,-no-as-needed -Wall !! 2 BUILD_FLAGS = -DKTEST 3 LDLIBS += -lrt -lpthread -lm !! 3 CFLAGS += -O3 -Wl,-no-as-needed -Wall $(BUILD_FLAGS) >> 4 LDFLAGS += -lrt -lpthread 4 5 5 # these are all "safe" tests that don't modify 6 # these are all "safe" tests that don't modify 6 # system time or require escalated privileges !! 7 # system time or require escalated privledges 7 TEST_GEN_PROGS = posix_timers nanosleep nsleep !! 8 TEST_PROGS = posix_timers nanosleep nsleep-lat set-timer-lat mqueue-lat \ 8 inconsistency-check raw_skew thre !! 9 inconsistency-check raw_skew threadtest rtctest 9 10 10 DESTRUCTIVE_TESTS = alarmtimer-suspend valid-a !! 11 TEST_PROGS_EXTENDED = alarmtimer-suspend valid-adjtimex adjtick change_skew \ 11 skew_consistency clockso !! 12 skew_consistency clocksource-switch leap-a-day \ 12 leapcrash set-tai set-20 !! 13 leapcrash set-tai set-2038 13 14 14 TEST_GEN_PROGS_EXTENDED = $(DESTRUCTIVE_TESTS) !! 15 bins = $(TEST_PROGS) $(TEST_PROGS_EXTENDED) 15 16 16 TEST_FILES := settings !! 17 all: ${bins} 17 18 18 include ../lib.mk 19 include ../lib.mk 19 20 20 # these tests require escalated privileges !! 21 # these tests require escalated privledges 21 # and may modify the system time or trigger 22 # and may modify the system time or trigger 22 # other behavior like suspend 23 # other behavior like suspend 23 run_destructive_tests: run_tests 24 run_destructive_tests: run_tests 24 $(call RUN_TESTS, $(DESTRUCTIVE_TESTS) !! 25 ./alarmtimer-suspend >> 26 ./valid-adjtimex >> 27 ./adjtick >> 28 ./change_skew >> 29 ./skew_consistency >> 30 ./clocksource-switch >> 31 ./leap-a-day -s -i 10 >> 32 ./leapcrash >> 33 ./set-tai >> 34 ./set-2038 >> 35 >> 36 clean: >> 37 rm -f ${bins}
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.