Skip to content
Draft
Show file tree
Hide file tree
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
18 changes: 16 additions & 2 deletions lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ if(BUILD_TESTING)
#
# Update the above comment about the version to update.
add_subdirectory(Catch2)
include(CTest)
include(Catch)

# Disable -Werror=parentheses for Catch2 to avoid issues with older compilers (GCC <=11)
# that complain about the use of parentheses in macro expansions. We see errors like this:
Expand All @@ -48,10 +50,22 @@ if(BUILD_TESTING)
# done in one TEST_CASE expected to carry over into the next TEST_CASE. This
# macro allows us to add common command line arguments to all tests. For now,
# we ensure declaration order execution via --order decl.
# macro(add_catch2_test)
# set(oneValueArgs NAME ENVIRONMENT)
# cmake_parse_arguments(CATCH2_TEST "" ${oneValueArgs} "" ${ARGN})
# catch_discover_tests(${CATCH2_TEST_NAME} PROPERTIES ENVIRONMENT ${CATCH2_TEST_ENVIRONMENT})
# endmacro()
macro(add_catch2_test)
cmake_parse_arguments(CATCH2_TEST "" "NAME" "COMMAND" ${ARGN})
add_test(NAME ${CATCH2_TEST_NAME} COMMAND ${CATCH2_TEST_COMMAND} --order decl)
cmake_parse_arguments(CATCH2_TEST "" "NAME" "ENVIRONMENT" ${ARGN})

set(_catch_properties)
if(CATCH2_TEST_ENVIRONMENT)
list(APPEND _catch_properties ENVIRONMENT "${CATCH2_TEST_ENVIRONMENT}")
endif()

catch_discover_tests(${CATCH2_TEST_NAME} DISCOVERY_MODE PRE_TEST PROPERTIES ${_catch_properties})
endmacro()

endif()

if(NOT TARGET yaml-cpp::yaml-cpp)
Expand Down
2 changes: 1 addition & 1 deletion lib/swoc/unit_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ if(CMAKE_COMPILER_IS_GNUCXX)
endif()
endif()

add_catch2_test(NAME test_libswoc COMMAND test_libswoc)
add_catch2_test(NAME test_libswoc)
2 changes: 1 addition & 1 deletion plugins/cachekey/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ if(BUILD_TESTING)
target_include_directories(pattern_test PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
target_compile_definitions(pattern_test PRIVATE CACHEKEY_UNIT_TEST)
target_link_libraries(pattern_test PRIVATE Catch2::Catch2WithMain libswoc::libswoc ts::tsutil)
add_catch2_test(NAME pattern_test COMMAND pattern_test)
add_catch2_test(NAME pattern_test)
endif()
31 changes: 14 additions & 17 deletions plugins/esi/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,20 @@ target_link_libraries(esitest PUBLIC esi-common esicore)
macro(ADD_ESI_TEST NAME)
add_executable(${NAME} print_funcs.cc ${ARGN})
target_link_libraries(${NAME} PRIVATE esitest)
add_catch2_test(NAME ${NAME}_esi COMMAND $<TARGET_FILE:${NAME}>)
# Use ASan leak suppression for intentional DbgCtl leaks (issue #12776)
set_tests_properties(
${NAME}_esi PROPERTIES ENVIRONMENT
"LSAN_OPTIONS=suppressions=${CMAKE_CURRENT_SOURCE_DIR}/esi_test_leak_suppression.txt"
add_catch2_test(
NAME ${NAME} ENVIRONMENT "LSAN_OPTIONS=suppressions=${CMAKE_CURRENT_SOURCE_DIR}/esi_test_leak_suppression.txt"
)
endmacro()

add_esi_test(test_docnode docnode_test.cc)
target_link_libraries(test_docnode PRIVATE Catch2::Catch2WithMain esi-common esicore)
add_esi_test(test_parser parser_test.cc)
target_link_libraries(test_parser PRIVATE Catch2::Catch2WithMain esi-common esicore)
add_esi_test(test_processor processor_test.cc)
target_link_libraries(test_processor PRIVATE Catch2::Catch2WithMain esi-common esicore)
add_esi_test(test_utils utils_test.cc)
target_link_libraries(test_utils PRIVATE Catch2::Catch2WithMain esi-common)
add_esi_test(test_vars vars_test.cc)
target_link_libraries(test_vars PRIVATE Catch2::Catch2WithMain esi-common esicore)
add_esi_test(test_gzip gzip_test.cc)
target_link_libraries(test_gzip PRIVATE Catch2::Catch2WithMain esi-common)
add_esi_test(test_docnode_esi docnode_test.cc)
target_link_libraries(test_docnode_esi PRIVATE Catch2::Catch2WithMain esi-common esicore)
add_esi_test(test_parser_esi parser_test.cc)
target_link_libraries(test_parser_esi PRIVATE Catch2::Catch2WithMain esi-common esicore)
add_esi_test(test_processor_esi processor_test.cc)
target_link_libraries(test_processor_esi PRIVATE Catch2::Catch2WithMain esi-common esicore)
add_esi_test(test_utils_esi utils_test.cc)
target_link_libraries(test_utils_esi PRIVATE Catch2::Catch2WithMain esi-common)
add_esi_test(test_vars_esi vars_test.cc)
target_link_libraries(test_vars_esi PRIVATE Catch2::Catch2WithMain esi-common esicore)
add_esi_test(test_gzip_esi gzip_test.cc)
target_link_libraries(test_gzip_esi PRIVATE Catch2::Catch2WithMain esi-common)
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ add_executable(
target_link_libraries(test_access_control PRIVATE ts::tscore OpenSSL::SSL OpenSSL::Crypto Catch2::Catch2WithMain)
target_compile_definitions(test_access_control PRIVATE ACCESS_CONTROL_UNIT_TEST)

add_catch2_test(NAME test_access_control COMMAND test_access_control)
add_catch2_test(NAME test_access_control)
2 changes: 1 addition & 1 deletion plugins/experimental/cookie_remap/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ if(BUILD_TESTING)

target_link_libraries(test_cookiejar PRIVATE Catch2::Catch2WithMain)

add_catch2_test(NAME test_cookiejar COMMAND test_cookiejar)
add_catch2_test(NAME test_cookiejar)
endif()
2 changes: 1 addition & 1 deletion plugins/experimental/ja4_fingerprint/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ if(BUILD_TESTING)
add_executable(test_ja4 test_ja4.cc ja4.cc tls_client_hello_summary.cc)
target_link_libraries(test_ja4 PRIVATE Catch2::Catch2WithMain)

add_catch2_test(NAME test_ja4 COMMAND test_ja4)
add_catch2_test(NAME test_ja4)
endif()
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ add_executable(test_stale_response test_DirectiveParser.cc test_BodyData.cc ${PR
target_include_directories(test_stale_response PRIVATE "${PROJECT_SOURCE_DIR}")
target_link_libraries(test_stale_response PRIVATE ts::tsutil libswoc::libswoc Catch2::Catch2WithMain)

add_catch2_test(NAME test_stale_response COMMAND test_stale_response)
add_catch2_test(NAME test_stale_response)
2 changes: 1 addition & 1 deletion plugins/experimental/txn_box/unit_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ target_link_libraries(
# After fighting with CMake over the include paths, it's just not worth it to be correct.
# target_link_libraries should make this work but it doesn't. I can't figure out why.
target_include_directories(test_txn_box PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../plugin/include)
add_catch2_test(NAME test_txn_box COMMAND test_txn_box)
add_catch2_test(NAME test_txn_box)
7 changes: 3 additions & 4 deletions plugins/experimental/uri_signing/unit_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ target_link_libraries(
ts::inknet
ts::overridable_txn_vars
)
add_catch2_test(NAME uri_signing_test COMMAND uri_signing_test)
set_tests_properties(
uri_signing_test
PROPERTIES ENVIRONMENT "LSAN_OPTIONS=suppressions=${CMAKE_CURRENT_SOURCE_DIR}/uri_signing_test_leak_suppression.txt"
add_catch2_test(
NAME uri_signing_test PROPERTIES ENVIRONMENT
"LSAN_OPTIONS=suppressions=${CMAKE_CURRENT_SOURCE_DIR}/uri_signing_test_leak_suppression.txt"
)
2 changes: 1 addition & 1 deletion plugins/ja3_fingerprint/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ verify_remap_plugin(ja3_fingerprint)
if(BUILD_TESTING)
add_executable(test_ja3_fingerprint ja3_utils.cc test_utils.cc)
target_link_libraries(test_ja3_fingerprint PRIVATE Catch2::Catch2WithMain)
add_catch2_test(NAME test_ja3_fingerprint COMMAND test_ja3_fingerprint)
add_catch2_test(NAME test_ja3_fingerprint)
endif()
2 changes: 1 addition & 1 deletion plugins/origin_server_auth/unit_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ target_link_libraries(test_origin_server_auth PRIVATE OpenSSL::Crypto Catch2::Ca

target_compile_definitions(test_origin_server_auth PRIVATE AWS_AUTH_V4_UNIT_TEST)

add_catch2_test(NAME test_origin_server_auth COMMAND test_origin_server_auth)
add_catch2_test(NAME test_origin_server_auth)
2 changes: 1 addition & 1 deletion plugins/prefetch/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ target_link_libraries(test_evaluate PRIVATE Catch2::Catch2WithMain)

target_compile_definitions(test_evaluate PRIVATE PREFETCH_UNIT_TEST)

add_catch2_test(NAME test_evaluate COMMAND test_evaluate)
add_catch2_test(NAME test_evaluate)
8 changes: 4 additions & 4 deletions plugins/slice/unit-tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@
add_executable(test_content_range test_content_range.cc ${PROJECT_SOURCE_DIR}/ContentRange.cc)
target_compile_definitions(test_content_range PRIVATE UNITTEST)
target_link_libraries(test_content_range PRIVATE Catch2::Catch2WithMain ts::tsutil)
add_catch2_test(NAME test_content_range COMMAND test_content_range)
add_catch2_test(NAME test_content_range)

add_executable(test_range test_range.cc ${PROJECT_SOURCE_DIR}/Range.cc)
target_compile_definitions(test_range PRIVATE UNITTEST)
target_link_libraries(test_range PRIVATE Catch2::Catch2WithMain ts::tsutil)
add_catch2_test(NAME test_range COMMAND test_range)
add_catch2_test(NAME test_range)

add_executable(test_config test_config.cc ${PROJECT_SOURCE_DIR}/Config.cc ${PROJECT_SOURCE_DIR}/ObjectSizeCache.cc)
target_compile_definitions(test_config PRIVATE UNITTEST)
target_link_libraries(test_config PRIVATE Catch2::Catch2WithMain ts::tsutil)
add_catch2_test(NAME test_config COMMAND test_config)
add_catch2_test(NAME test_config)

add_executable(test_cache test_cache.cc ${PROJECT_SOURCE_DIR}/ObjectSizeCache.cc)
target_compile_definitions(test_cache PRIVATE UNITTEST)
target_link_libraries(test_cache PRIVATE Catch2::Catch2WithMain ts::tsutil)
add_catch2_test(NAME test_cache COMMAND test_cache)
add_catch2_test(NAME test_cache)
2 changes: 1 addition & 1 deletion plugins/traffic_dump/unit_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ add_executable(test_traffic_dump test_json_utils.cc test_sensitive_fields.cc ${P
target_include_directories(test_traffic_dump PRIVATE "${PROJECT_SOURCE_DIR}")
target_link_libraries(test_traffic_dump PRIVATE Catch2::Catch2WithMain)

add_catch2_test(NAME test_traffic_dump COMMAND test_traffic_dump)
add_catch2_test(NAME test_traffic_dump)
2 changes: 1 addition & 1 deletion plugins/xdebug/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ if(BUILD_TESTING)
add_executable(test_xdebug unit_tests/test_xdebug_utils.cc xdebug_utils.cc xdebug_escape.cc)
target_include_directories(test_xdebug PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
target_link_libraries(test_xdebug PRIVATE Catch2::Catch2WithMain libswoc::libswoc)
add_catch2_test(NAME test_xdebug COMMAND test_xdebug)
add_catch2_test(NAME test_xdebug)
endif()
30 changes: 15 additions & 15 deletions src/iocore/cache/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ if(BUILD_TESTING)
macro(add_cache_test name)
add_executable(${name} unit_tests/main.cc unit_tests/stub.cc unit_tests/CacheTestHandler.cc ${ARGN})
target_link_libraries(${name} PRIVATE ts::inkcache Catch2::Catch2WithMain)
add_catch2_test(NAME test_cache_${name} COMMAND $<TARGET_FILE:${name}>)
add_catch2_test(NAME ${name})
endmacro()

add_cache_test(Cache unit_tests/test_Cache.cc)
Expand All @@ -76,20 +76,20 @@ if(BUILD_TESTING)
endforeach()
add_cache_test(Populated_Cache_Disk_Failure unit_tests/test_Populated_Cache_Disk_Failure.cc)
endif()
add_cache_test(CacheDir unit_tests/test_CacheDir.cc)
add_cache_test(CacheVol unit_tests/test_CacheVol.cc)
add_cache_test(RWW unit_tests/test_RWW.cc)
add_cache_test(Alternate_L_to_S unit_tests/test_Alternate_L_to_S.cc)
add_cache_test(Alternate_S_to_L unit_tests/test_Alternate_S_to_L.cc)
add_cache_test(Alternate_L_to_S_remove_L unit_tests/test_Alternate_L_to_S_remove_L.cc)
add_cache_test(Alternate_L_to_S_remove_S unit_tests/test_Alternate_L_to_S_remove_S.cc)
add_cache_test(Alternate_S_to_L_remove_L unit_tests/test_Alternate_S_to_L_remove_L.cc)
add_cache_test(Alternate_S_to_L_remove_S unit_tests/test_Alternate_S_to_L_remove_S.cc)
add_cache_test(Update_L_to_S unit_tests/test_Update_L_to_S.cc)
add_cache_test(Update_S_to_L unit_tests/test_Update_S_to_L.cc)
add_cache_test(Update_Header unit_tests/test_Update_header.cc)
add_cache_test(CacheStripe unit_tests/test_Stripe.cc)
add_cache_test(CacheAggregateWriteBuffer unit_tests/test_AggregateWriteBuffer.cc)
add_cache_test(test_cache_CacheDir unit_tests/test_CacheDir.cc)
add_cache_test(test_cache_CacheVol unit_tests/test_CacheVol.cc)
add_cache_test(test_cache_RWW unit_tests/test_RWW.cc)
add_cache_test(test_cache_Alternate_L_to_S unit_tests/test_Alternate_L_to_S.cc)
add_cache_test(test_cache_Alternate_S_to_L unit_tests/test_Alternate_S_to_L.cc)
add_cache_test(test_cache_Alternate_L_to_S_remove_L unit_tests/test_Alternate_L_to_S_remove_L.cc)
add_cache_test(test_cache_Alternate_L_to_S_remove_S unit_tests/test_Alternate_L_to_S_remove_S.cc)
add_cache_test(test_cache_Alternate_S_to_L_remove_L unit_tests/test_Alternate_S_to_L_remove_L.cc)
add_cache_test(test_cache_Alternate_S_to_L_remove_S unit_tests/test_Alternate_S_to_L_remove_S.cc)
add_cache_test(test_cache_Update_L_to_S unit_tests/test_Update_L_to_S.cc)
add_cache_test(test_cache_Update_S_to_L unit_tests/test_Update_S_to_L.cc)
add_cache_test(test_cache_Update_Header unit_tests/test_Update_header.cc)
add_cache_test(test_cache_CacheStripe unit_tests/test_Stripe.cc)
add_cache_test(test_cache_CacheAggregateWriteBuffer unit_tests/test_AggregateWriteBuffer.cc)

endif()

Expand Down
6 changes: 3 additions & 3 deletions src/iocore/eventsystem/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ if(BUILD_TESTING)
add_executable(test_MIOBufferWriter unit_tests/test_MIOBufferWriter.cc)
target_link_libraries(test_MIOBufferWriter libswoc::libswoc Catch2::Catch2WithMain)

add_catch2_test(NAME test_EventSystem COMMAND test_EventSystem)
add_catch2_test(NAME test_IOBuffer COMMAND test_IOBuffer)
add_catch2_test(NAME test_MIOBufferWriter COMMAND test_MIOBufferWriter)
add_catch2_test(NAME test_EventSystem)
add_catch2_test(NAME test_IOBuffer)
add_catch2_test(NAME test_MIOBufferWriter)

endif()

Expand Down
12 changes: 6 additions & 6 deletions src/iocore/hostdb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ if(BUILD_TESTING)
ts::inkhostdb
)

add_executable(test_HostFile test_HostFile.cc HostFile.cc HostDBInfo.cc)
target_link_libraries(test_HostFile PRIVATE ts::tscore ts::tsutil ts::inkevent Catch2::Catch2WithMain)
add_catch2_test(NAME test_hostdb_HostFile COMMAND $<TARGET_FILE:test_HostFile>)
add_executable(test_hostdb_HostFile test_HostFile.cc HostFile.cc HostDBInfo.cc)
target_link_libraries(test_hostdb_HostFile PRIVATE ts::tscore ts::tsutil ts::inkevent Catch2::Catch2WithMain)
add_catch2_test(NAME test_hostdb_HostFile)

add_executable(test_RefCountCache test_RefCountCache.cc)
target_link_libraries(test_RefCountCache PRIVATE ts::tscore ts::tsutil ts::inkevent Catch2::Catch2WithMain)
add_catch2_test(NAME test_hostdb_RefCountCache COMMAND $<TARGET_FILE:test_RefCountCache>)
add_executable(test_hostdb_RefCountCache test_RefCountCache.cc)
target_link_libraries(test_hostdb_RefCountCache PRIVATE ts::tscore ts::tsutil ts::inkevent Catch2::Catch2WithMain)
add_test(NAME test_hostdb_RefCountCache COMMAND test_hostdb_RefCountCache)

endif()
2 changes: 1 addition & 1 deletion src/iocore/io_uring/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ if(BUILD_TESTING)

target_include_directories(test_iouring PRIVATE ${CATCH_INCLUDE_DIR})

add_catch2_test(NAME test_iouring COMMAND $<TARGET_FILE:test_iouring>)
add_catch2_test(NAME test_iouring)
endif()

clang_tidy_check(inkuring)
7 changes: 4 additions & 3 deletions src/iocore/net/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -172,12 +172,13 @@ if(BUILD_TESTING)
endif()
set(LIBINKNET_UNIT_TEST_DIR "${CMAKE_SOURCE_DIR}/src/iocore/net/unit_tests")
target_compile_definitions(test_net PRIVATE LIBINKNET_UNIT_TEST_DIR=${LIBINKNET_UNIT_TEST_DIR})
add_catch2_test(NAME test_net COMMAND test_net)

if(NOT APPLE)
if(APPLE)
# Disable ORD violation caused by double definition inside a stub file libinknet_stub.cc
# see remap_test_dlopen_leak_suppression.txt for more info.
set_tests_properties(test_net PROPERTIES ENVIRONMENT "ASAN_OPTIONS=detect_odr_violation=0")
add_catch2_test(NAME test_net ENVIRONMENT "ASAN_OPTIONS=detect_odr_violation=0")
else()
add_catch2_test(NAME test_net)
endif()
endif()

Expand Down
4 changes: 2 additions & 2 deletions src/mgmt/rpc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ if(BUILD_TESTING)
target_link_libraries(
test_jsonrpc ts::tsutil Catch2::Catch2WithMain ts::rpcpublichandlers ts::jsonrpc_protocol libswoc::libswoc
)
add_catch2_test(NAME test_jsonrpc COMMAND test_jsonrpc)
add_catch2_test(NAME test_jsonrpc)

add_executable(
test_jsonrpcserver server/unit_tests/test_rpcserver.cc ${CMAKE_SOURCE_DIR}/src/shared/rpc/IPCSocketClient.cc
)
target_link_libraries(test_jsonrpcserver Catch2::Catch2WithMain ts::jsonrpc_server ts::inkevent libswoc::libswoc)
add_catch2_test(NAME test_jsonrpcserver COMMAND test_jsonrpcserver)
add_catch2_test(NAME test_jsonrpcserver)
endif()

clang_tidy_check(jsonrpc_protocol)
14 changes: 12 additions & 2 deletions src/mgmt/rpc/server/unit_tests/test_rpcserver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,18 @@ add_method_handler(const std::string &name, Func &&call)

namespace
{
const std::string sockPath{"tests/var/jsonrpc20_test.sock"};
const std::string lockPath{"tests/var/jsonrpc20_test.lock"};

std::string
pid_specific_file(const char *suffix)
{
char buffer[PATH_MAX];

snprintf(buffer, PATH_MAX, "tests/var/jsonrpc20_test.%d.%s", getpid(), suffix);
return std::string(buffer);
}

const std::string sockPath = pid_specific_file("sock");
const std::string lockPath = pid_specific_file("lock");
constexpr int default_backlog{5};
constexpr int default_maxRetriesOnTransientErrors{64};
constexpr size_t default_incoming_req_max_size{32000 * 3};
Expand Down
4 changes: 2 additions & 2 deletions src/proxy/hdrs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ if(BUILD_TESTING)
target_link_libraries(
test_proxy_hdrs PRIVATE ts::hdrs ts::tscore ts::inkevent libswoc::libswoc Catch2::Catch2WithMain lshpack
)
add_catch2_test(NAME test_proxy_hdrs COMMAND test_proxy_hdrs)
add_catch2_test(NAME test_proxy_hdrs)

add_executable(test_proxy_hdrs_xpack unit_tests/test_XPACK.cc)
target_link_libraries(
test_proxy_hdrs_xpack PRIVATE ts::hdrs ts::tscore ts::tsutil libswoc::libswoc Catch2::Catch2WithMain lshpack
)
add_catch2_test(NAME test_proxy_hdrs_xpack COMMAND test_proxy_hdrs_xpack)
add_catch2_test(NAME test_proxy_hdrs_xpack)
endif()

clang_tidy_check(hdrs)
2 changes: 1 addition & 1 deletion src/proxy/http/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ if(BUILD_TESTING)
unit_tests/test_PreWarm.cc ForwardedConfig.cc HttpBodyFactory.cc
)
target_link_libraries(test_proxy_http PRIVATE Catch2::Catch2WithMain hdrs tscore inkevent proxy logging)
add_catch2_test(NAME test_proxy_http COMMAND test_proxy_http)
add_catch2_test(NAME test_proxy_http)
endif(BUILD_TESTING)

clang_tidy_check(http)
Loading