aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-05-10 23:43:54 -0700
committerBruce Hill <bruce@bruce-hill.com>2021-05-10 23:43:54 -0700
commit943aa0b71a8c2a03fe4b57317d4c7bc7df7d014c (patch)
tree7d58d4a4e1482a4753c437f5fbe64372d9a6958e /Makefile
parent529ff8fb4ff104ee4107512c6ab12577842b428d (diff)
Added simple test
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