add spacing
This commit is contained in:
parent
47adc5c8ed
commit
86b5577385
1 changed files with 4 additions and 2 deletions
6
Makefile
6
Makefile
|
@ -4,6 +4,8 @@ OUTPUT = output
|
||||||
|
|
||||||
TESTS = $(wildcard $(TESTS_DIR)/*.test)
|
TESTS = $(wildcard $(TESTS_DIR)/*.test)
|
||||||
|
|
||||||
|
INDENT = 21
|
||||||
|
|
||||||
main:
|
main:
|
||||||
ocamlbuild -use-menhir -no-hygiene $(MAIN).byte
|
ocamlbuild -use-menhir -no-hygiene $(MAIN).byte
|
||||||
|
|
||||||
|
@ -12,10 +14,10 @@ test: $(TESTS)
|
||||||
@for f in $(TESTS); do \
|
@for f in $(TESTS); do \
|
||||||
./$(MAIN).byte $$f 1> /dev/null 2> $(OUTPUT); \
|
./$(MAIN).byte $$f 1> /dev/null 2> $(OUTPUT); \
|
||||||
if [ -s $(OUTPUT) ]; then \
|
if [ -s $(OUTPUT) ]; then \
|
||||||
printf "%s : ❌ => " $$f; \
|
printf "%$(INDENT)s : ❌ => " $$f; \
|
||||||
cat $(OUTPUT); \
|
cat $(OUTPUT); \
|
||||||
else \
|
else \
|
||||||
printf "%s : 🎉\n" $$f; \
|
printf "%$(INDENT)s : 🎉\n" $$f; \
|
||||||
fi; \
|
fi; \
|
||||||
done; \
|
done; \
|
||||||
rm $(OUTPUT)
|
rm $(OUTPUT)
|
||||||
|
|
Reference in a new issue