# vim:ft=automake
# included from Top Level Makefile.am
# All paths should be given relative to the root


if BUILD_TESTS
check_PROGRAMS += tests/unit.test
noinst_PROGRAMS += tests/unit.test
tests_unit_test_SOURCES = \
                  tests/unit.c \
                  tests/api.c \
                  tests/suites.c \
                  tests/hash.c \
                  tests/srp.c \
                  examples/client/client.c \
                  examples/server/server.c
tests_unit_test_CFLAGS       = -DNO_MAIN_DRIVER $(AM_CFLAGS)
tests_unit_test_LDADD        = src/libwolfssl.la $(LIB_STATIC_ADD)
tests_unit_test_DEPENDENCIES = src/libwolfssl.la
endif
EXTRA_DIST += tests/unit.h
EXTRA_DIST += tests/test.conf \
              tests/test-tls13.conf \
              tests/test-tls13-ecc.conf \
              tests/test-qsh.conf \
              tests/test-psk-no-id.conf \
              tests/test-dtls.conf \
              tests/test-sctp.conf \
              tests/test-sig.conf \
              tests/test-ed25519.conf \
              tests/test-enckeys.conf \
              tests/test-fails.conf
DISTCLEANFILES+= tests/.libs/unit.test
