diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-12-22 11:55:55 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-12-22 11:58:16 +0100 |
| commit | b5302c039b91ccb8ebb35b7cf2a321577e156c41 (patch) | |
| tree | c75ec184b81594c81d283a404fad42fe3098a161 /core | |
| parent | 7cf19076a8a005650bf3265a637a8dd957bc428c (diff) | |
| download | vis-b5302c039b91ccb8ebb35b7cf2a321577e156c41.tar.gz vis-b5302c039b91ccb8ebb35b7cf2a321577e156c41.tar.xz | |
test/core: add make valgrind target
Diffstat (limited to 'core')
| -rw-r--r-- | core/.gitignore | 1 | ||||
| -rw-r--r-- | core/Makefile | 10 |
2 files changed, 10 insertions, 1 deletions
diff --git a/core/.gitignore b/core/.gitignore index bc75c33..f14cb69 100644 --- a/core/.gitignore +++ b/core/.gitignore @@ -7,3 +7,4 @@ *.gcda *.gcno *.gcov +*.valgrind diff --git a/core/Makefile b/core/Makefile index 4836427..c96a972 100644 --- a/core/Makefile +++ b/core/Makefile @@ -36,6 +36,13 @@ debug: clean coverage: clean $(MAKE) CFLAGS_EXTRA='--coverage' +valgrind: clean ${ALL} + @for test in ${ALL}; do \ + valgrind --leak-check=full --log-file="$$test.valgrind" "./$$test"; \ + cat "$$test.valgrind"; \ + grep LEAK "$$test.valgrind" >/dev/null && exit 1 || true; \ + done + tis: clean $(MAKE) CC="tis-interpreter.sh --cc" CFLAGS='"${CFLAGS} ${CFLAGS_STD} -DTIS_INTERPRETER=1"' CFLAGS_STD='' LDFLAGS='#' $(ALL) @@ -46,5 +53,6 @@ clean: @rm -f map @rm -f array @rm -f *.gcov *.gcda *.gcno + @rm -f *.valgrind -.PHONY: clean debug coverage tis +.PHONY: clean debug coverage tis valgrind |
