diff options
author | Steven G. Johnson <stevenj@alum.mit.edu> | 2014-12-07 22:25:31 -0500 |
---|---|---|
committer | Steven G. Johnson <stevenj@mit.edu> | 2014-12-12 16:29:29 -0500 |
commit | 539d2cc2024f494b1e3292d4730bdc96390e1361 (patch) | |
tree | 84876217e3476899f6ea2d2e5646c2e845c6843a /Makefile | |
parent | 1b3992ebe5c587446aaa962a314ef9244d86fb0d (diff) | |
download | libutf8proc-539d2cc2024f494b1e3292d4730bdc96390e1361.tar.gz libutf8proc-539d2cc2024f494b1e3292d4730bdc96390e1361.tar.bz2 |
grapheme test for UAX#29
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -2,6 +2,7 @@ CURL=curl RUBY=ruby +PERL=perl MAKE=make # settings @@ -24,7 +25,7 @@ all: c-library c-library: libmojibake.a libmojibake.$(SHLIB_EXT) clean: - rm -f utf8proc.o libmojibake.a libmojibake.$(SHLIB_EXT) normtest UnicodeData.txt DerivedCoreProperties.txt CompositionExclusions.txt CaseFolding.txt NormalizationTest.txt + rm -f utf8proc.o libmojibake.a libmojibake.$(SHLIB_EXT) normtest graphemetest UnicodeData.txt DerivedCoreProperties.txt CompositionExclusions.txt CaseFolding.txt NormalizationTest.txt GraphemeBreakTest.txt $(MAKE) -C bench clean update: utf8proc_data.c.new @@ -67,8 +68,15 @@ libmojibake.dylib: utf8proc.o NormalizationTest.txt: $(CURL) -O http://www.unicode.org/Public/UNIDATA/NormalizationTest.txt -normtest: normtest.c utf8proc.o mojibake.h +GraphemeBreakTest.txt: + $(CURL) http://www.unicode.org/Public/UCD/latest/ucd/auxiliary/GraphemeBreakTest.txt | $(PERL) -pe 's,÷,/,g;s,×,+,g' > $@ + +normtest: normtest.c utf8proc.o mojibake.h tests.h $(cc) normtest.c utf8proc.o -o normtest -check: normtest NormalizationTest.txt +graphemetest: graphemetest.c utf8proc.o mojibake.h tests.h + $(cc) graphemetest.c utf8proc.o -o graphemetest + +check: normtest NormalizationTest.txt graphemetest GraphemeBreakTest.txt ./normtest + ./graphemetest |