RIOT icon indicating copy to clipboard operation
RIOT copied to clipboard

tests/periph_rtc: Test fails on native.

Open A-Paul opened this issue 10 years ago • 6 comments

While testing "02 Tests - Task 01" tests/periph_rtc following showed up.

RIOT RTC low-level driver test This test will display 'Alarm' in 10 seconds Initializing the RTC driver Native RTC initialized. Setting clock to 2011-12-13 14:15:15 /home/aar680/git/RIOT/tests/periph_rtc/bin/native/periph_rtc.elf: rtc_set_time: not implemented Clock set to 2016-01-07 15:50:13 Setting alarm to 2016-01-07 15:50:23 /home/aar680/git/RIOT/tests/periph_rtc/bin/native/periph_rtc.elf: rtc_set_alarm: not implemented Alarm set to 2016-01-07 15:50:23 The alarm should trigger every 10 seconds for 4 times.

Then nothing happens...

Seemingly rtc_set_time and rtc_set_alarm are not implemented for native on purpose. It might be sensible -and less time consuming- to blacklist this test for native.

Would BOARD_BLACKLIST := native in Makefile be the intended measure?

A-Paul avatar Jan 07 '16 15:01 A-Paul

If the test does not work for native because of missing functionalities, then I would strongly vote for blacklisting it for this test.

cgundogan avatar Jan 08 '16 13:01 cgundogan

Or remove the feature from native? It's incomplete.

kaspar030 avatar Jan 08 '16 13:01 kaspar030

Maybe https://github.com/RIOT-OS/RIOT/pull/4563 can be used to implement RTC alarm.

OlegHahm avatar Jan 08 '16 14:01 OlegHahm

I would rather vote for completing the implementation then removing it, but then I have no time to do this right now.

LudwigKnuepfer avatar Jan 08 '16 21:01 LudwigKnuepfer

Right now I have this output on OS X:

RIOT native interrupts/signals initialized.
Native RTC initialized.
LED_RED_OFF
LED_GREEN_ON
RIOT native board initialized.
RIOT native hardware initialization complete.

main(): This is RIOT! (Version: 2018.07-devel-945-gfbea4-snake.local)

RIOT RTC low-level driver test
This test will display 'Alarm!' every 2 seconds for 4 times
  Setting clock to   2011-12-13 14:15:15
/Users/facosta/git/RIOT-OS/RIOT/tests/periph_rtc/bin/native/tests_periph_rtc.elf: rtc_set_time: not implemented
Clock value is now   2018-04-16 18:01:53
  Setting alarm to   2018-04-16 18:01:55
/Users/facosta/git/RIOT-OS/RIOT/tests/periph_rtc/bin/native/tests_periph_rtc.elf: rtc_set_alarm: not implemented
   Alarm is set to   2018-04-16 18:01:55

Should we consider this is enough to close this issue? It's being two years is here and no one implemented the feature, thus I'd say it's not needed, and at the same time it doesn't hurt to have it compiled for native.

kYc0o avatar Apr 16 '18 16:04 kYc0o

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want me to ignore this issue, please mark it with the "State: don't stale" label. Thank you for your contributions.

stale[bot] avatar Aug 10 '19 08:08 stale[bot]