From cd1fb348588c12d44e13d3322373a44a9517598b Mon Sep 17 00:00:00 2001 From: John Hawthorn Date: Sun, 21 Sep 2014 14:23:01 -0700 Subject: Easy way to run tests with valgrind VALGRIND="valgrind --leak-check=full" make test --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 20f3e61..7b3cead 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,7 @@ CFLAGS+=-Wall -Wextra -g -std=c99 -O3 -pedantic PREFIX?=/usr/local MANDIR?=$(PREFIX)/share/man BINDIR?=$(PREFIX)/bin +VALGRIND?= INSTALL=install INSTALL_PROGRAM=$(INSTALL) @@ -16,7 +17,7 @@ fzytest: fzytest.o match.o choices.o $(CC) $(CFLAGS) $(CCFLAGS) -o $@ $^ test: fzytest - -./fzytest + -$(VALGRIND) ./fzytest fzy: fzy.o match.o tty.o choices.o $(CC) $(CFLAGS) $(CCFLAGS) -o $@ $^ -- cgit v1.2.3