mirror of
https://github.com/neovim/neovim.git
synced 2025-09-25 04:28:33 +00:00
Merge pull request #2213 from jszakmeister/add-junit-support
build: add support for running the tests in junit format
This commit is contained in:
@@ -13,13 +13,18 @@ else()
|
|||||||
set(TEST_PATH "${TEST_DIR}/${TEST_TYPE}")
|
set(TEST_PATH "${TEST_DIR}/${TEST_TYPE}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(BUSTED_OUTPUT_TYPE STREQUAL junit)
|
||||||
|
set(EXTRA_ARGS OUTPUT_FILE ${BUILD_DIR}/${TEST_TYPE}test-junit.xml)
|
||||||
|
endif()
|
||||||
|
|
||||||
execute_process(
|
execute_process(
|
||||||
COMMAND ${BUSTED_PRG} -v -o ${BUSTED_OUTPUT_TYPE}
|
COMMAND ${BUSTED_PRG} -v -o ${BUSTED_OUTPUT_TYPE}
|
||||||
--helper=${TEST_DIR}/${TEST_TYPE}/preload.lua
|
--helper=${TEST_DIR}/${TEST_TYPE}/preload.lua
|
||||||
--lpath=${BUILD_DIR}/?.lua ${TEST_PATH}
|
--lpath=${BUILD_DIR}/?.lua ${TEST_PATH}
|
||||||
WORKING_DIRECTORY ${WORKING_DIR}
|
WORKING_DIRECTORY ${WORKING_DIR}
|
||||||
ERROR_VARIABLE err
|
ERROR_VARIABLE err
|
||||||
RESULT_VARIABLE res)
|
RESULT_VARIABLE res
|
||||||
|
${EXTRA_ARGS})
|
||||||
|
|
||||||
if(NOT res EQUAL 0)
|
if(NOT res EQUAL 0)
|
||||||
message(STATUS "Output to stderr:\n${err}")
|
message(STATUS "Output to stderr:\n${err}")
|
||||||
|
4
third-party/cmake/BuildLuarocks.cmake
vendored
4
third-party/cmake/BuildLuarocks.cmake
vendored
@@ -45,6 +45,10 @@ add_custom_command(OUTPUT ${DEPS_LIB_DIR}/luarocks/rocks/stable-busted-deps
|
|||||||
ARGS build penlight 1.0.0-1 CC=${DEPS_C_COMPILER} LD=${DEPS_C_COMPILER}
|
ARGS build penlight 1.0.0-1 CC=${DEPS_C_COMPILER} LD=${DEPS_C_COMPILER}
|
||||||
COMMAND ${DEPS_BIN_DIR}/luarocks
|
COMMAND ${DEPS_BIN_DIR}/luarocks
|
||||||
ARGS build mediator_lua 1.1-3 CC=${DEPS_C_COMPILER} LD=${DEPS_C_COMPILER}
|
ARGS build mediator_lua 1.1-3 CC=${DEPS_C_COMPILER} LD=${DEPS_C_COMPILER}
|
||||||
|
COMMAND ${DEPS_BIN_DIR}/luarocks
|
||||||
|
ARGS build luasocket 3.0rc1-2 CC=${DEPS_C_COMPILER} LD=${DEPS_C_COMPILER}
|
||||||
|
COMMAND ${DEPS_BIN_DIR}/luarocks
|
||||||
|
ARGS build xml 1.1.1-1 CC=${DEPS_C_COMPILER} LD=${DEPS_C_COMPILER}
|
||||||
COMMAND touch ${DEPS_LIB_DIR}/luarocks/rocks/stable-busted-deps
|
COMMAND touch ${DEPS_LIB_DIR}/luarocks/rocks/stable-busted-deps
|
||||||
DEPENDS luarocks)
|
DEPENDS luarocks)
|
||||||
add_custom_target(stable-busted-deps
|
add_custom_target(stable-busted-deps
|
||||||
|
Reference in New Issue
Block a user