chiark / gitweb /
hash.c tests
[disorder] / lib / Makefile.am
index 0eeccd7ce674480e28b8bf04ef9b0678b9f97c61..67416b2a0f57548603a9c4f389a1bce82883f554 100644 (file)
@@ -69,7 +69,6 @@ libdisorder_a_SOURCES=charset.c charset.h             \
        vacopy.h                                        \
        vector.c vector.h                               \
        wav.h wav.c                                     \
-       words.c words.h                                 \
        wstat.c wstat.h                                 \
        disorder.h
 
@@ -89,13 +88,19 @@ definitions.h: Makefile
 defs.o: definitions.h
 defs.lo: definitions.h
 
-test_SOURCES=test.c
-test_LDADD=libdisorder.a $(LIBPCRE) $(LIBICONV)
+test_SOURCES=test.c memgc.c
+test_LDADD=libdisorder.a $(LIBPCRE) $(LIBICONV) $(LIBGC)
 test_DEPENDENCIES=libdisorder.a
 
 check: test #test.i
        ./test
 
+check-report: before-check check make-coverage-reports
+before-check:
+       rm -f *.gcda *.gcov
+make-coverage-reports:
+       ${GCOV} *.c | ${PYTHON} ../scripts/format-gcov-report --html . *.c
+
 rebuild-unicode:
        cd ${srcdir} && ${top_srcdir}/scripts/make-unidata