From 5f26caf2fae6b99512bcf88a262a9e50366711bf Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 16 Mar 2020 22:21:11 +0000 Subject: [PATCH] Add valgrind test option to automake file Makefile.am --- Makefile.am | 9 +++++++++ 1 file changed, 9 insertions(+) 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 \ -- 2.47.2