diff options
| author | liuxueli <[email protected]> | 2024-11-14 11:57:23 +0800 |
|---|---|---|
| committer | liuxueli <[email protected]> | 2024-11-14 15:32:35 +0800 |
| commit | 31b1625933767cef24e594c8411fb6687f618b77 (patch) | |
| tree | 9db0ab9fd63528de68797f254f25dcb497359f76 /test/CMakeLists.txt | |
| parent | 1da8dfafcb230fca5456e881a175a693ea01e223 (diff) | |
Adapt rocky 9 aarch64
Diffstat (limited to 'test/CMakeLists.txt')
| -rw-r--r-- | test/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 042c908..0a443a5 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -9,7 +9,7 @@ include(ExternalProject) ExternalProject_Add(ProtoTest PREFIX ProtoTest URL ${CMAKE_CURRENT_SOURCE_DIR}/test_protocol_run.zip - URL_MD5 71d8284b59af0286b5f31f0a3160bc44 + URL_MD5 93d8b5fb891e9652f36540cf1af0c330 CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR> -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} CONFIGURE_COMMAND "" BUILD_COMMAND "" @@ -30,11 +30,11 @@ add_executable(proto_test_main IMPORTED GLOBAL) add_dependencies(proto_test_main ProtoTest) set_property(TARGET proto_test_main PROPERTY IMPORTED_LOCATION ${SOURCE_DIR}/test_protocol_plug_main) - add_library(${lib_name}_test_plug SHARED ${lib_name}_test_plug.cpp) target_link_libraries(${lib_name}_test_plug MESA_prof_load cjson) set_target_properties(${lib_name}_test_plug PROPERTIES PREFIX "") +add_test(NAME COPY_MAIN COMMAND sh -c "cp -r /home/mesasoft/sapp_run/tools/plugin_test_main ${PROTO_TEST_RUN_DIR}/test_protocol_plug_main") add_test(NAME COPY_QUIC_SO COMMAND sh -c "cp ${CMAKE_BINARY_DIR}/${lib_name}.so ${PROTO_TEST_RUN_DIR}/plug/protocol/${lib_name}/${lib_name}.so") add_test(NAME COPY_TEST_SO COMMAND sh -c "cp ${CMAKE_CURRENT_BINARY_DIR}/${lib_name}_test_plug.so ${PROTO_TEST_RUN_DIR}/plug/business/${lib_name}_test_plug/${lib_name}_test_plug.so") add_test(NAME DNS_QUERY COMMAND proto_test_main ${CMAKE_CURRENT_SOURCE_DIR}/pcap/query/query_result.json -f "find ${CMAKE_CURRENT_SOURCE_DIR}/pcap/query/ -name *.pcap|sort -V" WORKING_DIRECTORY ${PROTO_TEST_RUN_DIR}) |
