2023-12-22 14:54:25 +08:00
|
|
|
###############################################################################
|
2024-01-25 16:08:55 +08:00
|
|
|
# gtest utils
|
2023-12-22 14:54:25 +08:00
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
|
|
add_executable(gtest_session_pool gtest_session_pool.cpp)
|
|
|
|
|
target_link_libraries(gtest_session_pool session_manager gtest)
|
|
|
|
|
|
|
|
|
|
add_executable(gtest_session_table gtest_session_table.cpp)
|
|
|
|
|
target_link_libraries(gtest_session_table session_manager gtest)
|
|
|
|
|
|
|
|
|
|
add_executable(gtest_session_timer gtest_session_timer.cpp)
|
|
|
|
|
target_link_libraries(gtest_session_timer session_manager gtest)
|
|
|
|
|
|
2024-11-07 19:11:49 +08:00
|
|
|
add_executable(gtest_session_dabloom gtest_session_dabloom.cpp)
|
|
|
|
|
target_link_libraries(gtest_session_dabloom session_manager gtest)
|
2024-08-16 11:18:16 +08:00
|
|
|
|
2024-01-25 16:08:55 +08:00
|
|
|
###############################################################################
|
|
|
|
|
# gtest state machine (TCP)
|
|
|
|
|
###############################################################################
|
|
|
|
|
|
2024-03-14 10:56:09 +08:00
|
|
|
add_executable(gtest_state_tcp_init_to_opening gtest_state_tcp_init_to_opening.cpp)
|
|
|
|
|
target_link_libraries(gtest_state_tcp_init_to_opening session_manager gtest)
|
|
|
|
|
|
|
|
|
|
add_executable(gtest_state_tcp_opening_to_active gtest_state_tcp_opening_to_active.cpp)
|
|
|
|
|
target_link_libraries(gtest_state_tcp_opening_to_active session_manager gtest)
|
|
|
|
|
|
|
|
|
|
add_executable(gtest_state_tcp_active_to_closing gtest_state_tcp_active_to_closing.cpp)
|
|
|
|
|
target_link_libraries(gtest_state_tcp_active_to_closing session_manager gtest)
|
|
|
|
|
|
|
|
|
|
add_executable(gtest_state_tcp_opening_to_closing gtest_state_tcp_opening_to_closing.cpp)
|
|
|
|
|
target_link_libraries(gtest_state_tcp_opening_to_closing session_manager gtest)
|
|
|
|
|
|
|
|
|
|
add_executable(gtest_state_tcp_init_to_opening_to_active_to_closing_to_closed gtest_state_tcp_init_to_opening_to_active_to_closing_to_closed.cpp)
|
|
|
|
|
target_link_libraries(gtest_state_tcp_init_to_opening_to_active_to_closing_to_closed session_manager gtest)
|
2024-01-25 16:08:55 +08:00
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
|
# gtest state machine (UDP)
|
|
|
|
|
###############################################################################
|
|
|
|
|
|
2024-03-14 10:56:09 +08:00
|
|
|
add_executable(gtest_state_udp_init_to_opening_to_closing gtest_state_udp_init_to_opening_to_closing.cpp)
|
|
|
|
|
target_link_libraries(gtest_state_udp_init_to_opening_to_closing session_manager gtest)
|
|
|
|
|
|
|
|
|
|
add_executable(gtest_state_udp_init_to_opening_to_active_to_closing gtest_state_udp_init_to_opening_to_active_to_closing.cpp)
|
|
|
|
|
target_link_libraries(gtest_state_udp_init_to_opening_to_active_to_closing session_manager gtest)
|
2023-12-22 14:54:25 +08:00
|
|
|
|
2024-01-25 16:08:55 +08:00
|
|
|
###############################################################################
|
|
|
|
|
# gtest timeout (TCP)
|
|
|
|
|
###############################################################################
|
2024-01-23 14:56:59 +08:00
|
|
|
|
2024-03-14 10:56:09 +08:00
|
|
|
add_executable(gtest_timeout_tcp_init gtest_timeout_tcp_init.cpp)
|
|
|
|
|
target_link_libraries(gtest_timeout_tcp_init session_manager gtest)
|
|
|
|
|
|
|
|
|
|
add_executable(gtest_timeout_tcp_handshake gtest_timeout_tcp_handshake.cpp)
|
|
|
|
|
target_link_libraries(gtest_timeout_tcp_handshake session_manager gtest)
|
|
|
|
|
|
|
|
|
|
add_executable(gtest_timeout_tcp_data gtest_timeout_tcp_data.cpp)
|
|
|
|
|
target_link_libraries(gtest_timeout_tcp_data session_manager gtest)
|
2024-01-24 16:45:02 +08:00
|
|
|
|
2024-01-25 16:08:55 +08:00
|
|
|
###############################################################################
|
|
|
|
|
# gtest timeout (UDP)
|
|
|
|
|
###############################################################################
|
|
|
|
|
|
2024-03-14 10:56:09 +08:00
|
|
|
add_executable(gtest_timeout_udp_data gtest_timeout_udp_data.cpp)
|
|
|
|
|
target_link_libraries(gtest_timeout_udp_data session_manager gtest)
|
2024-01-25 16:08:55 +08:00
|
|
|
|
2024-01-25 17:19:57 +08:00
|
|
|
###############################################################################
|
2024-01-25 18:35:31 +08:00
|
|
|
# gtest filter
|
2024-01-25 17:19:57 +08:00
|
|
|
###############################################################################
|
|
|
|
|
|
2024-03-14 10:56:09 +08:00
|
|
|
add_executable(gtest_filter_tcp_dupkt gtest_filter_tcp_dupkt.cpp)
|
|
|
|
|
target_link_libraries(gtest_filter_tcp_dupkt session_manager gtest)
|
2024-01-25 18:35:31 +08:00
|
|
|
|
2024-01-26 14:13:54 +08:00
|
|
|
###############################################################################
|
|
|
|
|
# gtest overload
|
|
|
|
|
###############################################################################
|
|
|
|
|
|
2024-03-14 10:56:09 +08:00
|
|
|
add_executable(gtest_overload_evict_tcp_sess gtest_overload_evict_tcp_sess.cpp)
|
|
|
|
|
target_link_libraries(gtest_overload_evict_tcp_sess session_manager gtest)
|
|
|
|
|
|
|
|
|
|
add_executable(gtest_overload_evict_udp_sess gtest_overload_evict_udp_sess.cpp)
|
|
|
|
|
target_link_libraries(gtest_overload_evict_udp_sess session_manager gtest)
|
2024-01-26 14:13:54 +08:00
|
|
|
|
2024-03-15 15:36:26 +08:00
|
|
|
###############################################################################
|
|
|
|
|
# gtest transistion
|
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
|
|
add_executable(gtest_session_transition gtest_session_transition.cpp)
|
|
|
|
|
target_link_libraries(gtest_session_transition session_manager gtest)
|
|
|
|
|
|
2024-03-26 15:09:03 +08:00
|
|
|
###############################################################################
|
|
|
|
|
# gtest tcp reassembly
|
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
|
|
add_executable(gtest_sess_mgr_tcp_reassembly gtest_sess_mgr_tcp_reassembly.cpp)
|
|
|
|
|
target_link_libraries(gtest_sess_mgr_tcp_reassembly session_manager gtest)
|
|
|
|
|
|
2024-08-20 18:43:51 +08:00
|
|
|
###############################################################################
|
|
|
|
|
# gtest sess mgr scan
|
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
|
|
add_executable(gtest_sess_mgr_scan gtest_sess_mgr_scan.cpp)
|
|
|
|
|
target_link_libraries(gtest_sess_mgr_scan session_manager gtest)
|
|
|
|
|
|
2024-05-06 12:06:20 +08:00
|
|
|
###############################################################################
|
|
|
|
|
# gtest case
|
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
|
|
add_executable(gtest_case_tcp_fast_open gtest_case_tcp_fast_open.cpp)
|
|
|
|
|
target_link_libraries(gtest_case_tcp_fast_open session_manager gtest)
|
|
|
|
|
|
2024-09-02 15:04:55 +08:00
|
|
|
###############################################################################
|
|
|
|
|
# session id decoder
|
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
|
|
add_executable(session_id_decoder session_id_decoder.cpp)
|
|
|
|
|
target_link_libraries(session_id_decoder)
|
|
|
|
|
|
2024-01-25 16:08:55 +08:00
|
|
|
###############################################################################
|
|
|
|
|
# gtest
|
|
|
|
|
###############################################################################
|
2024-01-24 12:04:20 +08:00
|
|
|
|
2024-03-14 10:56:09 +08:00
|
|
|
include(GoogleTest)
|
|
|
|
|
gtest_discover_tests(gtest_session_pool)
|
|
|
|
|
gtest_discover_tests(gtest_session_table)
|
|
|
|
|
gtest_discover_tests(gtest_session_timer)
|
2024-11-07 19:11:49 +08:00
|
|
|
gtest_discover_tests(gtest_session_dabloom)
|
2024-03-14 10:56:09 +08:00
|
|
|
|
|
|
|
|
gtest_discover_tests(gtest_state_tcp_init_to_opening)
|
|
|
|
|
gtest_discover_tests(gtest_state_tcp_opening_to_active)
|
|
|
|
|
gtest_discover_tests(gtest_state_tcp_active_to_closing)
|
|
|
|
|
gtest_discover_tests(gtest_state_tcp_opening_to_closing)
|
|
|
|
|
|
|
|
|
|
gtest_discover_tests(gtest_state_tcp_init_to_opening_to_active_to_closing_to_closed)
|
|
|
|
|
gtest_discover_tests(gtest_state_udp_init_to_opening_to_closing)
|
|
|
|
|
gtest_discover_tests(gtest_state_udp_init_to_opening_to_active_to_closing)
|
|
|
|
|
|
|
|
|
|
gtest_discover_tests(gtest_timeout_tcp_init)
|
|
|
|
|
gtest_discover_tests(gtest_timeout_tcp_handshake)
|
|
|
|
|
gtest_discover_tests(gtest_timeout_tcp_data)
|
|
|
|
|
gtest_discover_tests(gtest_timeout_udp_data)
|
|
|
|
|
|
|
|
|
|
gtest_discover_tests(gtest_filter_tcp_dupkt)
|
|
|
|
|
|
|
|
|
|
gtest_discover_tests(gtest_overload_evict_tcp_sess)
|
|
|
|
|
gtest_discover_tests(gtest_overload_evict_udp_sess)
|
2024-03-15 15:36:26 +08:00
|
|
|
|
|
|
|
|
gtest_discover_tests(gtest_session_transition)
|
2024-03-26 15:09:03 +08:00
|
|
|
|
2024-05-06 12:06:20 +08:00
|
|
|
gtest_discover_tests(gtest_sess_mgr_tcp_reassembly)
|
2024-08-20 18:43:51 +08:00
|
|
|
gtest_discover_tests(gtest_sess_mgr_scan)
|
2024-05-06 12:06:20 +08:00
|
|
|
|
2024-11-18 18:33:19 +08:00
|
|
|
gtest_discover_tests(gtest_case_tcp_fast_open)
|
|
|
|
|
|
|
|
|
|
file(COPY ./metrics/ DESTINATION ./metrics/)
|