Code

proto: Added support for marshaling double-precision values.
[sysdb.git] / t / Makefile.am
1 EXTRA_DIST = \
2                 coverage.sh \
3                 testwrapper.sh \
4                 integration/config.sh \
5                 integration/query.sh \
6                 integration/matching.sh \
7                 integration/filter.sh \
8                 integration/test_lib.sh \
9                 valgrind.suppress
11 # coverage related flags are only set when gcov is enabled
12 AM_CFLAGS = @STRICT_CFLAGS@ @COVERAGE_CFLAGS@
13 AM_LDFLAGS = @COVERAGE_LDFLAGS@
14 AM_CPPFLAGS = -I$(top_srcdir)/src/include
16 TESTS =
17 check_PROGRAMS =
18 check_LTLIBRARIES =
20 #
21 # unit tests
22 #
24 LOG_COMPILER = $(abs_srcdir)/testwrapper.sh
26 if UNIT_TESTING
27 TESTS += unit/libsysdb_test unit/libsysdb_net_test
28 check_PROGRAMS += unit/libsysdb_test unit/libsysdb_net_test
29 endif
31 unit_libsysdb_test_SOURCES = \
32                 unit/libsysdb_test.c unit/libsysdb_test.h \
33                 unit/libsysdb_testutils.c unit/libsysdb_testutils.h \
34                 unit/core/data_test.c \
35                 unit/core/object_test.c \
36                 unit/core/store_test.c \
37                 unit/core/store_json_test.c \
38                 unit/core/store_lookup_test.c \
39                 unit/core/time_test.c \
40                 unit/frontend/connection_test.c \
41                 unit/frontend/parser_test.c \
42                 unit/frontend/sock_test.c \
43                 unit/utils/avltree_test.c \
44                 unit/utils/channel_test.c \
45                 unit/utils/dbi_test.c \
46                 unit/utils/llist_test.c \
47                 unit/utils/os_test.c \
48                 unit/utils/proto_test.c \
49                 unit/utils/strbuf_test.c
50 unit_libsysdb_test_CFLAGS = $(AM_CFLAGS) @CHECK_CFLAGS@ -I$(top_srcdir)/t/unit
51 unit_libsysdb_test_LDADD = $(top_builddir)/src/libsysdb.la @CHECK_LIBS@
53 unit_libsysdb_net_test_SOURCES = \
54                 unit/libsysdb_net_test.c unit/libsysdb_test.h \
55                 unit/libsysdb_testutils.c unit/libsysdb_testutils.h
56 if BUILD_WITH_FOPENCOOKIE
57 unit_libsysdb_net_test_SOURCES += unit/utils/unixsock_test.c
58 endif
59 unit_libsysdb_net_test_CFLAGS = $(AM_CFLAGS) @CHECK_CFLAGS@ -I$(top_srcdir)/t/unit
60 unit_libsysdb_net_test_LDADD = $(top_builddir)/src/libsysdb.la @CHECK_LIBS@
62 #
63 # integration tests
64 #
66 if INTEGRATION_TESTING
67 TESTS += \
68                 integration/config.sh \
69                 integration/query.sh \
70                 integration/matching.sh \
71                 integration/filter.sh
72 endif
74 check_LTLIBRARIES += integration/mock_plugin.la
75 integration_mock_plugin_la_SOURCES = integration/mock_plugin.c
76 # -rpath is a work-around to enforce a shared library
77 integration_mock_plugin_la_LDFLAGS = $(AM_LDFLAGS) -module -avoid-version \
78                 -rpath /nonexistent
80 test: check