Linux - Enhance watchdog API test coverage


Shuah Khan
 

Hi Paul,

I worked on enhancing the Watchdog API test coverage. This 4 patch
series adds coverage for WDIOC_GETSTATUS and WDIOC_GETTEMP ioctls,
adds coverage for testing return values, improves reporting results.

Please note that this test can be run against softdog driver on systems
that don't have watchdog hardware. Most configs have CONFIG_SOFT_WATCHDOG
enabled as a module.

sudo modprobe softdog

Enhance watchdog test to improve watchdog API coverage of iocls and
return values.

Shuah Khan (4):
selftests/watchdog: change to print reset reason info.
selftests/watchdog: add support for WDIOC_GETSTATUS
selftests/watchdog: print watchdog_info option strings
selftests/watchdog: add test for WDIOC_GETTEMP

.../selftests/watchdog/watchdog-test.c | 104 +++++++++++++++++-
1 file changed, 99 insertions(+), 5 deletions(-)

https://patchwork.kernel.org/project/linux-kselftest/patch/bf788f813682f27dda3f732c05476a4c3d521f89.1666390362.git.skhan@linuxfoundation.org/
https://patchwork.kernel.org/project/linux-kselftest/patch/bf788f813682f27dda3f732c05476a4c3d521f89.1666390362.git.skhan@linuxfoundation.org/
https://patchwork.kernel.org/project/linux-kselftest/patch/bf788f813682f27dda3f732c05476a4c3d521f89.1666390362.git.skhan@linuxfoundation.org/
https://patchwork.kernel.org/project/linux-kselftest/patch/bf788f813682f27dda3f732c05476a4c3d521f89.1666390362.git.skhan@linuxfoundation.org/

thanks,
-- Shuah

Join {devel@lists.elisa.tech to automatically receive all group messages.