add spacing

This commit is contained in:
Mylloon 2022-12-08 00:17:54 +01:00
parent 47adc5c8ed
commit 86b5577385
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -4,6 +4,8 @@ OUTPUT = output
TESTS = $(wildcard $(TESTS_DIR)/*.test)
INDENT = 21
main:
ocamlbuild -use-menhir -no-hygiene $(MAIN).byte
@ -12,10 +14,10 @@ test: $(TESTS)
@for f in $(TESTS); do \
./$(MAIN).byte $$f 1> /dev/null 2> $(OUTPUT); \
if [ -s $(OUTPUT) ]; then \
printf "%s : ❌ => " $$f; \
printf "%$(INDENT)s : ❌ => " $$f; \
cat $(OUTPUT); \
else \
printf "%s : 🎉\n" $$f; \
printf "%$(INDENT)s : 🎉\n" $$f; \
fi; \
done; \
rm $(OUTPUT)