Linux Kernel Selftest development
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Modify the watchdog selftest for execution in non-interactive environments
@ 2024-11-19 15:01 Laura Nao
  2024-11-19 15:01 ` [PATCH v2 1/2] selftests/watchdog: add -c option to limit the ping loop Laura Nao
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Laura Nao @ 2024-11-19 15:01 UTC (permalink / raw)
  To: shuah; +Cc: laura.nao, kernel, linux-kernel, linux-kselftest

This series is a follow-up to v1[1], aimed at making the watchdog selftest
more suitable for CI environments. Currently, in non-interactive setups,
the watchdog kselftest can only run with oneshot parameters, preventing the
testing of the WDIOC_KEEPALIVE ioctl since the ping loop is only
interrupted by SIGINT.

The first patch adds a new -c option to limit the number of watchdog pings,
allowing the test to be optionally finite. The second patch updates the
test output to conform to KTAP.

The default behavior remains unchanged: without the -c option, the
keep_alive() loop continues indefinitely until interrupted by SIGINT.

[1] https://lore.kernel.org/all/20240506111359.224579-1-laura.nao@collabora.com/

Changes in v2:
- The keep_alive() loop remains infinite by default
- Introduced keep_alive_res variable to track the WDIOC_KEEPALIVE ioctl return code for user reporting

Laura Nao (2):
  selftests/watchdog: add -c option to limit the ping loop
  selftests/watchdog: convert the test output to KTAP format

 .../selftests/watchdog/watchdog-test.c        | 169 +++++++++++-------
 1 file changed, 103 insertions(+), 66 deletions(-)

-- 
2.30.2


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-12-06  2:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-19 15:01 [PATCH v2 0/2] Modify the watchdog selftest for execution in non-interactive environments Laura Nao
2024-11-19 15:01 ` [PATCH v2 1/2] selftests/watchdog: add -c option to limit the ping loop Laura Nao
2024-12-06  2:48   ` Shuah Khan
2024-11-19 15:01 ` [PATCH v2 2/2] selftests/watchdog: convert the test output to KTAP format Laura Nao
2024-12-05 18:34   ` Shuah Khan
2024-12-05 18:37 ` [PATCH v2 0/2] Modify the watchdog selftest for execution in non-interactive environments Shuah Khan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox