dcf77pi icon indicating copy to clipboard operation
dcf77pi copied to clipboard

Unit tests

Open rene0 opened this issue 8 years ago • 0 comments

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
  • [x] bits1to14.h
  • [x] calendar.h
  • [x] decode_alarm.h - not done, no proper specifications
  • [ ] decode_time.h (split up?)
  • [ ] input.h (except for get_bit_live() )
  • [x] mainloop.h - we have dcf77pi[-analyze].c and readpin.c for this
  • [ ] setclock.h

rene0 avatar Nov 18 '16 17:11 rene0