From 8d405b265285c368df2e9cf1c14acee7532e0ee7 Mon Sep 17 00:00:00 2001 From: nancy.liao <huihui.liao@greentest.com.cn> Date: ćšć, 29 5æ 2025 18:14:38 +0800 Subject: [PATCH] Merge branch 'develop' of http://139.9.88.116:3000/r/module/open-license-manager into develop --- test/functional/CMakeLists.txt | 73 ++++++++++++++++++++++-------------- 1 files changed, 45 insertions(+), 28 deletions(-) diff --git a/test/functional/CMakeLists.txt b/test/functional/CMakeLists.txt index 1214157..6d2397b 100644 --- a/test/functional/CMakeLists.txt +++ b/test/functional/CMakeLists.txt @@ -2,57 +2,74 @@ generate-license.cpp ) -target_link_libraries( - license_generator_snippet - license_generator_lib +target_link_libraries( license_generator_snippet + Boost::unit_test_framework + Boost::filesystem + Boost::system ) -add_executable( - standard_license_test +add_executable( test_standard_license standard-license_test.cpp ) -target_link_libraries( - standard_license_test +target_link_libraries( test_standard_license licensecc_static license_generator_snippet - ${Boost_LIBRARIES} + Boost::unit_test_framework + Boost::filesystem + Boost::system ) -add_executable( - date_test +add_executable( test_date date_test.cpp ) -target_link_libraries( - date_test +target_link_libraries( test_date licensecc_static license_generator_snippet - ${Boost_LIBRARIES} + Boost::unit_test_framework + Boost::filesystem + Boost::system ) -add_executable( - volid_test - volid_test.cpp +add_executable( test_signature_verifier + signature_verifier_test.cpp ) target_link_libraries( - volid_test + test_signature_verifier licensecc_static license_generator_snippet - ${Boost_LIBRARIES} + Boost::unit_test_framework + Boost::filesystem + Boost::system ) -IF( ( CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux") AND CMAKE_CROSSCOMPILING) -#binfmt_misc doesn't work in my system :( - ADD_TEST(NAME standard_license_test COMMAND wine ${CMAKE_CURRENT_BINARY_DIR}/standard_license_test WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) - ADD_TEST(NAME date_test COMMAND wine ${CMAKE_CURRENT_BINARY_DIR}/date_test WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) - ADD_TEST(NAME volid_test COMMAND wine ${CMAKE_CURRENT_BINARY_DIR}/volid_test WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) -ELSE() - ADD_TEST(NAME standard_license_test COMMAND standard_license_test WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) - ADD_TEST(NAME date_test COMMAND date_test WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) - ADD_TEST(NAME volid_test COMMAND volid_test WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) -ENDIF() +add_executable(test_it_hw_identifier hw_identifier_it_test.cpp) + +target_link_libraries(test_it_hw_identifier + license_generator_snippet + licensecc_static + Boost::unit_test_framework + Boost::filesystem + Boost::system +) + +add_executable(test_crack crack_test.cpp) + +target_link_libraries( test_crack + license_generator_snippet + licensecc_static + Boost::unit_test_framework + Boost::filesystem + Boost::system +) + +ADD_TEST(NAME test_crack COMMAND test_crack WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) +ADD_TEST(NAME test_date COMMAND test_date WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) +ADD_TEST(NAME test_it_hw_identifier COMMAND test_it_hw_identifier WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) +ADD_TEST(NAME test_standard_license COMMAND test_standard_license WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) +ADD_TEST(NAME test_signature_verifier COMMAND test_signature_verifier WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) -- Gitblit v1.9.1