Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

ExtendedPythonTest

This unit test compares the DST transitions calculated by the ExtendedZoneProcessor class with the validation_data.cpp file generated by the Python ../../tools/compare_pytz/test_data_generator.py module which uses the pytz library.

The Python tool generates about 200,000 data points spanning the year 2000 to 2038. It is too large to run on any Arduino board that I am aware of, including the ESP32.

The unit test does run on a Linux machine using the UnixHostDuino adapter layer. Assuming that you have g++ and make installed, just type:

$ make

$ make runtests
TestRunner started on 348 test(s).
Test ExtendedTransitionTest_Africa_Abidjan passed.
...
Test ExtendedTransitionTest_Pacific_Wallis passed.
TestRunner duration: 0.113 seconds.
TestRunner summary: 348 passed, 0 failed, 0 skipped, 0 timed out, out of 348
test(s).

$ make clean