^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) # SPDX-License-Identifier: GPL-2.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) CFLAGS += -O3 -Wl,-no-as-needed -Wall
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) LDLIBS += -lrt -lpthread -lm
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) # these are all "safe" tests that don't modify
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) # system time or require escalated privileges
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) TEST_GEN_PROGS = posix_timers nanosleep nsleep-lat set-timer-lat mqueue-lat \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) inconsistency-check raw_skew threadtest rtcpie
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) DESTRUCTIVE_TESTS = alarmtimer-suspend valid-adjtimex adjtick change_skew \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) skew_consistency clocksource-switch freq-step leap-a-day \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) leapcrash set-tai set-2038 set-tz
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) TEST_GEN_PROGS_EXTENDED = $(DESTRUCTIVE_TESTS)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) TEST_FILES := settings
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) include ../lib.mk
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) # these tests require escalated privileges
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) # and may modify the system time or trigger
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) # other behavior like suspend
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) run_destructive_tests: run_tests
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) $(call RUN_TESTS, $(DESTRUCTIVE_TESTS))