From 7e0aa9f35ba717e577abd2f603b62883244c136d Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Fri, 24 Feb 2023 23:46:37 +0800 Subject: [PATCH] test: combine global codec test --- test/CMakeLists.txt | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index cc2a697..20590e9 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -58,19 +58,27 @@ include_directories(../src/klotski_core) add_library(test_global_utils STATIC global/global_utils.cc) set(TEST_GLOBAL_DEPS ${TEST_DEPS} test_global_utils tiny_pool) -include_directories(../src/klotski_core/common_code) -add_executable(test_global_common_code global/common_code.cc) -target_link_libraries(test_global_common_code ${TEST_GLOBAL_DEPS}) -add_test(NAME global_common_code COMMAND test_global_common_code) - +include_directories(../src/klotski_core/raw_code) include_directories(../src/klotski_core/short_code) -add_executable(test_global_short_code global/short_code.cc) -target_link_libraries(test_global_short_code ${TEST_GLOBAL_DEPS}) -add_test(NAME global_short_code COMMAND test_global_short_code) +include_directories(../src/klotski_core/common_code) -include_directories(../src/klotski_core/raw_code) -add_executable(test_global_raw_code global/raw_code.cc) -target_link_libraries(test_global_raw_code ${TEST_GLOBAL_DEPS}) -add_test(NAME global_raw_code COMMAND test_global_raw_code) +add_executable(test_codec_global global/short_code.cc global/common_code.cc global/raw_code.cc) +target_link_libraries(test_codec_global ${TEST_GLOBAL_DEPS}) +add_test(NAME codec_global COMMAND test_codec_global) + +#include_directories(../src/klotski_core/common_code) +#add_executable(test_global_common_code global/common_code.cc) +#target_link_libraries(test_global_common_code ${TEST_GLOBAL_DEPS}) +#add_test(NAME global_common_code COMMAND test_global_common_code) +# +#include_directories(../src/klotski_core/short_code) +#add_executable(test_global_short_code global/short_code.cc) +#target_link_libraries(test_global_short_code ${TEST_GLOBAL_DEPS}) +#add_test(NAME global_short_code COMMAND test_global_short_code) +# +#include_directories(../src/klotski_core/raw_code) +#add_executable(test_global_raw_code global/raw_code.cc) +#target_link_libraries(test_global_raw_code ${TEST_GLOBAL_DEPS}) +#add_test(NAME global_raw_code COMMAND test_global_raw_code) ################################################################################