X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/2c785689e4a3163f6f1b644ec31c6a82642e9f14..102ae26188bf497da2cf3eddb78b2ef475cec1ae:/Makefile.am?ds=sidebyside diff --git a/Makefile.am b/Makefile.am index 978e5721..3f00dc16 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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/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 \ @@ -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/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 \ @@ -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/scan/test-header-parsing \ # 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/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 \ @@ -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. ## -gcov: +gcov: gcov-rebuild gcov-run gcov-process gcov-report +gcov-rebuild: @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 +gcov-report: @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 -.PHONY: gcov gcov-mostlyclean gcov-clean +.PHONY: gcov gcov-rebuild gcov-run gcov-process gcov-report \ + gcov-mostlyclean gcov-clean ##