vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit 6e595d528ed12302bd5ed49defce619cbb6721a3
parent 55b4e5d61d689fcec05045076d992b3acb3051fb
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Thu, 22 Dec 2016 11:55:55 +0100

test/core: add make valgrind target

Diffstat:
Mcore/.gitignore | 1+
Mcore/Makefile | 10+++++++++-
2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/core/.gitignore b/core/.gitignore @@ -7,3 +7,4 @@ *.gcda *.gcno *.gcov +*.valgrind diff --git 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