This commit merges TLS tests into the common Network Manager unit tests suite and extends the unit test framework to include support for additional "ping-pong" style tests where all data could be sent via lesser number of connections (the behaviour of the old test suite). The tests for TCP and TLS were extended to make use of the new mode, as this mode better translates to how the code is used in DoH. Both TLS and TCP tests now share most of the unit tests' code, as they are expected to function similarly from a users's perspective anyway. Additionally to the above, the TLS test suite was extended to include TLS tests using the connections quota facility.
99 lines
1.4 KiB
Makefile
99 lines
1.4 KiB
Makefile
include $(top_srcdir)/Makefile.top
|
|
include $(top_srcdir)/Makefile.tests
|
|
|
|
AM_CPPFLAGS += \
|
|
$(LIBISC_CFLAGS)
|
|
|
|
LDADD += \
|
|
libisctest.la \
|
|
$(LIBISC_LIBS)
|
|
|
|
check_LTLIBRARIES = libisctest.la
|
|
libisctest_la_SOURCES = \
|
|
../unix/socket_p.h \
|
|
isctest.c \
|
|
isctest.h \
|
|
uv_wrap.h
|
|
|
|
TESTS = \
|
|
aes_test \
|
|
buffer_test \
|
|
counter_test \
|
|
crc64_test \
|
|
doh_test \
|
|
errno_test \
|
|
file_test \
|
|
hash_test \
|
|
heap_test \
|
|
hmac_test \
|
|
ht_test \
|
|
lex_test \
|
|
md_test \
|
|
mem_test \
|
|
netaddr_test \
|
|
netmgr_test \
|
|
parse_test \
|
|
pool_test \
|
|
quota_test \
|
|
radix_test \
|
|
random_test \
|
|
regex_test \
|
|
result_test \
|
|
safe_test \
|
|
siphash_test \
|
|
sockaddr_test \
|
|
socket_test \
|
|
symtab_test \
|
|
task_test \
|
|
taskpool_test \
|
|
time_test \
|
|
timer_test
|
|
|
|
check_PROGRAMS = \
|
|
$(TESTS)
|
|
|
|
doh_test_CPPFLAGS = \
|
|
$(AM_CPPFLAGS) \
|
|
$(LIBUV_CFLAGS) \
|
|
$(OPENSSL_CFLAGS)
|
|
|
|
doh_test_LDADD = \
|
|
$(LDADD) \
|
|
$(LIBUV_LIBS) \
|
|
$(OPENSSL_LIBS)
|
|
|
|
hmac_test_CPPFLAGS = \
|
|
$(AM_CPPFLAGS) \
|
|
$(OPENSSL_CFLAGS)
|
|
|
|
hmac_test_LDADD = \
|
|
$(LDADD) \
|
|
$(OPENSSL_LIBS)
|
|
|
|
md_test_CPPFLAGS = \
|
|
$(AM_CPPFLAGS) \
|
|
$(OPENSSL_CFLAGS)
|
|
|
|
md_test_LDADD = \
|
|
$(LDADD) \
|
|
$(OPENSSL_LIBS)
|
|
|
|
random_test_LDADD = \
|
|
$(LDADD) \
|
|
-lm
|
|
|
|
netmgr_test_CPPFLAGS = \
|
|
$(AM_CPPFLAGS) \
|
|
$(LIBUV_CFLAGS) \
|
|
$(OPENSSL_CFLAGS)
|
|
|
|
netmgr_test_LDADD = \
|
|
$(LDADD) \
|
|
$(LIBUV_LIBS)
|
|
|
|
unit-local: check
|
|
|
|
EXTRA_DIST = testdata
|
|
|
|
LOG_COMPILER = $(builddir)/../../unit-test-driver.sh
|