vere: fixes Makefile test-runner, exiting on failed test

This commit is contained in:
Joe Bryan 2019-12-18 00:19:37 -08:00
parent de9bd593d9
commit bb83acce96

View File

@ -33,7 +33,12 @@ CFLAGS := $(CFLAGS)
all: $(all_exes)
test: $(test_exes)
for x in $^; do echo "\n$$x" && ./$$x; done
@FAIL=0; \
for x in $^; \
do echo "\n$$x" && ./$$x; \
if [ $$? != 0 ]; then FAIL=1; fi; \
done; \
if [ $$FAIL != 0 ]; then echo "\n" && exit 1; fi;
clean:
rm -f ./tags $(all_objs) $(all_exes)