From 6af9bb4dbf39dec94844471beeb46d96464b27f5 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Thu, 7 Nov 2013 12:59:07 +0100 Subject: [PATCH] Put back old valgrind rule --- test/Makefile.am | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/Makefile.am b/test/Makefile.am index 22a3e47..e6d87f9 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -181,15 +181,17 @@ test_GObservation_LDADD = $(top_srcdir)/src/libgamma.la # Add Valgrind rule valgrind: @if type valgrind >/dev/null 2>&1; then \ + rm -rf reports ; \ cd .. ; \ - ln -s test/$$prog $$prog ; \ + cp -r test/data data ; \ + mkdir reports ; \ for prog in $(check_PROGRAMS) ; do \ - echo "cd test; ./$$prog; cd .." > test.sh ; chmod u+x test.sh ; \ $(SHELL) $(abs_top_builddir)/libtool --mode=execute valgrind --leak-check=full \ - --xml=yes --xml-file=tmp.xml --show-reachable=yes ./test.sh; \ + --xml=yes --xml-file=tmp.xml --show-reachable=yes test/$$prog; \ sed '/<\/valgrindoutput>/d' tmp.xml > test/valgrind_$$prog.xml; \ echo '' >> test/valgrind_$$prog.xml; \ done ; \ + mv reports test/reports ; \ cd test ; \ else \ echo "valgrind not found in PATH."; \ -- libgit2 0.21.4