Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions proxy/logging/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,22 @@ target_link_libraries(logging
ts::tscore
yaml-cpp::yaml-cpp
)

add_executable(test_LogUtils
LogUtils.cc
unit-tests/test_LogUtils.cc
)
target_compile_definitions(test_LogUtils PRIVATE TEST_LOG_UTILS)
target_include_directories(test_LogUtils PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(test_LogUtils tscore records catch2::catch2)
add_test(NAME test_LogUtils COMMAND test_LogUtils)

add_executable(test_RolledLogDeleter
LogUtils.cc
RolledLogDeleter.cc
unit-tests/test_LogUtils.cc
)
target_compile_definitions(test_RolledLogDeleter PRIVATE TEST_LOG_UTILS)
target_include_directories(test_RolledLogDeleter PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(test_RolledLogDeleter tscore records catch2::catch2)
add_test(NAME test_RolledLogDeleter COMMAND test_RolledLogDeleter)