mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 09:13:33 +08:00
gather test results
This commit is contained in:
committed by
Lorenz Meier
parent
cddef87998
commit
97bc0f4486
@@ -10,6 +10,8 @@ endif()
|
||||
project(px4_unittests)
|
||||
enable_testing()
|
||||
|
||||
message(STATUS ${CONFIG})
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror -std=gnu99 -g")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror -std=gnu++0x -g -fno-exceptions -fno-rtti -fno-threadsafe-statics -DCONFIG_WCHAR_BUILTIN -D__CUSTOM_FILE_IO__")
|
||||
|
||||
@@ -90,7 +92,7 @@ function(add_gtest)
|
||||
else()
|
||||
target_link_libraries(${test_name} gtest_main pthread rt ${PX4_PLATFORM})
|
||||
endif()
|
||||
add_test(NAME ${test_name} COMMAND ${test_name} WORKING_DIRECTORY ${PX4_SOURCE_DIR})
|
||||
add_test(NAME ${test_name} COMMAND ${test_name} --gtest_output=xml WORKING_DIRECTORY ${PX4_BINARY_DIR})
|
||||
add_dependencies(check ${test_name})
|
||||
endforeach()
|
||||
endfunction()
|
||||
|
||||
Reference in New Issue
Block a user