[erlang-questions] Failing Makefile build on EUnit test failures

Angel Alvarez clist@REDACTED
Wed Dec 16 10:01:23 CET 2009


El Miércoles, 16 de Diciembre de 2009 02:06:35 Jeremy Raymond escribió:
> Hello,
> 
> 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?
> 
> 
> Thanks,
> 
> Jeremy
> 

add erlang:halt(ErrorCode) so the VM signals ErrorCode to the OS on exit



-- 
Este correo no tiene dibujos. Las formas extrañas en la pantalla son letras.
__________________________________________

Clist UAH a.k.a Angel
__________________________________________
Sex is a battle, love is war.


More information about the erlang-questions mailing list