unit-tests: load plugins in test-runner from build directory
[strongswan.git] / src / libstrongswan / tests / Makefile.am
1 TESTS = test_runner
2
3 check_PROGRAMS = $(TESTS)
4
5 test_runner_SOURCES = \
6   test_runner.c test_runner.h test_suite.h \
7   test_linked_list.c test_enumerator.c test_linked_list_enumerator.c \
8   test_bio_reader.c test_bio_writer.c test_chunk.c test_enum.c test_hashtable.c \
9   test_identification.c test_threading.c test_utils.c test_vectors.c \
10   test_ecdsa.c test_rsa.c
11
12 test_runner_CFLAGS = \
13   -I$(top_srcdir)/src/libstrongswan \
14   -DPLUGINDIR=\""$(top_builddir)/src/libstrongswan/plugins\"" \
15   -DPLUGINS=\""${s_plugins}\"" \
16   @COVERAGE_CFLAGS@ \
17   @CHECK_CFLAGS@
18
19 test_runner_LDFLAGS = @COVERAGE_LDFLAGS@
20 test_runner_LDADD = \
21   $(top_builddir)/src/libstrongswan/libstrongswan.la \
22   $(PTHREADLIB) \
23   @CHECK_LIBS@