litespeed-quic/test/unittests/CMakeLists.txt
Dmitri Tikhonov 8ca33e0e19 Release 1.19.0
- [FEATURE, API Change] 0-RTT support.  Add function to export 0-RTT
  information; it can be supplied to a subsequent connect() call.
- [FEATURE] Add -0 flag to http_client to exercise 0-RTT support.
- [BUGFIX] Resuscitate the Windows build.
- [BUGFIX] Send HTTP settings (max header list size) if necessary.
- [BUGFIX] Buffered packets can contain ACK frames.
- [BUGFIX] Make packet writeable once all STREAM frames are elided.
- [BUGFIX] Fix potential null dereference when realloc fails.
- cmake: simplify build configuration.
2019-02-04 08:59:11 -05:00

86 lines
1.8 KiB
CMake

# Copyright (c) 2017 - 2019 LiteSpeed Technologies Inc. See LICENSE.
INCLUDE_DIRECTORIES(../../src/liblsquic)
ENABLE_TESTING()
IF (MSVC)
SET(ADDL_SOURCES ../../wincompat/getopt.c ../../wincompat/getopt1.c)
SET(LIB_FLAGS "-FORCE:MULTIPLE")
ELSE()
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-value")
ENDIF()
SET(TESTS
ackgen_gquic_be
ackgen_gquic_le
ackparse_gquic_be
ackparse_gquic_le
alarmset
arr
attq
blocked_gquic_be
blocked_gquic_le
buf
conn_close_gquic_be
conn_close_gquic_le
conn_hash
cubic
dec
di_nocopy
elision
engine_ctor
export_key
frame_chop
frame_reader
frame_writer
goaway_gquic_be
goaway_gquic_le
hkdf
lsquic_hash
malo
packet_out
packno_len
parse_packet_in
quic_be_floats
quic_le_floats
rechist
reg_pkt_headergen
rst_stream_gquic_be
rst_stream_gquic_le
rtt
senhist
set
sfcw
some_packets
spi
stop_waiting_gquic_be
stop_waiting_gquic_le
streamgen
streamparse
ver_nego
wuf_gquic_be
wuf_gquic_le
)
IF (CMAKE_SYSTEM_NAME STREQUAL "Linux")
# Linux has fmemopen
SET(TESTS ${TESTS} frame_rw)
ENDIF()
FOREACH(TEST_NAME ${TESTS})
ADD_EXECUTABLE(test_${TEST_NAME} test_${TEST_NAME}.c ${ADDL_SOURCES})
TARGET_LINK_LIBRARIES(test_${TEST_NAME} ${LIBS} ${LIB_FLAGS})
ADD_TEST(${TEST_NAME} test_${TEST_NAME})
ENDFOREACH()
ADD_EXECUTABLE(test_stream test_stream.c ${ADDL_SOURCES})
TARGET_LINK_LIBRARIES(test_stream ${LIBS} ${LIB_FLAGS})
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(graph_cubic graph_cubic.c ${ADDL_SOURCES})
TARGET_LINK_LIBRARIES(graph_cubic ${LIBS})