aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Steven Schubiger <stsc@refcnt.org> 2016-10-01 17:57:30 +0200
committerGravatar Steven Schubiger <stsc@refcnt.org> 2016-10-01 17:57:30 +0200
commite644ee656f5a2ec2dabe74dc14e432b336082cbf (patch)
tree3556316eb195b58c362c2922c4aa6e80df09f6a4 /Makefile
parent77f3034f313600e3d030948dd228a5325d5b4da0 (diff)
downloadcolorize-e644ee656f5a2ec2dabe74dc14e432b336082cbf.tar.gz
colorize-e644ee656f5a2ec2dabe74dc14e432b336082cbf.tar.bz2
Run tests through valgrind
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index da60da2..2c111eb 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-.PHONY: check clean release
+.PHONY: check check_valgrind clean release
.SUFFIXES:
.SUFFIXES: .c .o
@@ -13,7 +13,11 @@ colorize: colorize.c
$(CC) $(CFLAGS) -o colorize colorize.c -DCFLAGS="$(CFLAGS)" -DHAVE_VERSION $(FLAGS)
check:
- perl ./test.pl
+ perl ./test.pl --regular
+
+check_valgrind:
+ @which valgrind >/dev/null 2>&1 || (printf '%s\n' "valgrind not found" && exit 1)
+ perl ./test.pl --valgrind || exit 0
clean:
rm -f a.out colorize debug.txt version.h