]> diplodocus.org Git - nmh/blobdiff - Makefile.am
uip/dp.c: Increase coverage to 100%.
[nmh] / Makefile.am
index 978e5721bddedb23473c442ed33bcfa4b9b5b0cd..3f00dc16490f30b0e26c3c2fd39708e4d70ce6a6 100644 (file)
@@ -55,6 +55,7 @@ TESTS = test/ali/test-ali test/anno/test-anno \
        test/bad-input/test-header \
        test/burst/test-burst test/burst/test-burst-mime \
        test/comp/test-comp-format test/dist/test-dist \
        test/bad-input/test-header \
        test/burst/test-burst test/burst/test-burst-mime \
        test/comp/test-comp-format test/dist/test-dist \
+       test/folder/test-coverage \
        test/folder/test-create test/folder/test-nocreate \
        test/folder/test-packf test/folder/test-recurse \
        test/folder/test-sortm test/folder/test-total \
        test/folder/test-create test/folder/test-nocreate \
        test/folder/test-packf test/folder/test-recurse \
        test/folder/test-sortm test/folder/test-total \
@@ -72,7 +73,7 @@ TESTS = test/ali/test-ali test/anno/test-anno \
        test/install-mh/test-install-mh test/install-mh/test-version-check \
        test/locking/test-datalocking test/locking/test-spoollocking \
        test/manpages/test-manpages \
        test/install-mh/test-install-mh test/install-mh/test-version-check \
        test/locking/test-datalocking test/locking/test-spoollocking \
        test/manpages/test-manpages \
-       test/mhbuild/test-attach \
+       test/mhbuild/test-attach test/mhbuild/test-mhbuild \
        test/mhbuild/test-cte \
        test/mhbuild/test-ext-params \
        test/mhbuild/test-forw test/mhbuild/test-header-encode \
        test/mhbuild/test-cte \
        test/mhbuild/test-ext-params \
        test/mhbuild/test-forw test/mhbuild/test-header-encode \
@@ -113,7 +114,6 @@ TESTS = test/ali/test-ali test/anno/test-anno \
        test/cleanup ## The "cleanup" test should always be last.
 
 XFAIL_TESTS = \
        test/cleanup ## The "cleanup" test should always be last.
 
 XFAIL_TESTS = \
-    test/scan/test-header-parsing \
     #
 
 check_SCRIPTS = test/common.sh
     #
 
 check_SCRIPTS = test/common.sh
@@ -603,7 +603,7 @@ sbr_libmh_a_SOURCES = sbr/addrsbr.c sbr/ambigsw.c sbr/atooi.c sbr/arglist.c \
                      sbr/makedir.c sbr/md5.c sbr/message_id.c \
                      sbr/mime_type.c sbr/mts.c sbr/netsec.c \
                      sbr/norm_charmap.c sbr/path.c \
                      sbr/makedir.c sbr/md5.c sbr/message_id.c \
                      sbr/mime_type.c sbr/mts.c sbr/netsec.c \
                      sbr/norm_charmap.c sbr/path.c \
-                     sbr/peekc.c sbr/pidwait.c sbr/pidstatus.c \
+                     sbr/pidwait.c sbr/pidstatus.c \
                      sbr/print_help.c sbr/print_sw.c sbr/print_version.c \
                      sbr/push.c sbr/putenv.c sbr/refile.c sbr/remdir.c \
                      sbr/r1bindex.c sbr/readconfig.c sbr/ruserpass.c \
                      sbr/print_help.c sbr/print_sw.c sbr/print_version.c \
                      sbr/push.c sbr/putenv.c sbr/refile.c sbr/remdir.c \
                      sbr/r1bindex.c sbr/readconfig.c sbr/ruserpass.c \
@@ -724,13 +724,17 @@ rpm: dist
 ## These targets are not integrated into the other automake
 ## targets because they will be used so infrequently, if at all.
 ##
 ## These targets are not integrated into the other automake
 ## targets because they will be used so infrequently, if at all.
 ##
-gcov:
+gcov: gcov-rebuild gcov-run gcov-process gcov-report
+gcov-rebuild:
        @echo rebuilding with AM_CFLAGS=--coverage . . .
        @echo rebuilding with AM_CFLAGS=--coverage . . .
-       @(make clean  &&  make AM_CFLAGS=--coverage) > /dev/null  && \
-         make check AM_CFLAGS=--coverage
+       @(make clean  &&  make AM_CFLAGS=--coverage) > /dev/null
+gcov-run:
+       make check AM_CFLAGS=--coverage
+gcov-process:
        @for i in `find . -name '*.gcda'`; do \
           gcov -pro `echo $$i | $(SED) 's%\\(.*\\)/%\\1 %'`; \
         done
        @for i in `find . -name '*.gcda'`; do \
           gcov -pro `echo $$i | $(SED) 's%\\(.*\\)/%\\1 %'`; \
         done
+gcov-report:
        @for i in `find . -name '*.gcno'`; do \
           if test -f `echo $$i | sed 's%\.gcno%.gcda%'`; then :; else \
             echo untested: $$i; \
        @for i in `find . -name '*.gcno'`; do \
           if test -f `echo $$i | sed 's%\.gcno%.gcda%'`; then :; else \
             echo untested: $$i; \
@@ -740,7 +744,8 @@ gcov-mostlyclean:
        @find . -name '*.gcno' -o -name '*.gcda' | xargs rm
 gcov-clean: gcov-mostlyclean
        @find . -name '*.gcov' | xargs rm
        @find . -name '*.gcno' -o -name '*.gcda' | xargs rm
 gcov-clean: gcov-mostlyclean
        @find . -name '*.gcov' | xargs rm
-.PHONY: gcov gcov-mostlyclean gcov-clean
+.PHONY: gcov gcov-rebuild gcov-run gcov-process gcov-report \
+    gcov-mostlyclean gcov-clean
 
 
 ##
 
 
 ##