]> git.ipfire.org Git - people/sennis/libloc.git/commitdiff
Add valgrind test option to automake file Makefile.am 12311
authorSimon <simon@debian.WORKGROUP>
Mon, 16 Mar 2020 22:21:11 +0000 (22:21 +0000)
committerSimon <simon@debian.WORKGROUP>
Mon, 16 Mar 2020 22:21:11 +0000 (22:21 +0000)
Makefile.am

index b7650d4a8d49e2863cb6c7e947a3191e41f3e190..b165c74e80bebd7d2fb7fe17f712cdc502760d7a 100644 (file)
@@ -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 \