time/kunit: add .kunitconfig
PATCH 1/1 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. Since the corresponding KUnit test file (kernel/time/time_test.c) is already managed under this section, it is the logical place to track the test configuration and ensures that get_maintainer.pl routes future modifications correctly.
--- MAINTAINERS | 1 + kernel/time/.kunitconfig | 2 ++ 2 files changed, 3 insertions(+)
MAINTAINERS +1 -0
@@ -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*
kernel/time/.kunitconfig new file +2 -0
@@ -0,0 +1,2 @@ +CONFIG_KUNIT=y +CONFIG_TIME_KUNIT_TEST=y
---
base-commit: 6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
change-id: 20260223-add-time-kunitconfig-2204b9895ed1
Best regards,
Signature · 1 line
Ryota Sakamoto <[email protected]>
[tip: timers/core] time/kunit: Add .kunitconfig
The following commit has been merged into the timers/core branch of tip:
The following commit has been merged into the timers/core branch of tip:
Commit-ID: bc47b2e823914966c15a09422f8fc3aa98d34c1b Gitweb: https://git.kernel.org/tip/bc47b2e823914966c15a09422f8fc3aa98d34c1b Author: Ryota Sakamoto <[email protected]> AuthorDate: Mon, 23 Feb 2026 15:23:24 +09:00 Committer: Thomas Gleixner <[email protected]> CommitterDate: Tue, 24 Feb 2026 08:41:51 +01:00
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.
--- MAINTAINERS | 1 + kernel/time/.kunitconfig | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 kernel/time/.kunitconfig
MAINTAINERS +1 -0
@@ -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*
kernel/time/.kunitconfig new file +2 -0
@@ -0,0 +1,2 @@ +CONFIG_KUNIT=y +CONFIG_TIME_KUNIT_TEST=y