make test fails silently when the test program cannot be built. This happens, for example, when attempting to compile git-annex with QuickCheck-2.4.2.

I've made "make test" exit nonzero if the test suite cannot be built. done --Joey

The code is:

@if ! $(GHCMAKE) -O0 test; then \
                echo "** not running test suite" >&2; \
else \

The error message from the compiler, followed by the above error message does not seem "silent". It does exit 0 without running the test suite if it cannot be built.

Comment by http://joey.kitenet.net/ Tue Jan 3 16:54:19 2012
When "make test" fails to run any tests at all, it should not return exit code 0. This behavior is quite misleading, and it means that automated build systems are not going to detect the fact that the test suit could not be run.
Comment by http://peter-simons.myopenid.com/ Tue Jan 3 18:09:38 2012
Comments on this page are closed.