chiark / gitweb /
exit not _exit, for benefit of coverage testing
[disorder] / lib / Makefile.am
index b642c895db345eb65b1ee181089a6645e1562a53..67416b2a0f57548603a9c4f389a1bce82883f554 100644 (file)
@@ -88,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