18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ciCFLAGS += -O3 -Wl,-no-as-needed -Wall 38c2ecf20Sopenharmony_ciLDLIBS += -lrt -lpthread -lm 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci# these are all "safe" tests that don't modify 68c2ecf20Sopenharmony_ci# system time or require escalated privileges 78c2ecf20Sopenharmony_ciTEST_GEN_PROGS = posix_timers nanosleep nsleep-lat set-timer-lat mqueue-lat \ 88c2ecf20Sopenharmony_ci inconsistency-check raw_skew threadtest rtcpie 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ciDESTRUCTIVE_TESTS = alarmtimer-suspend valid-adjtimex adjtick change_skew \ 118c2ecf20Sopenharmony_ci skew_consistency clocksource-switch freq-step leap-a-day \ 128c2ecf20Sopenharmony_ci leapcrash set-tai set-2038 set-tz 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ciTEST_GEN_PROGS_EXTENDED = $(DESTRUCTIVE_TESTS) 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ciTEST_FILES := settings 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ciinclude ../lib.mk 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci# these tests require escalated privileges 218c2ecf20Sopenharmony_ci# and may modify the system time or trigger 228c2ecf20Sopenharmony_ci# other behavior like suspend 238c2ecf20Sopenharmony_cirun_destructive_tests: run_tests 248c2ecf20Sopenharmony_ci $(call RUN_TESTS, $(DESTRUCTIVE_TESTS)) 25