aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 43331cf..7017e24 100644
--- a/Makefile
+++ b/Makefile
@@ -26,6 +26,9 @@ tags: $(CFILES) bp.c
clean:
rm -f $(NAME) $(OBJFILES)
+test:
+ ./$(NAME) -g grammars/bp.bp -p Grammar grammars/bp.bp
+
leaktest:
make G=-ggdb O=-O0 EXTRA=-DDEBUG_HEAP clean bp
valgrind --leak-check=full ./bp -l -g grammars/bp.bp -p Grammar grammars/bp.bp
@@ -55,4 +58,4 @@ uninstall:
[ "$$confirm" != n ] && rm -rf ~/.config/$(NAME); \
fi
-.PHONY: all clean install uninstall leaktest splint
+.PHONY: all clean install uninstall leaktest splint test