9dbfe78d4bef7e3daf753de07568fc41f5a8fa0d
[strongswan.git] / src / libstrongswan / tests / Makefile.am
1 check_LTLIBRARIES = libtest.la
2
3 libtest_la_SOURCES = \
4   test_suite.c test_suite.h \
5   test_runner.c test_runner.h \
6   utils/test_rng.c utils/test_rng.h
7
8 libtest_la_CFLAGS = \
9   -I$(top_srcdir)/src/libstrongswan \
10   @COVERAGE_CFLAGS@
11
12 libtest_la_LDFLAGS = @COVERAGE_LDFLAGS@
13 libtest_la_LIBADD = \
14   $(top_builddir)/src/libstrongswan/libstrongswan.la \
15   $(PTHREADLIB)
16
17
18 TESTS = tests
19
20 check_PROGRAMS = $(TESTS)
21
22 tests_SOURCES = tests.h tests.c \
23   suites/test_linked_list.c \
24   suites/test_enumerator.c \
25   suites/test_linked_list_enumerator.c \
26   suites/test_bio_reader.c \
27   suites/test_bio_writer.c \
28   suites/test_chunk.c \
29   suites/test_enum.c \
30   suites/test_hashtable.c \
31   suites/test_identification.c \
32   suites/test_threading.c \
33   suites/test_watcher.c \
34   suites/test_stream.c \
35   suites/test_utils.c \
36   suites/test_vectors.c \
37   suites/test_array.c \
38   suites/test_ecdsa.c \
39   suites/test_rsa.c \
40   suites/test_host.c \
41   suites/test_pen.c \
42   suites/test_asn1.c \
43   suites/test_printf.c \
44   suites/test_test_rng.c \
45   suites/test_ntru.c
46
47 tests_CFLAGS = \
48   -I$(top_srcdir)/src/libstrongswan \
49   -I$(top_srcdir)/src/libstrongswan/tests \
50   -DPLUGINDIR=\""$(top_builddir)/src/libstrongswan/plugins\"" \
51   -DPLUGINS=\""${s_plugins}\"" \
52   @COVERAGE_CFLAGS@
53
54 tests_LDFLAGS = @COVERAGE_LDFLAGS@
55 tests_LDADD = \
56   $(top_builddir)/src/libstrongswan/libstrongswan.la \
57   libtest.la