Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake: add tests for proxy/http3 #10310

Merged
merged 1 commit into from
Aug 30, 2023
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
40 changes: 40 additions & 0 deletions proxy/http3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,43 @@ add_library(ts::http3 ALIAS http3)
target_include_directories(http3 PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
target_link_libraries(http3 PUBLIC ts::quic PRIVATE ts::proxy)

add_executable(test_http3
test/main.cc
test/test_Http3Frame.cc
test/test_Http3FrameDispatcher.cc
Http3ProtocolEnforcer.cc
Http3FrameDispatcher.cc
Http3DebugNames.cc
Http3Config.cc
Http3Frame.cc
)
target_link_libraries(test_http3
PRIVATE
catch2::catch2
ts::quic
ts::inkevent
ts::records
ts::tsapi
ts::hdrs
ts::tscore
)
target_include_directories(test_http3 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
add_test(NAME test_http3 COMMAND test_http3)

add_executable(test_qpack
test/main_qpack.cc
test/test_QPACK.cc
QPACK.cc
)
target_link_libraries(test_qpack
PRIVATE
catch2::catch2
ts::quic
ts::inkevent
ts::records
ts::tsapi
ts::hdrs
ts::tscore
)
target_include_directories(test_qpack PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
add_test(NAME test_qpack COMMAND test_qpack)