TESTS=$(patsubst %/,%,$(wildcard */))
.PHONY: $(TESTS)
$(TESTS):
cd $@ && ./$@.sh 2>&1 | tee $@.log
cd $@ && grep -a TESTING $@.log && grep -a -L "TESTING ERROR" $@.log
clean:
for test in $(TESTS); do rm -f "$$test/$$test.log"; done
distclean: clean
rm -f Makefile