Improve:comiple.

This commit is contained in:
Fancy code 2024-07-17 15:03:25 +08:00
parent 2a8655a76a
commit 3a2a01efd7
2 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ define_file_name(${TARGET_NAME})
add_custom_target(
HuntingCameraTest_Report
COMMAND ../output_files/test/bin/HuntingCameraTest --gtest_filter=HuntingCameraTest.HS_INTEGRATION_HunttingCamera_EXAMPLE_FormatSDCard --gtest_output=xml:./${TARGET_NAME}.xml
COMMAND ../output_files/test/bin/HuntingCameraTest --gtest_output=xml:./${TARGET_NAME}.xml || true
COMMAND xsltproc ${TEST_SOURCE_PATH}/support_test/gtest2html.xslt ${TARGET_NAME}.xml > ${TARGET_NAME}_Report.html
COMMAND lcov --gcov-tool /usr/bin/gcov-9 -c -d . -o ${TARGET_NAME}.info
COMMAND lcov --remove ${TARGET_NAME}.info \"/usr/include/*\" \"${EXTERNAL_SOURCE_PATH}/*\" \"${TEST_SOURCE_PATH}/*\" -o ${TARGET_NAME}_final.info

View File

@ -20,7 +20,7 @@ include_directories(
aux_source_directory(./src TEST_TOOL_SRC_FILES)
set(TEST_TOOL_TARGET IpcConfigTestTool)
add_library(${TEST_TOOL_TARGET} STATIC ${TEST_TOOL_SRC_FILES})
target_link_libraries(${TEST_TOOL_TARGET} IpcConfig Log)
target_link_libraries(${TEST_TOOL_TARGET} IpcConfig LinuxApiMock Log)
add_custom_target(
IpcConfigTestTool_code_check