chiark / gitweb /
libtests: Include the Unicode test files directly.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 2 Dec 2017 21:44:38 +0000 (21:44 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 2 Dec 2017 22:18:21 +0000 (22:18 +0000)
commit34fb8c61ac9d00d64a82facbfc16113cc5b6cfd1
tree9c651302d45b16b8ad6313afb6c8e2d307dc9e4b
parentd49821979b2d1d7fde5ce77d6d5178cdab5bd09d
libtests: Include the Unicode test files directly.

Rather than fetch the files using `wget' at test time, fire up `gzip' to
decompress them from local copies.  The files compress really rather
well, so this is an overall saving in disk space relative to the
previous version -- especially since we now share the test files among
all build trees rather than having a separate copy in each.  On the
other hand, they're moderately large things to have in the source
distribution, though small compared to the `images/' tree.

Of course, the main reason for doing this is to completely eliminate the
need for external network connectivity during a build.

The copyright notice, at https://www.unicode.org/copyright.html, appears
to be compatible with the GPL (which is good, because I think we'd have
had a problem using these files even if we didn't distribute them).
I've included the copyright notice as COPYING.unicode-tests, in order to
comply with requirement (a).

Should it be necessary to update the copies of the test files, there's a
(slightly hairy) make target `update-unicode-tests' which can be invoked
by hand to do this.
README
libtests/COPYING.unicode-tests [new file with mode: 0644]
libtests/GraphemeBreakTest.txt.gz [new file with mode: 0644]
libtests/Makefile.am
libtests/NormalizationTest.txt.gz [new file with mode: 0644]
libtests/WordBreakTest.txt.gz [new file with mode: 0644]
libtests/t-unicode.c