2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-28 15:13:55 +08:00
linux-next/tools/testing/selftests/timers/Makefile
John Stultz de52133f18 selftests/timers: Add adjtimex validation test from timetest suite
This adds a adjtimex validation test which checks the behavior
for a set of valida and invalid inputs. So far this only tests
ADJ_FREQUENCY, but hopefully will grow.

Cc: Shuah Khan <shuahkh@osg.samsung.com>
Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Tested-by: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
2015-03-12 13:22:14 -06:00

30 lines
693 B
Makefile

CC = $(CROSS_COMPILE)gcc
BUILD_FLAGS = -DKTEST
CFLAGS += -O3 -Wl,-no-as-needed -Wall $(BUILD_FLAGS)
LDFLAGS += -lrt -lpthread
bins = posix_timers nanosleep inconsistency-check nsleep-lat raw_skew \
set-timer-lat threadtest mqueue-lat valid-adjtimex
all: ${bins}
# these are all "safe" tests that don't modify
# system time or require escalated privledges
run_tests: all
./posix_timers
./nanosleep
./nsleep-lat
./set-timer-lat
./mqueue-lat
./inconsistency-check
./raw_skew
./threadtest -t 30 -n 8
# these tests require escalated privledges
# and may modify the system time or trigger
# other behavior like suspend
run_destructive_tests: all
./valid-adjtimex
clean:
rm -f ${bins}