1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
2b8410650SShuah KhanCFLAGS += -O3 -Wl,-no-as-needed -Wall
3*7d4e591bSFathi BoudraLDLIBS += -lrt -lpthread -lm
40bc4b0cfSFrederic Weisbecker
5de52133fSJohn Stultz# these are all "safe" tests that don't modify
61fb95c69SGeert Uytterhoeven# system time or require escalated privileges
788baa78dS[email protected]TEST_GEN_PROGS = posix_timers nanosleep nsleep-lat set-timer-lat mqueue-lat \
8a12ab9e1SAlexandre Belloni	     inconsistency-check raw_skew threadtest rtcpie
95744de54SMichael Ellerman
10475c57ccSShuah KhanDESTRUCTIVE_TESTS = alarmtimer-suspend valid-adjtimex adjtick change_skew \
1176739256SMiroslav Lichvar		      skew_consistency clocksource-switch freq-step leap-a-day \
12475c57ccSShuah Khan		      leapcrash set-tai set-2038 set-tz
13475c57ccSShuah Khan
14a12ab9e1SAlexandre BelloniTEST_GEN_PROGS_EXTENDED = $(DESTRUCTIVE_TESTS)
155744de54SMichael Ellerman
165744de54SMichael Ellerman
175744de54SMichael Ellermaninclude ../lib.mk
18de52133fSJohn Stultz
191fb95c69SGeert Uytterhoeven# these tests require escalated privileges
20de52133fSJohn Stultz# and may modify the system time or trigger
21de52133fSJohn Stultz# other behavior like suspend
22b7bb8442SJohn Stultzrun_destructive_tests: run_tests
2377d802e2SShuah Khan	$(call RUN_TESTS, $(DESTRUCTIVE_TESTS))
24