162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ciCFLAGS += -O3 -Wl,-no-as-needed -Wall
362306a36Sopenharmony_ciLDLIBS += -lrt -lpthread -lm
462306a36Sopenharmony_ci
562306a36Sopenharmony_ci# these are all "safe" tests that don't modify
662306a36Sopenharmony_ci# system time or require escalated privileges
762306a36Sopenharmony_ciTEST_GEN_PROGS = posix_timers nanosleep nsleep-lat set-timer-lat mqueue-lat \
862306a36Sopenharmony_ci	     inconsistency-check raw_skew threadtest rtcpie
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ciDESTRUCTIVE_TESTS = alarmtimer-suspend valid-adjtimex adjtick change_skew \
1162306a36Sopenharmony_ci		      skew_consistency clocksource-switch freq-step leap-a-day \
1262306a36Sopenharmony_ci		      leapcrash set-tai set-2038 set-tz
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_ciTEST_GEN_PROGS_EXTENDED = $(DESTRUCTIVE_TESTS)
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_ciTEST_FILES := settings
1762306a36Sopenharmony_ci
1862306a36Sopenharmony_ciinclude ../lib.mk
1962306a36Sopenharmony_ci
2062306a36Sopenharmony_ci# these tests require escalated privileges
2162306a36Sopenharmony_ci# and may modify the system time or trigger
2262306a36Sopenharmony_ci# other behavior like suspend
2362306a36Sopenharmony_cirun_destructive_tests: run_tests
2462306a36Sopenharmony_ci	$(call RUN_TESTS, $(DESTRUCTIVE_TESTS))
25