Code

connection: Let sdb_connection_close not deallocate the connection.
[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/strbuf_test.c
49 unit_libsysdb_test_CFLAGS = $(AM_CFLAGS) @CHECK_CFLAGS@ -I$(top_srcdir)/t/unit
50 unit_libsysdb_test_LDADD = $(top_builddir)/src/libsysdb.la @CHECK_LIBS@
52 unit_libsysdb_net_test_SOURCES = \
53                 unit/libsysdb_net_test.c unit/libsysdb_test.h \
54                 unit/libsysdb_testutils.c unit/libsysdb_testutils.h
55 if BUILD_WITH_FOPENCOOKIE
56 unit_libsysdb_net_test_SOURCES += unit/utils/unixsock_test.c
57 endif
58 unit_libsysdb_net_test_CFLAGS = $(AM_CFLAGS) @CHECK_CFLAGS@ -I$(top_srcdir)/t/unit
59 unit_libsysdb_net_test_LDADD = $(top_builddir)/src/libsysdb.la @CHECK_LIBS@
61 #
62 # integration tests
63 #
65 if INTEGRATION_TESTING
66 TESTS += \
67                 integration/config.sh \
68                 integration/query.sh \
69                 integration/matching.sh \
70                 integration/filter.sh
71 endif
73 check_LTLIBRARIES += integration/mock_plugin.la
74 integration_mock_plugin_la_SOURCES = integration/mock_plugin.c
75 # -rpath is a work-around to enforce a shared library
76 integration_mock_plugin_la_LDFLAGS = $(AM_LDFLAGS) -module -avoid-version \
77                 -rpath /nonexistent
79 test: check