mirror of
https://github.com/HowardHinnant/date.git
synced 2024-12-27 08:31:03 +08:00
Clean up tz_test README
This commit is contained in:
parent
fffa52ac0e
commit
c311db2f1a
@ -1,21 +1,15 @@
|
|||||||
To test: * Install tz.cpp by downloading the IANA timezone database
|
# TZ Test
|
||||||
at: http://www.iana.org/time-zones You only need the data, not the
|
|
||||||
code.
|
|
||||||
|
|
||||||
* Change the string `install` in tz.cpp to point to your downloaded
|
## How to Test
|
||||||
IANA database.
|
|
||||||
|
|
||||||
|
* Install tz.cpp by downloading the IANA timezone database at: http://www.iana.org/time-zones You only need the data, not the code.
|
||||||
|
* Change the string `install` in tz.cpp to point to your downloaded IANA database.
|
||||||
* Compile validate.cpp along with tz.cpp.
|
* Compile validate.cpp along with tz.cpp.
|
||||||
|
|
||||||
* Run the binary and direct the terminal output to a temporary file.
|
* Run the binary and direct the terminal output to a temporary file.
|
||||||
|
* Unzip the tzdata file that has the version corresponding to the IANA database you downloaded (e.g. tzdata2015f.txt.zip).
|
||||||
|
* Compare the unzipped txt file with the output of your validate test program. If they are identical, the test passes, else it fails.
|
||||||
|
|
||||||
* Unzip the tzdata file that has the version corresponding to the IANA
|
## Miscellaneous
|
||||||
database you downloaded (e.g. tzdata2015f.txt.zip).
|
|
||||||
|
|
||||||
* Compare the unzipped txt file with the output of your validate test
|
|
||||||
program. If they are identical, the test passes, else it fails.
|
|
||||||
|
|
||||||
Miscellaneous:
|
|
||||||
|
|
||||||
You can also compare one version of the tzdatabase with another using
|
You can also compare one version of the tzdatabase with another using
|
||||||
these uncompressed text files. The text files contain for each
|
these uncompressed text files. The text files contain for each
|
||||||
|
Loading…
x
Reference in New Issue
Block a user