selftests: rtc: rework rtctest
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 19 Apr 2018 12:50:30 +0000 (14:50 +0200)
committerShuah Khan (Samsung OSG) <shuah@kernel.org>
Wed, 30 May 2018 21:21:51 +0000 (15:21 -0600)
commitd8da8665e8e34c14f9b20fe3f21dff29b24cbf02
treef6b1a3d07f6460a36ed9f8ca04ba2069f59ba6ee
parenta12ab9e125f184454fc484483fe2029962fe6a34
selftests: rtc: rework rtctest

Rework rtctest to use the test harness to better handle skipping tests
(e.g. when alarms are not available). Also, it now handles timeout so it
will not block expecting an alarm that never comes.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>
tools/testing/selftests/rtc/rtctest.c