Commit 6af9bb4dbf39dec94844471beeb46d96464b27f5

Authored by Jürgen Knödlseder
1 parent 4f545712

Put back old valgrind rule

Showing 1 changed file with 5 additions and 3 deletions
test/Makefile.am
... ... @@ -181,15 +181,17 @@ test_GObservation_LDADD = $(top_srcdir)/src/libgamma.la
181 181 # Add Valgrind rule
182 182 valgrind:
183 183 @if type valgrind >/dev/null 2>&1; then \
  184 + rm -rf reports ; \
184 185 cd .. ; \
185   - ln -s test/$$prog $$prog ; \
  186 + cp -r test/data data ; \
  187 + mkdir reports ; \
186 188 for prog in $(check_PROGRAMS) ; do \
187   - echo "cd test; ./$$prog; cd .." > test.sh ; chmod u+x test.sh ; \
188 189 $(SHELL) $(abs_top_builddir)/libtool --mode=execute valgrind --leak-check=full \
189   - --xml=yes --xml-file=tmp.xml --show-reachable=yes ./test.sh; \
  190 + --xml=yes --xml-file=tmp.xml --show-reachable=yes test/$$prog; \
190 191 sed '/<\/valgrindoutput>/d' tmp.xml > test/valgrind_$$prog.xml; \
191 192 echo '</valgrindoutput>' >> test/valgrind_$$prog.xml; \
192 193 done ; \
  194 + mv reports test/reports ; \
193 195 cd test ; \
194 196 else \
195 197 echo "valgrind not found in PATH."; \
... ...