From 943aa0b71a8c2a03fe4b57317d4c7bc7df7d014c Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 10 May 2021 23:43:54 -0700 Subject: [PATCH] Added simple test --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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