mirror of
https://github.com/neovim/neovim.git
synced 2024-12-31 17:13:26 -07:00
0a01b3052e
Default to verbose output to show more information in case of errors. Fix #1031.
15 lines
403 B
CMake
15 lines
403 B
CMake
get_filename_component(BUSTED_DIR ${BUSTED_PRG} PATH)
|
|
set(ENV{PATH} "${BUSTED_DIR}:$ENV{PATH}")
|
|
if(DEFINED ENV{TEST_FILE})
|
|
set(TEST_DIR $ENV{TEST_FILE})
|
|
endif()
|
|
|
|
execute_process(
|
|
COMMAND ${BUSTED_PRG} -v -o ${BUSTED_OUTPUT_TYPE} --lpath=${BUILD_DIR}/?.lua ${TEST_DIR}
|
|
WORKING_DIRECTORY ${WORKING_DIR}
|
|
RESULT_VARIABLE res)
|
|
|
|
if(NOT res EQUAL 0)
|
|
message(FATAL_ERROR "Unit tests failed.")
|
|
endif()
|