Browse Source

selftests: move RTC tests to rtc subfolder

Move the RTC tests out of the timers folder as they are mostly unrelated.
Keep rtcpie in timers as it only test hrtimers.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>
Alexandre Belloni 7 years ago
parent
commit
a12ab9e125

+ 1 - 1
MAINTAINERS

@@ -11878,7 +11878,7 @@ F:	include/linux/rtc.h
 F:	include/uapi/linux/rtc.h
 F:	include/uapi/linux/rtc.h
 F:	include/linux/rtc/
 F:	include/linux/rtc/
 F:	include/linux/platform_data/rtc-*
 F:	include/linux/platform_data/rtc-*
-F:	tools/testing/selftests/timers/rtctest.c
+F:	tools/testing/selftests/rtc/
 
 
 REALTEK AUDIO CODECS
 REALTEK AUDIO CODECS
 M:	Bard Liao <bardliao@realtek.com>
 M:	Bard Liao <bardliao@realtek.com>

+ 1 - 0
tools/testing/selftests/Makefile

@@ -28,6 +28,7 @@ TARGETS += powerpc
 TARGETS += proc
 TARGETS += proc
 TARGETS += pstore
 TARGETS += pstore
 TARGETS += ptrace
 TARGETS += ptrace
+TARGETS += rtc
 TARGETS += seccomp
 TARGETS += seccomp
 TARGETS += sigaltstack
 TARGETS += sigaltstack
 TARGETS += size
 TARGETS += size

+ 2 - 0
tools/testing/selftests/rtc/.gitignore

@@ -0,0 +1,2 @@
+rtctest
+setdate

+ 9 - 0
tools/testing/selftests/rtc/Makefile

@@ -0,0 +1,9 @@
+# SPDX-License-Identifier: GPL-2.0
+CFLAGS += -O3 -Wl,-no-as-needed -Wall
+LDFLAGS += -lrt -lpthread -lm
+
+TEST_GEN_PROGS = rtctest
+
+TEST_GEN_PROGS_EXTENDED = setdate
+
+include ../lib.mk

+ 0 - 0
tools/testing/selftests/timers/rtctest.c → tools/testing/selftests/rtc/rtctest.c


+ 0 - 0
tools/testing/selftests/timers/rtctest_setdate.c → tools/testing/selftests/rtc/setdate.c


+ 0 - 2
tools/testing/selftests/timers/.gitignore

@@ -10,7 +10,6 @@ nsleep-lat
 posix_timers
 posix_timers
 raw_skew
 raw_skew
 rtcpie
 rtcpie
-rtctest
 set-2038
 set-2038
 set-tai
 set-tai
 set-timer-lat
 set-timer-lat
@@ -20,4 +19,3 @@ valid-adjtimex
 adjtick
 adjtick
 set-tz
 set-tz
 freq-step
 freq-step
-rtctest_setdate

+ 2 - 2
tools/testing/selftests/timers/Makefile

@@ -5,13 +5,13 @@ LDFLAGS += -lrt -lpthread -lm
 # these are all "safe" tests that don't modify
 # these are all "safe" tests that don't modify
 # system time or require escalated privileges
 # system time or require escalated privileges
 TEST_GEN_PROGS = posix_timers nanosleep nsleep-lat set-timer-lat mqueue-lat \
 TEST_GEN_PROGS = posix_timers nanosleep nsleep-lat set-timer-lat mqueue-lat \
-	     inconsistency-check raw_skew threadtest rtctest rtcpie
+	     inconsistency-check raw_skew threadtest rtcpie
 
 
 DESTRUCTIVE_TESTS = alarmtimer-suspend valid-adjtimex adjtick change_skew \
 DESTRUCTIVE_TESTS = alarmtimer-suspend valid-adjtimex adjtick change_skew \
 		      skew_consistency clocksource-switch freq-step leap-a-day \
 		      skew_consistency clocksource-switch freq-step leap-a-day \
 		      leapcrash set-tai set-2038 set-tz
 		      leapcrash set-tai set-2038 set-tz
 
 
-TEST_GEN_PROGS_EXTENDED = $(DESTRUCTIVE_TESTS) rtctest_setdate
+TEST_GEN_PROGS_EXTENDED = $(DESTRUCTIVE_TESTS)
 
 
 
 
 include ../lib.mk
 include ../lib.mk