time/kunit: Add .kunitconfig

Add .kunitconfig file to the time directory to enable easy execution of
KUnit tests.

With the .kunitconfig, developers can run the tests:
  $ ./tools/testing/kunit/kunit.py run --kunitconfig kernel/time

Also, add the new .kunitconfig file to the TIMEKEEPING section in the
MAINTAINERS file.

Signed-off-by: Ryota Sakamoto <sakamo.ryota@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260223-add-time-kunitconfig-v1-1-1801eeb33ece@gmail.com
This commit is contained in:
Ryota Sakamoto 2026-02-23 15:23:24 +09:00 committed by Thomas Gleixner
parent ecfa23b486
commit bc47b2e823
2 changed files with 3 additions and 0 deletions

View File

@ -26618,6 +26618,7 @@ F: include/linux/timekeeping.h
F: include/linux/timex.h
F: include/uapi/linux/time.h
F: include/uapi/linux/timex.h
F: kernel/time/.kunitconfig
F: kernel/time/alarmtimer.c
F: kernel/time/clocksource*
F: kernel/time/ntp*

2
kernel/time/.kunitconfig Normal file
View File

@ -0,0 +1,2 @@
CONFIG_KUNIT=y
CONFIG_TIME_KUNIT_TEST=y