mirror of
https://gitlab.com/gnuwget/wget2.git
synced 2026-01-14 02:01:39 +00:00
* .travis.sh: Rewrite for clarity and speed. Testing shows that valgrind and ASan don't play well together. So split their executions. * .travis.yml: Enable ccache for builds. Also try to update libc6 if possible * .travis.yml: Do not run on OSX with CC=gcc. This is because on OSX, gcc is only a wrapper around clang. * .travis_setup.sh: Cosmetic changes only * Makefile.am (check-coverage): Explcicitly disable valgrind tests when checking coverage * tests/libtest.c (wget_test): Use a provided suppressions file for valgrind. This is required since the valgrind version on Travis seems to be out of sync with libc. This causes valgrind to report a memory bug falsely. * tests/valgrind-suppressions: New file with some valgrind suppressions. Included suppressions are for a valgrind/libc bug and to suppress reachable memory messages from within gnutls
49 lines
1.9 KiB
Makefile
49 lines
1.9 KiB
Makefile
# got some hints from https://gitorious.org/openismus-playground/examplelib/source
|
|
|
|
if HAVE_PO
|
|
SUBDIRS = po
|
|
else
|
|
SUBDIRS =
|
|
endif
|
|
|
|
SUBDIRS += lib include libwget examples src data $(LIBWGET_DOCS) tests
|
|
|
|
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
|
|
|
|
## Install the generated pkg-config file (.pc) into the expected location for
|
|
## architecture-dependent package configuration information. Occasionally,
|
|
## pkg-config files are also used for architecture-independent data packages,
|
|
## in which case the correct install location would be $(datadir)/pkgconfig.
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
pkgconfig_DATA = libwget.pc
|
|
|
|
EXTRA_DIST = build-aux/config.rpath m4/gnulib-cache.m4
|
|
|
|
dist-hook: gen-ChangeLog
|
|
|
|
.PHONY: gen-ChangeLog check-valgrind
|
|
|
|
gen-ChangeLog:
|
|
$(AM_V_GEN)if test -d .git; then \
|
|
log_fix="$(srcdir)/build-aux/git-log-fix"; \
|
|
test -e "$$log_fix" || amend_git_log=; \
|
|
$(top_srcdir)/build-aux/gitlog-to-changelog \
|
|
$$amend_git_log > $(distdir)/ChangeLog; \
|
|
fi
|
|
|
|
check-valgrind:
|
|
TESTS_ENVIRONMENT="VALGRIND_TESTS=1" $(MAKE) check
|
|
|
|
clean-lcov:
|
|
rm -rf wget2_base.info wget2_test.info wget2_total.info */*.gc?? lcov/
|
|
lcov --zerocounters --directory src/ --directory libwget/
|
|
|
|
check-coverage: clean clean-lcov
|
|
$(MAKE) CFLAGS="$(CFLAGS) --coverage" LDFLAGS="$(LDFLAGS) --coverage"
|
|
lcov --capture --no-external --initial --directory src/ --directory libwget/ --output-file wget2_base.info
|
|
$(MAKE) CFLAGS="$(CFLAGS) --coverage" LDFLAGS="$(LDFLAGS) --coverage" VALGRIND_TESTS=0 check
|
|
lcov --capture --no-external --ignore-errors source --directory src/ --directory libwget/ --output-file wget2_test.info
|
|
lcov -a wget2_base.info -a wget2_test.info -o wget2_total.info
|
|
lcov --remove wget2_total.info 'libwget/test_linking.c' 'libwget/css_tokenizer.lex' 'libwget/<stdout>' -o wget2_total.info
|
|
genhtml --prefix . --ignore-errors source wget2_total.info --legend --title "Wget2" --output-directory=lcov
|