tools: timer: add rtctest_setdate
authorBenjamin Gaignard <benjamin.gaignard@linaro.org>
Mon, 19 Jun 2017 09:36:20 +0000 (11:36 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Sun, 9 Jul 2017 20:00:54 +0000 (22:00 +0200)
commitc96396f0780e3b217f5194538e6dcd3c22d00122
treed052d5d18e447e3df1bad0fca8d8ec687603bd8d
parentbed8e280476fc8652f4105fe430e10fcf4032392
tools: timer: add rtctest_setdate

This tool allow to set directly the time and date to a RTC device.

Unlike other tools isn't doens't use "struct timeval" or "time_t"
so it is safe for 32bits platforms when testing for y2038/2106 bug.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
tools/testing/selftests/timers/Makefile
tools/testing/selftests/timers/rtctest_setdate.c [new file with mode: 0644]