Commit a2d89761 authored by Mikaël Salson's avatar Mikaël Salson
Browse files

Makefile: Two rules for launching valgrind

valgrind_should: valgrind on functional tests
valgrind_tests:  valgrind on unit tests
parent 8ec20317
......@@ -10,6 +10,7 @@ LIB=../core/vidjil.a ../lib/lib.a
SHOULD=$(wildcard *.should_get)
SHOULD_VDJ=$(wildcard should-vdj-tests/*.should-vdj.fa)
VALGRIND=valgrind -v --tool=memcheck --leak-check=full --show-reachable=yes --undef-value-errors=yes --track-origins=yes --xml=yes --xml-file=$$(mktemp ../../reports/valgrind.xml.XXXXXX)
.PHONY: all force clean forcedep
......@@ -31,8 +32,10 @@ shouldvdj:
%.log: %.should_get force
./ $<
LAUNCHER='valgrind -v --tool=memcheck --leak-check=full --show-reachable=yes --undef-value-errors=yes --track-origins=yes --xml=yes --xml-file=$$(mktemp ../../reports/valgrind.xml.XXXXXX)' make should
LAUNCHER="$(VALGRIND)" make should
valgrind_tests: vidjil tests
$(VALGRIND) ./tests
$(EXEC): % : %.o $(LIB)
$(CC) -o $@ $< $(LIB) $(LDLIBS) $(LDFLAGS) $(CXXFLAGS)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment