| testdata/zoneinfo contains time-zone data files that may be used with CCTZ. |
| Install them in a location referenced by the ${TZDIR} environment variable. |
| Symbolic and hard links have been eliminated for portability. |
| On Linux systems the distribution's versions of these files can probably |
| already be found in the default ${TZDIR} location, /usr/share/zoneinfo. |
| New versions can be generated using the following shell script. |
| trap "rm -fr ${DESTDIR}" 0 2 15 |
| git clone https://github.com/eggert/tz.git |
| install DESTDIR=${DESTDIR} \ |
| PACKRATDATA=backzone PACKRATLIST=zone.tab \ |
| tar --create --dereference --hard-dereference --file tzfile.tar \ |
| tar --create --dereference --hard-dereference --file zoneinfo.tar \ |
| --exclude=zoneinfo/posixrules zoneinfo \ |
| tar --extract --directory src --file ${DESTDIR}/tzfile.tar |
| tar --extract --directory testdata --file ${DESTDIR}/zoneinfo.tar |
| To run the CCTZ tests using the testdata/zoneinfo files, execute: |
| bazel test --test_env=TZDIR=${PWD}/testdata/zoneinfo ... |