aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2021-09-19 16:14:45 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2021-09-19 16:14:45 +0200
commit1fde26df00673cf863435ae0db7c9edb24593987 (patch)
treef05883970ec555d67317275369b5959af4eec864
parentdc7751b8e14cc2275c74a673a96bacfd798514fe (diff)
downloaddns-1fde26df00673cf863435ae0db7c9edb24593987.tar.gz
Makefile: add valgrind_test
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f756f5d..2981dc0 100644
--- a/Makefile
+++ b/Makefile
@@ -38,6 +38,10 @@ build_test: dir $(TOBJS) $(TSUBS)
test: build_test
@$(TESTDIR)/run
+valgrind_test: CFLAGS += -g
+valgrind_test: build_test
+ @CK_FORK=no valgrind --leak-check=full $(TESTDIR)/run
+
dir:
@mkdir -p $(OBJECTDIR)
@mkdir -p $(BUILDDIR)