The testall target now exits with the correct value.
This commit is contained in:
Markus Makela
2015-01-26 09:07:33 +02:00
parent 9e642c32cb
commit 9b9c968ca1
2 changed files with 9 additions and 3 deletions

8
testall.cmake Normal file
View File

@ -0,0 +1,8 @@
execute_process(COMMAND /bin/sh -c "${CMAKE_BINARY_DIR}/bin/maxscale -c ${CMAKE_BINARY_DIR} &>/dev/null")
execute_process(COMMAND make test RESULT_VARIABLE RVAL)
execute_process(COMMAND killall maxscale)
if(NOT RVAL EQUAL 0)
message(FATAL_ERROR "Test suite failed with status: ${RVAL}")
else()
message(STATUS "Test exited with status: ${RVAL}")
endif()