diff options
-rwxr-xr-x | cpp/build_and_test_until | 2 | ||||
-rw-r--r-- | cpp/makefile | 5 |
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 |