aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-08-05 16:21:11 -0300
committerEuAndreh <eu@euandre.org>2021-08-05 16:21:11 -0300
commit910840fdee8ecdb0ca720d4a52859ef2f7de88b9 (patch)
tree5fc188a9c475a356c1f3096776a53f97b5d91274
parentUse .git symlink to simplify testing of embedded repositories (diff)
downloadgistatic-910840fdee8ecdb0ca720d4a52859ef2f7de88b9.tar.gz
gistatic-910840fdee8ecdb0ca720d4a52859ef2f7de88b9.tar.xz
Makefile: Add "c-dev-check" target with Valgrind
-rw-r--r--Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 709364c..9c007a0 100644
--- a/Makefile
+++ b/Makefile
@@ -63,7 +63,18 @@ uninstall:
# Personal workflow targets
#
-dev-check: check public
+
+VALGRIND_FLAGS = \
+ --show-error-list=yes \
+ --show-leak-kinds=all \
+ --leak-check=full \
+ --track-origins=yes \
+ --error-exitcode=1
+
+c-dev-check: check
+ valgrind $(VALGRIND_FLAGS) ./src/gistatic.t
+
+dev-check: c-dev-check public
sh aux/assert-shellcheck.sh
sh aux/workflow/assert-todos.sh
sh aux/workflow/assert-changelog.sh -n $(NAME)