Failing Makefile build on EUnit test failures

Jeremy Raymond jeraymond@REDACTED
Wed Dec 16 02:06:35 CET 2009


I have a make file that runs my EUnit tests like this:

eunit: ${EUNIT_OBJ}
    erl -noshell -pa ebin -eval 'eunit:test(${TEST_MODULES}, [verbose])' -s
init stop

What I'd like to happen is have my build fail if any of the eunit tests fail
however even if tests fail the build suceeds (the command to run the tests
returns 0?). How can I make my build fail if the tests fail, and pass if the
tests pass?



More information about the erlang-questions mailing list