mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
12 lines
291 B
CMake
12 lines
291 B
CMake
|
execute_process(
|
||
|
COMMAND ${LUACHECK_PRG} -q ${TEST_DIR}
|
||
|
WORKING_DIRECTORY ${TEST_DIR}
|
||
|
ERROR_VARIABLE err
|
||
|
RESULT_VARIABLE res
|
||
|
${EXTRA_ARGS})
|
||
|
|
||
|
if(NOT res EQUAL 0)
|
||
|
message(STATUS "Output to stderr:\n${err}")
|
||
|
message(FATAL_ERROR "Linting tests failed with error: ${res}.")
|
||
|
endif()
|