diff options
author | Steven G. Johnson <stevenj@mit.edu> | 2014-08-07 16:52:16 -0400 |
---|---|---|
committer | Steven G. Johnson <stevenj@mit.edu> | 2014-08-07 16:52:16 -0400 |
commit | 91a77d75885527263bb2cd79173bbf8494994c09 (patch) | |
tree | e46adafc1af25a4f475403de1e6a126528427b9f /Makefile | |
parent | af06f858e1f5c117d1f19a5cd1bde9cf2fbbac55 (diff) | |
download | libutf8proc-91a77d75885527263bb2cd79173bbf8494994c09.tar.gz libutf8proc-91a77d75885527263bb2cd79173bbf8494994c09.tar.bz2 |
added normalization and encoding test for #13
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -45,7 +45,6 @@ CompositionExclusions.txt: CaseFolding.txt: $(CURL) -O http://www.unicode.org/Public/UNIDATA/CaseFolding.txt - utf8proc.o: mojibake.h utf8proc.c utf8proc_data.c $(cc) -c -o utf8proc.o utf8proc.c @@ -59,3 +58,15 @@ libmojibake.so: utf8proc.o libmojibake.dylib: utf8proc.o $(cc) -dynamiclib -o $@ $^ -install_name $(libdir)/$@ + + +# Test programs + +NormalizationTest.txt: + $(CURL) -O http://www.unicode.org/Public/UNIDATA/NormalizationTest.txt + +normtest: normtest.c utf8proc.o mojibake.h + $(cc) normtest.c utf8proc.o -o normtest + +check: normtest NormalizationTest.txt + ./normtest |