From 3a2a01efd7f44b6af93d0b31f36dda196871d20f Mon Sep 17 00:00:00 2001 From: Fancy code <258828110.@qq.com> Date: Wed, 17 Jul 2024 15:03:25 +0800 Subject: [PATCH] Improve:comiple. --- test/application/HuntingCamera/CMakeLists.txt | 2 +- test/middleware/IpcConfig/tool/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/application/HuntingCamera/CMakeLists.txt b/test/application/HuntingCamera/CMakeLists.txt index 28d78aa..f0102f8 100644 --- a/test/application/HuntingCamera/CMakeLists.txt +++ b/test/application/HuntingCamera/CMakeLists.txt @@ -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 diff --git a/test/middleware/IpcConfig/tool/CMakeLists.txt b/test/middleware/IpcConfig/tool/CMakeLists.txt index b0d053b..00ab20c 100644 --- a/test/middleware/IpcConfig/tool/CMakeLists.txt +++ b/test/middleware/IpcConfig/tool/CMakeLists.txt @@ -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