From 900466c48380ae3c2ba6f29c75c8423c3751abea Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 4 Sep 2021 14:08:27 -0700 Subject: Tests should use local `bp`, not installed version --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 71d9b80..642246b 100644 --- a/Makefile +++ b/Makefile @@ -46,8 +46,8 @@ test: $(NAME) ./$(NAME) Comment -r '[@0]' >/dev/null ./$(NAME) -g ./grammars/bp.bp -p Grammar ./grammars/bp.bp >/dev/null for test in tests/*.sh; do \ - sh "$$test" <"$${test/.sh/.in}" | diff -q - "$${test/.sh/.out}" ||\ - sh "$$test" <"$${test/.sh/.in}" | diff -y --color=always - "$${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}"; \ done tutorial: -- cgit v1.2.3