<commit_before>INCLUDE_DIRECTORIES(${DARIADB_STORAGE_INCLUDE_DIR})
INCLUDE_DIRECTORIES(${DARIADB_NETWORK_INCLUDE_DIR})

add_library(libcommon_test STATIC test_common.cpp test_common.h)
TARGET_LINK_LIBRARIES(libcommon_test libdariadb ${Boost_LIBRARIES})
set_target_properties(libcommon_test PROPERTIES FOLDER Tests)

MESSAGE(STATUS "Test: " ${name})

macro(TEST_CASE name src)
	#MESSAGE(STATUS " +" ${name} ": " "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${name}")
	MESSAGE(STATUS " +" ${name})
	add_executable(${name} ${src})
    
	TARGET_LINK_LIBRARIES(${name} libcommon_test ${DARIADB_STORAGE_LIBS})
	
	add_test(${name} ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${name}) 
	set_target_properties(${name} PROPERTIES FOLDER Tests)
endmacro(TEST_CASE)

if(ENABLE_SERVER)
   TEST_CASE(net_test net_test.cpp)
   TARGET_LINK_LIBRARIES(net_test ${DARIADB_CLIENT_LIBS} libnet-server)
endif()

TEST_CASE(engine_test engine_test.cpp)
TEST_CASE(aof_test aof_test.cpp)
TEST_CASE(pages_test pages_test.cpp)
TEST_CASE(compression_test compression_test.cpp)
TEST_CASE(utils_test utils_test.cpp)
TEST_CASE(memstorage_test memstorage_test.cpp)<commit_msg>Update CMakeLists.txt<commit_after>INCLUDE_DIRECTORIES(${DARIADB_STORAGE_INCLUDE_DIR})
INCLUDE_DIRECTORIES(${DARIADB_NETWORK_INCLUDE_DIR})

add_library(libcommon_test STATIC test_common.cpp test_common.h)
TARGET_LINK_LIBRARIES(libcommon_test libdariadb ${Boost_LIBRARIES})
set_target_properties(libcommon_test PROPERTIES FOLDER Tests)

MESSAGE(STATUS "Test: " ${name})

macro(TEST_CASE name src)
	MESSAGE(STATUS " +" ${name})
	add_executable(${name} ${src})
    
	TARGET_LINK_LIBRARIES(${name} libcommon_test ${DARIADB_STORAGE_LIBS})
	
	add_test(${name} ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${name}) 
	set_target_properties(${name} PROPERTIES FOLDER Tests)
endmacro(TEST_CASE)

if(ENABLE_SERVER)
   TEST_CASE(net_test net_test.cpp)
   TARGET_LINK_LIBRARIES(net_test ${DARIADB_CLIENT_LIBS} libnet-server)
endif()

TEST_CASE(engine_test engine_test.cpp)
TEST_CASE(aof_test aof_test.cpp)
TEST_CASE(pages_test pages_test.cpp)
TEST_CASE(compression_test compression_test.cpp)
TEST_CASE(utils_test utils_test.cpp)
TEST_CASE(memstorage_test memstorage_test.cpp)

{'fraction_non_alphanumeric': 0.10942528735632184, 'fraction_numerical': 0.0, 'mean_word_length': 10.392670157068062, 'pattern_counts': {'":': 1, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2057498', 'n_tokens_mistral': 864, 'n_tokens_neox': 827, 'n_words': 107}