Update test rule

This commit is contained in:
Bruce Hill 2024-05-28 01:12:24 -04:00
parent 5f49677d76
commit 4fbc4288fd

View File

@ -52,7 +52,7 @@ lua:
test: $(NAME) test: $(NAME)
./$(NAME) Comment -r '[@0]' >/dev/null ./$(NAME) Comment -r '[@0]' >/dev/null
./$(NAME) -g ./grammars/bp.bp -p Grammar ./grammars/bp.bp >/dev/null ./$(NAME) -g ./grammars/bp.bp '{Grammar}' ./grammars/bp.bp >/dev/null
for test in tests/*.sh; do \ for test in tests/*.sh; do \
PATH=".:$$PATH" sh "$$test" <"$${test/.sh/.in}" | diff -q - "$${test/.sh/.out}" ||\ PATH=".:$$PATH" sh "$$test" <"$${test/.sh/.in}" | diff -q - "$${test/.sh/.out}" ||\
PATH=".:$$PATH" sh "$$test" <"$${test/.sh/.in}" | diff -y --color=always - "$${test/.sh/.out}"; \ PATH=".:$$PATH" sh "$$test" <"$${test/.sh/.in}" | diff -y --color=always - "$${test/.sh/.out}"; \
@ -62,7 +62,7 @@ tutorial:
./tutorial.sh ./tutorial.sh
leaktest: bp leaktest: bp
valgrind --leak-check=full ./bp -l -g ./grammars/bp.bp -p Grammar ./grammars/bp.bp valgrind --leak-check=full ./bp -l -g ./grammars/bp.bp '{Grammar}' ./grammars/bp.bp
splint: splint:
splint -posix-lib -weak -unrecog -initallelements -fullinitblock $(CFILES) bp.c splint -posix-lib -weak -unrecog -initallelements -fullinitblock $(CFILES) bp.c