From: Simon Date: Mon, 16 Mar 2020 22:21:11 +0000 (+0000) Subject: Add valgrind test option to automake file Makefile.am X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2F12311;p=people%2Fsennis%2Flibloc.git Add valgrind test option to automake file Makefile.am --- diff --git a/Makefile.am b/Makefile.am index b7650d4..b165c74 100644 --- a/Makefile.am +++ b/Makefile.am @@ -228,6 +228,15 @@ uninstall-perl: $(DESTDIR)/$(prefix)/lib/*/perl/*/perllocal.pod \ $(DESTDIR)/$(prefix)/man/man3/Location.3pm +.PHONY: valgrind +valgrind: + CFLAGS='g -o0' + $(MAKE) + $(MAKE) $(check_PROGRAMS) +# Run valgrind produce output. + LDFLAGS+=-L$(builddir)/src/.libs + valgrind --tool=memcheck --leak-check=full --show-leak-kinds=definite --log-file=libloc_valgrind_report ./src/test-database + bin_SCRIPTS = \ src/python/location-downloader \ src/python/location-exporter \