2018-04-02 19:17:56 +00:00
|
|
|
# Copyright (c) 2017 - 2018 LiteSpeed Technologies Inc. See LICENSE.
|
2017-09-22 21:00:03 +00:00
|
|
|
include_directories( BEFORE ../../ssl/include )
|
|
|
|
include_directories( ../../include )
|
|
|
|
include_directories( ../../src/liblsquic )
|
2018-05-02 13:42:32 +00:00
|
|
|
include_directories( ../../src/liblsquic/ls-hpack/include )
|
2017-09-22 21:00:03 +00:00
|
|
|
|
2018-03-30 14:57:17 +00:00
|
|
|
enable_testing()
|
|
|
|
|
2018-04-19 14:37:58 +00:00
|
|
|
IF (NOT MSVC)
|
2018-03-30 18:05:18 +00:00
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-value")
|
|
|
|
|
2018-03-30 14:57:17 +00:00
|
|
|
|
|
|
|
add_executable(test_rechist test_rechist.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_rechist lsquic pthread libssl.a libcrypto.a z m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(rechist test_rechist)
|
|
|
|
|
|
|
|
add_executable(test_senhist test_senhist.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_senhist lsquic pthread libssl.a libcrypto.a z m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(senhist test_senhist)
|
|
|
|
|
|
|
|
add_executable(test_rtt test_rtt.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_rtt lsquic m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(rtt test_rtt)
|
|
|
|
|
|
|
|
add_executable(test_set test_set.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_set lsquic m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(set test_set)
|
|
|
|
|
|
|
|
|
|
|
|
add_executable(test_engine_ctor test_engine_ctor.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_engine_ctor lsquic pthread libssl.a libcrypto.a z m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(engine_ctor test_engine_ctor)
|
|
|
|
|
|
|
|
|
|
|
|
add_executable(test_stream test_stream.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_stream lsquic pthread libssl.a libcrypto.a z m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(stream test_stream)
|
|
|
|
add_test(stream_hash test_stream -h)
|
|
|
|
add_test(stream_A test_stream -A)
|
|
|
|
add_test(stream_hash_A test_stream -A -h)
|
|
|
|
|
|
|
|
add_executable(test_spi test_spi.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_spi lsquic pthread libssl.a libcrypto.a z m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(spi test_spi)
|
|
|
|
|
|
|
|
add_executable(test_malo test_malo.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_malo lsquic m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(malo test_malo)
|
|
|
|
|
|
|
|
add_executable(test_conn_hash test_conn_hash.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_conn_hash lsquic m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(conn_hash test_conn_hash)
|
|
|
|
|
|
|
|
add_executable(test_lsquic_hash test_lsquic_hash.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_lsquic_hash lsquic m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(lsquic_hash test_lsquic_hash)
|
|
|
|
|
|
|
|
add_executable(test_blocked_gquic_le test_blocked_gquic_le.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_blocked_gquic_le lsquic pthread libssl.a libcrypto.a z m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(blocked_gquic_le test_blocked_gquic_le)
|
|
|
|
|
|
|
|
add_executable(test_blocked_gquic_be test_blocked_gquic_be.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_blocked_gquic_be lsquic pthread libssl.a libcrypto.a z m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(blocked_gquic_be test_blocked_gquic_be)
|
|
|
|
|
|
|
|
add_executable(test_rst_stream_gquic_le test_rst_stream_gquic_le.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_rst_stream_gquic_le lsquic pthread libssl.a libcrypto.a z m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(rst_stream_gquic_le test_rst_stream_gquic_le)
|
|
|
|
|
|
|
|
add_executable(test_rst_stream_gquic_be test_rst_stream_gquic_be.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_rst_stream_gquic_be lsquic pthread libssl.a libcrypto.a z m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(rst_stream_gquic_be test_rst_stream_gquic_be)
|
|
|
|
|
|
|
|
add_executable(test_conn_close_gquic_le test_conn_close_gquic_le.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_conn_close_gquic_le lsquic pthread libssl.a libcrypto.a z m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(conn_close_gquic_le test_conn_close_gquic_le)
|
|
|
|
|
|
|
|
add_executable(test_conn_close_gquic_be test_conn_close_gquic_be.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_conn_close_gquic_be lsquic pthread libssl.a libcrypto.a z m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(conn_close_gquic_be test_conn_close_gquic_be)
|
|
|
|
|
|
|
|
add_executable(test_goaway_gquic_le test_goaway_gquic_le.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_goaway_gquic_le lsquic pthread libssl.a libcrypto.a z m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(goaway_gquic_le test_goaway_gquic_le)
|
|
|
|
|
|
|
|
add_executable(test_goaway_gquic_be test_goaway_gquic_be.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_goaway_gquic_be lsquic pthread libssl.a libcrypto.a z m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(goaway_gquic_be test_goaway_gquic_be)
|
|
|
|
|
|
|
|
add_executable(test_wuf_gquic_le test_wuf_gquic_le.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_wuf_gquic_le lsquic pthread libssl.a libcrypto.a z m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(wuf_gquic_le test_wuf_gquic_le)
|
|
|
|
|
|
|
|
add_executable(test_wuf_gquic_be test_wuf_gquic_be.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_wuf_gquic_be lsquic pthread libssl.a libcrypto.a z m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(wuf_gquic_be test_wuf_gquic_be)
|
|
|
|
|
|
|
|
add_executable(test_ackparse_gquic_le test_ackparse_gquic_le.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_ackparse_gquic_le lsquic pthread libssl.a libcrypto.a z m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(ackparse_gquic_le test_ackparse_gquic_le)
|
|
|
|
|
|
|
|
add_executable(test_ackparse_gquic_be test_ackparse_gquic_be.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_ackparse_gquic_be lsquic pthread libssl.a libcrypto.a z m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(ackparse_gquic_be test_ackparse_gquic_be)
|
|
|
|
|
|
|
|
add_executable(test_ackgen_gquic_le test_ackgen_gquic_le.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_ackgen_gquic_le lsquic pthread libssl.a libcrypto.a z m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(ackgen_gquic_le test_ackgen_gquic_le)
|
|
|
|
|
|
|
|
add_executable(test_ackgen_gquic_be test_ackgen_gquic_be.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_ackgen_gquic_be lsquic pthread libssl.a libcrypto.a z m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(ackgen_gquic_be test_ackgen_gquic_be)
|
|
|
|
|
|
|
|
add_executable(test_sfcw test_sfcw.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_sfcw lsquic pthread libssl.a libcrypto.a z m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(sfcw test_sfcw)
|
|
|
|
|
|
|
|
add_executable(test_alarmset test_alarmset.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_alarmset lsquic m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(alarmset test_alarmset)
|
|
|
|
|
|
|
|
add_executable(graph_cubic graph_cubic.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(graph_cubic lsquic m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
add_executable(test_streamparse test_streamparse.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_streamparse lsquic pthread libssl.a libcrypto.a z m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(streamparse test_streamparse)
|
|
|
|
|
|
|
|
add_executable(test_packet_out test_packet_out.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_packet_out lsquic pthread libssl.a libcrypto.a z m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(packet_out test_packet_out)
|
|
|
|
|
|
|
|
add_executable(test_reg_pkt_headergen test_reg_pkt_headergen.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_reg_pkt_headergen lsquic pthread libssl.a libcrypto.a z m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(reg_pkt_headergen test_reg_pkt_headergen)
|
|
|
|
|
|
|
|
add_executable(test_ver_nego test_ver_nego.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_ver_nego lsquic pthread libssl.a libcrypto.a z m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(ver_nego test_ver_nego)
|
|
|
|
|
|
|
|
add_executable(test_packno_len test_packno_len.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_packno_len lsquic pthread libssl.a libcrypto.a z m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(packno_len test_packno_len)
|
|
|
|
|
|
|
|
|
|
|
|
add_executable(test_streamgen test_streamgen.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_streamgen lsquic pthread libssl.a libcrypto.a z m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(streamgen test_streamgen)
|
|
|
|
|
|
|
|
add_executable(test_some_packets test_some_packets.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_some_packets lsquic pthread libssl.a libcrypto.a z m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(some_packets test_some_packets)
|
|
|
|
|
|
|
|
|
|
|
|
add_executable(test_elision test_elision.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_elision lsquic pthread libssl.a libcrypto.a z m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(elision test_elision)
|
|
|
|
|
|
|
|
add_executable(test_stop_waiting_gquic_le test_stop_waiting_gquic_le.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_stop_waiting_gquic_le lsquic pthread libssl.a libcrypto.a z m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(stop_waiting_gquic_le test_stop_waiting_gquic_le)
|
|
|
|
|
|
|
|
add_executable(test_stop_waiting_gquic_be test_stop_waiting_gquic_be.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_stop_waiting_gquic_be lsquic pthread libssl.a libcrypto.a z m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(stop_waiting_gquic_be test_stop_waiting_gquic_be)
|
|
|
|
|
|
|
|
add_executable(test_parse_packet_in test_parse_packet_in.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_parse_packet_in lsquic pthread libssl.a libcrypto.a z m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(parse_packet_in test_parse_packet_in)
|
|
|
|
|
|
|
|
add_executable(test_quic_le_floats test_quic_le_floats.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_quic_le_floats lsquic pthread libssl.a libcrypto.a z m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(quic_le_floats test_quic_le_floats)
|
|
|
|
|
|
|
|
add_executable(test_quic_be_floats test_quic_be_floats.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_quic_be_floats lsquic pthread libssl.a libcrypto.a z m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(quic_be_floats test_quic_be_floats)
|
|
|
|
|
|
|
|
add_executable(test_export_key test_export_key.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_export_key lsquic pthread libssl.a libcrypto.a z m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(export_key test_export_key)
|
|
|
|
|
|
|
|
add_executable(test_frame_reader test_frame_reader.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_frame_reader lsquic pthread libssl.a libcrypto.a z m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(frame_reader test_frame_reader)
|
|
|
|
|
|
|
|
add_executable(test_frame_writer test_frame_writer.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_frame_writer lsquic pthread libssl.a libcrypto.a z m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(frame_writer test_frame_writer)
|
|
|
|
|
|
|
|
add_executable(test_frame_chop test_frame_chop.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_frame_chop lsquic pthread libssl.a libcrypto.a z m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(frame_chop test_frame_chop)
|
|
|
|
|
|
|
|
IF (NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
|
|
|
add_executable(test_frame_rw test_frame_rw.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_frame_rw lsquic pthread libssl.a libcrypto.a z m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(frame_rw test_frame_rw)
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
add_executable(test_hkdf test_hkdf.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_hkdf lsquic pthread libssl.a libcrypto.a m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(hkdf test_hkdf)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
add_executable(test_attq test_attq.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_attq lsquic pthread libssl.a libcrypto.a m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(attq test_attq)
|
|
|
|
|
|
|
|
add_executable(test_arr test_arr.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_arr lsquic pthread libssl.a libcrypto.a m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(arr test_arr)
|
|
|
|
|
|
|
|
add_executable(test_buf test_buf.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_buf lsquic pthread libssl.a libcrypto.a m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(buf test_buf)
|
|
|
|
|
|
|
|
add_executable(test_cubic test_cubic.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_cubic lsquic pthread libssl.a libcrypto.a m ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
add_test(cubic test_cubic)
|
|
|
|
|
|
|
|
add_executable(test_dec test_dec.c)
|
2018-07-10 15:51:45 +00:00
|
|
|
target_link_libraries(test_dec libssl.a libcrypto.a z m pthread ${LIBS})
|
2018-03-30 14:57:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
#MSVC
|
2018-03-12 22:25:01 +00:00
|
|
|
ELSE()
|
2018-03-30 14:57:17 +00:00
|
|
|
|
2018-04-02 15:38:44 +00:00
|
|
|
SET (UGH_LIB_LIST debug $(SolutionDir)src/liblsquic/debug/lsquic.lib debug ${VCPKG_BASE_DIR}/debug/lib/event.lib debug ${VCPKG_BASE_DIR}/debug/lib/zlibd.lib debug ${BORINGSSL_BASE_LIB_DIR}/ssl/debug/ssl.lib debug ${BORINGSSL_BASE_LIB_DIR}/crypto/debug/crypto.lib optimized $(SolutionDir)src/liblsquic/release/lsquic.lib optimized ${VCPKG_BASE_DIR}/lib/event.lib optimized ${VCPKG_BASE_DIR}/lib/zlib.lib optimized ${BORINGSSL_BASE_LIB_DIR}/ssl/Release/ssl.lib optimized ${BORINGSSL_BASE_LIB_DIR}/crypto/Release/crypto.lib)
|
2018-03-13 02:56:06 +00:00
|
|
|
|
2018-07-10 15:51:45 +00:00
|
|
|
set(MIN_LIBS_LIST ${LIBS} ws2_32)
|
2018-03-13 02:56:06 +00:00
|
|
|
set(LIBS_LIST ${UGH_LIB_LIST} ${MIN_LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
|
|
|
|
add_executable(test_rechist test_rechist.c)
|
2018-03-12 22:25:01 +00:00
|
|
|
target_link_libraries(test_rechist lsquic ${LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(rechist test_rechist)
|
|
|
|
|
|
|
|
add_executable(test_senhist test_senhist.c)
|
2018-03-12 22:25:01 +00:00
|
|
|
target_link_libraries(test_senhist lsquic ${LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(senhist test_senhist)
|
|
|
|
|
|
|
|
add_executable(test_rtt test_rtt.c)
|
2018-03-12 22:25:01 +00:00
|
|
|
target_link_libraries(test_rtt lsquic ${MIN_LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(rtt test_rtt)
|
|
|
|
|
|
|
|
add_executable(test_set test_set.c)
|
2018-03-12 22:25:01 +00:00
|
|
|
target_link_libraries(test_set lsquic ${MIN_LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(set test_set)
|
|
|
|
|
|
|
|
|
|
|
|
add_executable(test_engine_ctor test_engine_ctor.c)
|
2018-03-12 22:25:01 +00:00
|
|
|
target_link_libraries(test_engine_ctor lsquic ${LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(engine_ctor test_engine_ctor)
|
|
|
|
|
2018-03-12 22:25:01 +00:00
|
|
|
add_executable(test_stream test_stream.c ../../wincompat/getopt.c ../../wincompat/getopt1.c)
|
|
|
|
target_link_libraries(test_stream lsquic ${LIBS_LIST} -FORCE:multiple)
|
|
|
|
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(stream test_stream)
|
|
|
|
add_test(stream_hash test_stream -h)
|
|
|
|
add_test(stream_A test_stream -A)
|
|
|
|
add_test(stream_hash_A test_stream -A -h)
|
|
|
|
|
|
|
|
add_executable(test_spi test_spi.c)
|
2018-03-12 22:25:01 +00:00
|
|
|
target_link_libraries(test_spi lsquic ${LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(spi test_spi)
|
|
|
|
|
2018-03-12 22:25:01 +00:00
|
|
|
add_executable(test_malo test_malo.c ../../wincompat/getopt.c ../../wincompat/getopt1.c)
|
|
|
|
target_link_libraries(test_malo lsquic ${MIN_LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(malo test_malo)
|
|
|
|
|
|
|
|
add_executable(test_conn_hash test_conn_hash.c)
|
2018-03-12 22:25:01 +00:00
|
|
|
target_link_libraries(test_conn_hash lsquic ${MIN_LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(conn_hash test_conn_hash)
|
|
|
|
|
|
|
|
add_executable(test_lsquic_hash test_lsquic_hash.c)
|
2018-03-12 22:25:01 +00:00
|
|
|
target_link_libraries(test_lsquic_hash lsquic ${MIN_LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(lsquic_hash test_lsquic_hash)
|
|
|
|
|
|
|
|
add_executable(test_blocked_gquic_le test_blocked_gquic_le.c)
|
2018-03-12 22:25:01 +00:00
|
|
|
target_link_libraries(test_blocked_gquic_le lsquic ${LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(blocked_gquic_le test_blocked_gquic_le)
|
|
|
|
|
|
|
|
add_executable(test_blocked_gquic_be test_blocked_gquic_be.c)
|
2018-03-12 22:25:01 +00:00
|
|
|
target_link_libraries(test_blocked_gquic_be lsquic ${LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(blocked_gquic_be test_blocked_gquic_be)
|
|
|
|
|
|
|
|
add_executable(test_rst_stream_gquic_le test_rst_stream_gquic_le.c)
|
2018-03-12 22:25:01 +00:00
|
|
|
target_link_libraries(test_rst_stream_gquic_le lsquic ${LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(rst_stream_gquic_le test_rst_stream_gquic_le)
|
|
|
|
|
|
|
|
add_executable(test_rst_stream_gquic_be test_rst_stream_gquic_be.c)
|
2018-03-12 22:25:01 +00:00
|
|
|
target_link_libraries(test_rst_stream_gquic_be lsquic ${LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(rst_stream_gquic_be test_rst_stream_gquic_be)
|
|
|
|
|
|
|
|
add_executable(test_conn_close_gquic_le test_conn_close_gquic_le.c)
|
2018-03-12 22:25:01 +00:00
|
|
|
target_link_libraries(test_conn_close_gquic_le lsquic ${LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(conn_close_gquic_le test_conn_close_gquic_le)
|
|
|
|
|
|
|
|
add_executable(test_conn_close_gquic_be test_conn_close_gquic_be.c)
|
2018-03-12 22:25:01 +00:00
|
|
|
target_link_libraries(test_conn_close_gquic_be lsquic ${LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(conn_close_gquic_be test_conn_close_gquic_be)
|
|
|
|
|
|
|
|
add_executable(test_goaway_gquic_le test_goaway_gquic_le.c)
|
2018-03-12 22:25:01 +00:00
|
|
|
target_link_libraries(test_goaway_gquic_le lsquic ${LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(goaway_gquic_le test_goaway_gquic_le)
|
|
|
|
|
|
|
|
add_executable(test_goaway_gquic_be test_goaway_gquic_be.c)
|
2018-03-12 22:25:01 +00:00
|
|
|
target_link_libraries(test_goaway_gquic_be lsquic ${LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(goaway_gquic_be test_goaway_gquic_be)
|
|
|
|
|
|
|
|
add_executable(test_wuf_gquic_le test_wuf_gquic_le.c)
|
2018-03-12 22:25:01 +00:00
|
|
|
target_link_libraries(test_wuf_gquic_le lsquic ${LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(wuf_gquic_le test_wuf_gquic_le)
|
|
|
|
|
|
|
|
add_executable(test_wuf_gquic_be test_wuf_gquic_be.c)
|
2018-03-12 22:25:01 +00:00
|
|
|
target_link_libraries(test_wuf_gquic_be lsquic ${LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(wuf_gquic_be test_wuf_gquic_be)
|
|
|
|
|
|
|
|
add_executable(test_ackparse_gquic_le test_ackparse_gquic_le.c)
|
2018-03-12 22:25:01 +00:00
|
|
|
target_link_libraries(test_ackparse_gquic_le lsquic ${LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(ackparse_gquic_le test_ackparse_gquic_le)
|
|
|
|
|
|
|
|
add_executable(test_ackparse_gquic_be test_ackparse_gquic_be.c)
|
2018-03-12 22:25:01 +00:00
|
|
|
target_link_libraries(test_ackparse_gquic_be lsquic ${LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(ackparse_gquic_be test_ackparse_gquic_be)
|
|
|
|
|
|
|
|
add_executable(test_ackgen_gquic_le test_ackgen_gquic_le.c)
|
2018-03-12 22:25:01 +00:00
|
|
|
target_link_libraries(test_ackgen_gquic_le lsquic ${LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(ackgen_gquic_le test_ackgen_gquic_le)
|
|
|
|
|
|
|
|
add_executable(test_ackgen_gquic_be test_ackgen_gquic_be.c)
|
2018-03-12 22:25:01 +00:00
|
|
|
target_link_libraries(test_ackgen_gquic_be lsquic ${LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(ackgen_gquic_be test_ackgen_gquic_be)
|
|
|
|
|
|
|
|
add_executable(test_sfcw test_sfcw.c)
|
2018-03-12 22:25:01 +00:00
|
|
|
target_link_libraries(test_sfcw lsquic ${LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(sfcw test_sfcw)
|
|
|
|
|
|
|
|
add_executable(test_alarmset test_alarmset.c)
|
2018-03-12 22:25:01 +00:00
|
|
|
target_link_libraries(test_alarmset lsquic ${MIN_LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(alarmset test_alarmset)
|
|
|
|
|
2018-03-12 22:25:01 +00:00
|
|
|
add_executable(graph_cubic graph_cubic.c ../../wincompat/getopt.c ../../wincompat/getopt1.c)
|
|
|
|
target_link_libraries(graph_cubic lsquic ${MIN_LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
add_executable(test_streamparse test_streamparse.c)
|
2018-03-12 22:25:01 +00:00
|
|
|
target_link_libraries(test_streamparse lsquic ${LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(streamparse test_streamparse)
|
|
|
|
|
|
|
|
add_executable(test_packet_out test_packet_out.c)
|
2018-03-12 22:25:01 +00:00
|
|
|
target_link_libraries(test_packet_out lsquic ${LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(packet_out test_packet_out)
|
|
|
|
|
|
|
|
add_executable(test_reg_pkt_headergen test_reg_pkt_headergen.c)
|
2018-03-12 22:25:01 +00:00
|
|
|
target_link_libraries(test_reg_pkt_headergen lsquic ${LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(reg_pkt_headergen test_reg_pkt_headergen)
|
|
|
|
|
|
|
|
add_executable(test_ver_nego test_ver_nego.c)
|
2018-03-12 22:25:01 +00:00
|
|
|
target_link_libraries(test_ver_nego lsquic ${LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(ver_nego test_ver_nego)
|
|
|
|
|
|
|
|
add_executable(test_packno_len test_packno_len.c)
|
2018-03-12 22:25:01 +00:00
|
|
|
target_link_libraries(test_packno_len lsquic ${LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(packno_len test_packno_len)
|
|
|
|
|
|
|
|
|
|
|
|
add_executable(test_streamgen test_streamgen.c)
|
2018-03-12 22:25:01 +00:00
|
|
|
target_link_libraries(test_streamgen lsquic ${LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(streamgen test_streamgen)
|
|
|
|
|
|
|
|
add_executable(test_some_packets test_some_packets.c)
|
2018-03-12 22:25:01 +00:00
|
|
|
target_link_libraries(test_some_packets lsquic ${LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(some_packets test_some_packets)
|
|
|
|
|
|
|
|
|
|
|
|
add_executable(test_elision test_elision.c)
|
2018-03-12 22:25:01 +00:00
|
|
|
target_link_libraries(test_elision lsquic ${LIBS_LIST} -FORCE:multiple)
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(elision test_elision)
|
|
|
|
|
|
|
|
add_executable(test_stop_waiting_gquic_le test_stop_waiting_gquic_le.c)
|
2018-03-12 22:25:01 +00:00
|
|
|
target_link_libraries(test_stop_waiting_gquic_le lsquic ${LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(stop_waiting_gquic_le test_stop_waiting_gquic_le)
|
|
|
|
|
|
|
|
add_executable(test_stop_waiting_gquic_be test_stop_waiting_gquic_be.c)
|
2018-03-12 22:25:01 +00:00
|
|
|
target_link_libraries(test_stop_waiting_gquic_be lsquic ${LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(stop_waiting_gquic_be test_stop_waiting_gquic_be)
|
|
|
|
|
|
|
|
add_executable(test_parse_packet_in test_parse_packet_in.c)
|
2018-03-12 22:25:01 +00:00
|
|
|
target_link_libraries(test_parse_packet_in lsquic ${LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(parse_packet_in test_parse_packet_in)
|
|
|
|
|
|
|
|
add_executable(test_quic_le_floats test_quic_le_floats.c)
|
2018-03-12 22:25:01 +00:00
|
|
|
target_link_libraries(test_quic_le_floats lsquic ${LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(quic_le_floats test_quic_le_floats)
|
|
|
|
|
|
|
|
add_executable(test_quic_be_floats test_quic_be_floats.c)
|
2018-03-12 22:25:01 +00:00
|
|
|
target_link_libraries(test_quic_be_floats lsquic ${LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(quic_be_floats test_quic_be_floats)
|
|
|
|
|
|
|
|
add_executable(test_export_key test_export_key.c)
|
2018-03-12 22:25:01 +00:00
|
|
|
target_link_libraries(test_export_key lsquic ${LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(export_key test_export_key)
|
|
|
|
|
2018-03-12 22:25:01 +00:00
|
|
|
add_executable(test_frame_reader test_frame_reader.c ../../wincompat/getopt.c ../../wincompat/getopt1.c)
|
|
|
|
target_link_libraries(test_frame_reader lsquic ${LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(frame_reader test_frame_reader)
|
|
|
|
|
|
|
|
add_executable(test_frame_writer test_frame_writer.c)
|
2018-03-12 22:25:01 +00:00
|
|
|
target_link_libraries(test_frame_writer lsquic ${LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(frame_writer test_frame_writer)
|
|
|
|
|
2018-03-12 22:25:01 +00:00
|
|
|
add_executable(test_frame_chop test_frame_chop.c ../../wincompat/getopt.c ../../wincompat/getopt1.c)
|
|
|
|
target_link_libraries(test_frame_chop lsquic ${LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(frame_chop test_frame_chop)
|
|
|
|
|
|
|
|
add_executable(test_hkdf test_hkdf.c)
|
2018-03-12 22:25:01 +00:00
|
|
|
target_link_libraries(test_hkdf lsquic ${LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(hkdf test_hkdf)
|
|
|
|
|
|
|
|
|
|
|
|
add_executable(test_attq test_attq.c)
|
2018-03-12 22:25:01 +00:00
|
|
|
target_link_libraries(test_attq lsquic ${LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(attq test_attq)
|
|
|
|
|
|
|
|
add_executable(test_arr test_arr.c)
|
2018-03-12 22:25:01 +00:00
|
|
|
target_link_libraries(test_arr lsquic ${LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(arr test_arr)
|
|
|
|
|
|
|
|
add_executable(test_buf test_buf.c)
|
2018-03-12 22:25:01 +00:00
|
|
|
target_link_libraries(test_buf lsquic ${LIBS_LIST})
|
2017-09-22 21:00:03 +00:00
|
|
|
add_test(buf test_buf)
|
|
|
|
|
2018-03-12 22:25:01 +00:00
|
|
|
add_executable(test_cubic test_cubic.c ../../wincompat/getopt.c ../../wincompat/getopt1.c)
|
|
|
|
target_link_libraries(test_cubic lsquic ${LIBS_LIST})
|
2018-02-26 21:01:16 +00:00
|
|
|
add_test(cubic test_cubic)
|
|
|
|
|
2018-03-12 22:25:01 +00:00
|
|
|
add_executable(test_dec test_dec.c ../../wincompat/getopt.c ../../wincompat/getopt1.c)
|
2018-03-30 14:57:17 +00:00
|
|
|
target_link_libraries(test_dec ${LIBS_LIST})
|
|
|
|
|
2018-03-12 22:25:01 +00:00
|
|
|
ENDIF()
|
|
|
|
|
2018-03-30 14:57:17 +00:00
|
|
|
|