修复了半自动测试系统读取文件过程中存在的系列问题

This commit is contained in:
2022-05-25 11:04:41 +08:00
parent 8b4b560250
commit ce65bf8ee0
5 changed files with 33 additions and 14 deletions

View File

@@ -10,6 +10,6 @@ aux_source_directory("${CMAKE_CURRENT_SOURCE_DIR}/src" ALL_TEST_SRCS)
add_executable(bus_all_test ${SRCS} ${ALL_TEST_SRCS} main.c)
add_custom_command(TARGET bus_all_test POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"${CMAKE_CURRENT_SOURCE_DIR}/test_cases/"
$<TARGET_FILE_DIR:bus_all_test>)
COMMAND ${CMAKE_COMMAND} -E copy_directory
"${CMAKE_CURRENT_SOURCE_DIR}/test_cases"
"$<TARGET_FILE_DIR:bus_all_test>/test_cases")