about summary refs log tree commit diff stats
path: root/cpp
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-04-22 23:25:20 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-04-22 23:25:20 -0700
commit634fcea02c35e734cacf4152400d2cdee666497e (patch)
tree6eec850dda9fce7fb3c27f20210af950217787a0 /cpp
parent9d18c99f5d66ffbe3cddf60e3e3c7608c20d696d (diff)
downloadmu-634fcea02c35e734cacf4152400d2cdee666497e.tar.gz
1148 - valgrind ALL the things!
Diffstat (limited to 'cpp')
-rwxr-xr-xcpp/build_and_test_until2
-rw-r--r--cpp/makefile5
2 files changed, 5 insertions, 2 deletions
diff --git a/cpp/build_and_test_until b/cpp/build_and_test_until
index 25db949f..916e93e8 100755
--- a/cpp/build_and_test_until
+++ b/cpp/build_and_test_until
@@ -8,4 +8,4 @@ make tangle/tangle
 make enumerate/enumerate
 ./tangle/tangle $(./enumerate/enumerate --until $* |grep -v '.mu$') |grep -v "^\s*//:" > mu.cc
 cat /dev/null $(./enumerate/enumerate --until $* |grep '.mu$') > core.mu
-make test
+make valgrind
diff --git a/cpp/makefile b/cpp/makefile
index 5c978101..75ed8424 100644
--- a/cpp/makefile
+++ b/cpp/makefile
@@ -18,12 +18,15 @@ termbox/libtermbox.a:
 	cd termbox && make
 
 # auto-generated files; by convention they end in '_list'.
-.PHONY: autogenerated_lists test clena 
+.PHONY: autogenerated_lists test valgrind clena
 autogenerated_lists: mu.cc function_list test_list
 
 test: mu
 	./mu test
 
+valgrind: mu
+	valgrind --leak-check=yes ./mu test
+
 function_list: mu.cc
 	# declarations for lines starting with non-space and ending with ') {', except methods
 	@grep -h "^[^[:space:]#].*) {" mu.cc |grep -v ":.*(" |perl -pwe 's/ {.*/;/' > function_list