Skip to content
This repository has been archived by the owner on Feb 25, 2024. It is now read-only.

Unit tests #3

Open
4 of 8 tasks
rene0 opened this issue Nov 18, 2016 · 0 comments
Open
4 of 8 tasks

Unit tests #3

rene0 opened this issue Nov 18, 2016 · 0 comments
Assignees

Comments

@rene0
Copy link
Owner

rene0 commented Nov 18, 2016

Add unit tests for all functions in libdcf77. Perhaps if a test is difficult to write/run, the corresponding function needs to be refactored.

Testing the GPIO pin reading needs some live tests to read a 0 pulse and a 1 pulse for example. This part is probably platform specific (which platforms to keep?)

  • test for DST/leap announcements
  • bits1to14.h
  • calendar.h
  • decode_alarm.h - not done, no proper specifications
  • decode_time.h (split up?)
  • input.h (except for get_bit_live() )
  • mainloop.h - we have dcf77pi[-analyze].c and readpin.c for this
  • setclock.h
@rene0 rene0 self-assigned this Nov 18, 2016
This was referenced Nov 18, 2016
rene0 pushed a commit that referenced this issue Dec 26, 2016
rene0 pushed a commit that referenced this issue Dec 5, 2017
The all target of tests/Makefile now runs testcentury.

More tests to be added.

Issue #3
rene0 pushed a commit that referenced this issue Dec 6, 2017
The all target of tests/Makefile now runs testcentury.

More tests to be added.

Issue #3
rene0 pushed a commit that referenced this issue Dec 13, 2017
rene0 pushed a commit that referenced this issue Dec 24, 2017
rene0 pushed a commit that referenced this issue Dec 24, 2017
rene0 pushed a commit that referenced this issue Dec 26, 2017
rene0 pushed a commit that referenced this issue Dec 27, 2017
rene0 pushed a commit that referenced this issue Dec 27, 2017
rene0 pushed a commit that referenced this issue Mar 18, 2018
It was mostly used to get the day-of-year and day-of-week values but
we can determine those ourselves. It also gave "interesting" results on
FreeBSD/i386 (but amd64 and armv6 were OK).

Issue #3
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant