Skip to content

Commit e06d240

Browse files
authored
cmake: add tests for proxy/http3 (#10310)
1 parent 2320ca3 commit e06d240

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

proxy/http3/CMakeLists.txt

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,43 @@ add_library(ts::http3 ALIAS http3)
4040
target_include_directories(http3 PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
4141
target_link_libraries(http3 PUBLIC ts::quic PRIVATE ts::proxy)
4242

43+
add_executable(test_http3
44+
test/main.cc
45+
test/test_Http3Frame.cc
46+
test/test_Http3FrameDispatcher.cc
47+
Http3ProtocolEnforcer.cc
48+
Http3FrameDispatcher.cc
49+
Http3DebugNames.cc
50+
Http3Config.cc
51+
Http3Frame.cc
52+
)
53+
target_link_libraries(test_http3
54+
PRIVATE
55+
catch2::catch2
56+
ts::quic
57+
ts::inkevent
58+
ts::records
59+
ts::tsapi
60+
ts::hdrs
61+
ts::tscore
62+
)
63+
target_include_directories(test_http3 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
64+
add_test(NAME test_http3 COMMAND test_http3)
65+
66+
add_executable(test_qpack
67+
test/main_qpack.cc
68+
test/test_QPACK.cc
69+
QPACK.cc
70+
)
71+
target_link_libraries(test_qpack
72+
PRIVATE
73+
catch2::catch2
74+
ts::quic
75+
ts::inkevent
76+
ts::records
77+
ts::tsapi
78+
ts::hdrs
79+
ts::tscore
80+
)
81+
target_include_directories(test_qpack PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
82+
add_test(NAME test_qpack COMMAND test_qpack)

0 commit comments

Comments
 (0)