When running make check, output which checks failed.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 13 Jan 2013 20:31:50 +0000 (21:31 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 13 Jan 2013 20:31:50 +0000 (21:31 +0100)
Makefile

index 3d0a87c..ad886c0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -112,11 +112,14 @@ clean:
        $(RM) -r movit.info coverage/
 
 check: $(TESTS)
-       FAIL=0; \
+       FAILED_TESTS=""; \
        for TEST in $(TESTS); do \
-           ./$$TEST || FAIL=1; \
+           ./$$TEST || FAILED_TESTS="$$TEST $$FAILED_TESTS"; \
        done; \
-       exit $$FAIL
+       if [ "$$FAILED_TESTS" ]; then \
+               echo Failed tests: $$FAILED_TESTS; \
+               exit 1; \
+       fi
 
 # You need to build with COVERAGE=1 to use this target.
 coverage: check