mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
15 lines
425 B
CMake
15 lines
425 B
CMake
get_filename_component(BUSTED_DIR ${BUSTED_PRG} PATH)
|
|
set(ENV{PATH} "${BUSTED_DIR}:$ENV{PATH}")
|
|
set(ENV{NVIM_TEST_LIB} ${NVIM_TEST_LIB})
|
|
set(ENV{TEST_INCLUDES} ${TEST_INCLUDES})
|
|
|
|
execute_process(
|
|
COMMAND ${BUSTED_PRG} -l ${LUAJIT_PRG} -o ${BUSTED_OUTPUT_TYPE}
|
|
--pattern=.moon ${TEST_DIR}
|
|
WORKING_DIRECTORY ${WORKING_DIR}
|
|
RESULT_VARIABLE res)
|
|
|
|
if(NOT res EQUAL 0)
|
|
message(FATAL_ERROR "Unit tests failed.")
|
|
endif()
|