You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

89 lines
3.1 KiB

check_PROGRAMS = \
test_pkt_normalizer \
test_etcp \
test_etcp_stress \
test_etcp_simple \
test_etcp_link_simple \
test_etcp_link_crypto_working \
test_etcp_2instance \
test_lib_comprehensive \
test_lib_simple \
test_lib_performance \
test_debug_config \
test_ll_queue_comprehensive \
test_ecc_encrypt \
test_routing
test_pkt_normalizer_SOURCES = test_pkt_normalizer.c
test_pkt_normalizer_CFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/lib
test_etcp_SOURCES = test_etcp.c
test_etcp_CFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/lib
test_etcp_stress_SOURCES = test_etcp_stress.c
test_etcp_stress_CFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/lib
test_etcp_simple_SOURCES = test_etcp_simple.c
test_etcp_simple_CFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/lib
test_etcp_link_simple_SOURCES = test_etcp_link_simple.c
test_etcp_link_simple_CFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/lib
test_etcp_link_crypto_working_SOURCES = test_etcp_link_crypto_working.c
test_etcp_link_crypto_working_CFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/lib -I$(top_srcdir)/tinycrypt/lib/include -I$(top_srcdir)/tinycrypt/lib/source
test_etcp_2instance_SOURCES = test_etcp_2instance.c
test_etcp_2instance_CFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/lib -I$(top_srcdir)/tinycrypt/lib/include -I$(top_srcdir)/tinycrypt/lib/source
test_lib_comprehensive_SOURCES = test_lib_comprehensive.c
test_lib_comprehensive_CFLAGS = -I$(top_srcdir)/lib
test_lib_simple_SOURCES = test_lib_simple.c
test_lib_simple_CFLAGS = -I$(top_srcdir)/lib
test_lib_performance_SOURCES = test_lib_performance.c
test_lib_performance_CFLAGS = -I$(top_srcdir)/lib
test_debug_config_SOURCES = test_debug_config.c
test_debug_config_CFLAGS = -I$(top_srcdir)/lib
test_ll_queue_comprehensive_SOURCES = test_ll_queue_comprehensive.c
test_ll_queue_comprehensive_CFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/lib
test_ecc_encrypt_SOURCES = test_ecc_encrypt.c
test_ecc_encrypt_CFLAGS = -I$(top_srcdir)/tinycrypt/lib/include \
-I$(top_srcdir)/tinycrypt/lib/source \
-I$(top_srcdir)/src -I$(top_srcdir)/lib
test_routing_SOURCES = test_routing.c
test_routing_CFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/lib
# Link all tests against the libraries
LDADD = \
$(top_builddir)/lib/libuasync.a \
-lpthread
# test_etcp_2instance needs ETCP sources
test_etcp_2instance_LDADD = \
$(top_builddir)/src/etcp.o \
$(top_builddir)/src/etcp_connections.o \
$(top_builddir)/src/secure_channel.o \
$(top_builddir)/src/utun_instance.o \
$(top_builddir)/src/crc32.o \
$(top_builddir)/src/pkt_normalizer.o \
$(top_builddir)/tinycrypt/lib/source/aes_encrypt.o \
$(top_builddir)/tinycrypt/lib/source/aes_decrypt.o \
$(top_builddir)/tinycrypt/lib/source/ccm_mode.o \
$(top_builddir)/tinycrypt/lib/source/cmac_mode.o \
$(top_builddir)/tinycrypt/lib/source/ctr_mode.o \
$(top_builddir)/tinycrypt/lib/source/ecc.o \
$(top_builddir)/tinycrypt/lib/source/ecc_dh.o \
$(top_builddir)/tinycrypt/lib/source/ecc_dsa.o \
$(top_builddir)/tinycrypt/lib/source/sha256.o \
$(top_builddir)/lib/libuasync.a \
-lpthread \
-lcrypto
# Register tests with automake
TESTS = $(check_PROGRAMS)