Fix: if relayd is unreachable, disable consumer for the session
[lttng-tools.git] / tests / unit / Makefile.am
CommitLineData
81d029da
CB
1AM_CFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src -I$(top_srcdir)/tests/utils/ -I$(srcdir)
2AM_LDFLAGS =
3
4if LTTNG_TOOLS_BUILD_WITH_LIBDL
5AM_LDFLAGS += -ldl
6endif
7if LTTNG_TOOLS_BUILD_WITH_LIBC_DL
8AM_LDFLAGS += -lc
9endif
10
83c55082
CB
11LIBTAP=$(top_builddir)/tests/utils/tap/libtap.la
12
81d029da
CB
13LIBCOMMON=$(top_builddir)/src/common/libcommon.la
14LIBSESSIOND_COMM=$(top_builddir)/src/common/sessiond-comm/libsessiond-comm.la
15LIBHASHTABLE=$(top_builddir)/src/common/hashtable/libhashtable.la
16
70d0b120
SM
17# Define test programs
18noinst_PROGRAMS = test_uri test_session test_kernel_data test_utils_parse_size_suffix
19
81d029da 20if HAVE_LIBLTTNG_UST_CTL
70d0b120 21noinst_PROGRAMS += test_ust_data
81d029da
CB
22endif
23
24# URI unit tests
25test_uri_SOURCES = test_uri.c
fe4477ee 26test_uri_LDADD = $(LIBTAP) $(LIBCOMMON) $(LIBHASHTABLE)
81d029da
CB
27
28# Session unit test
9a363369
SM
29SESSIONS=$(top_srcdir)/src/bin/lttng-sessiond/session.o \
30 $(top_srcdir)/src/bin/lttng-sessiond/consumer.o \
0b2dc8df 31 $(top_srcdir)/src/bin/lttng-sessiond/utils.o \
9a363369 32 $(top_srcdir)/src/bin/lttng-sessiond/health.o \
f83ffb06
DG
33 $(top_srcdir)/src/common/.libs/uri.o \
34 $(top_srcdir)/src/common/.libs/utils.o \
35 $(top_srcdir)/src/common/.libs/error.o
81d029da 36
9a363369 37test_session_SOURCES = test_session.c
7972aab2
DG
38test_session_LDADD = $(LIBTAP) $(LIBCOMMON) $(LIBSESSIOND_COMM) $(LIBHASHTABLE) \
39 -lrt
9a363369 40test_session_LDADD += $(SESSIONS)
81d029da
CB
41
42# UST data structures unit test
43if HAVE_LIBLTTNG_UST_CTL
9a363369
SM
44UST_DATA_TRACE=$(top_srcdir)/src/bin/lttng-sessiond/trace-ust.o \
45 $(top_srcdir)/src/bin/lttng-sessiond/consumer.o \
0b2dc8df 46 $(top_srcdir)/src/bin/lttng-sessiond/utils.o \
9a363369
SM
47 $(top_srcdir)/src/bin/lttng-sessiond/buffer-registry.o \
48 $(top_srcdir)/src/bin/lttng-sessiond/ust-registry.o \
49 $(top_srcdir)/src/bin/lttng-sessiond/ust-metadata.o \
50 $(top_srcdir)/src/bin/lttng-sessiond/ust-app.o \
51 $(top_srcdir)/src/bin/lttng-sessiond/ust-consumer.o \
52 $(top_srcdir)/src/bin/lttng-sessiond/fd-limit.o \
53 $(top_srcdir)/src/bin/lttng-sessiond/health.o \
54 $(top_srcdir)/src/bin/lttng-sessiond/session.o \
f83ffb06
DG
55 $(top_srcdir)/src/common/.libs/uri.o \
56 $(top_srcdir)/src/common/.libs/utils.o
81d029da 57
9a363369 58test_ust_data_SOURCES = test_ust_data.c
7972aab2
DG
59test_ust_data_LDADD = $(LIBTAP) $(LIBCOMMON) $(LIBSESSIOND_COMM) $(LIBHASHTABLE) \
60 -lrt -llttng-ust-ctl
9a363369 61test_ust_data_LDADD += $(UST_DATA_TRACE)
81d029da
CB
62endif
63
64# Kernel data structures unit test
9a363369
SM
65KERN_DATA_TRACE=$(top_srcdir)/src/bin/lttng-sessiond/trace-kernel.o \
66 $(top_srcdir)/src/bin/lttng-sessiond/consumer.o \
67 $(top_srcdir)/src/bin/lttng-sessiond/health.o \
0b2dc8df 68 $(top_srcdir)/src/bin/lttng-sessiond/utils.o \
f83ffb06
DG
69 $(top_srcdir)/src/common/.libs/uri.o \
70 $(top_srcdir)/src/common/.libs/utils.o
81d029da 71
9a363369 72test_kernel_data_SOURCES = test_kernel_data.c
7972aab2
DG
73test_kernel_data_LDADD = $(LIBTAP) $(LIBCOMMON) $(LIBSESSIOND_COMM) $(LIBHASHTABLE) \
74 -lrt
9a363369 75test_kernel_data_LDADD += $(KERN_DATA_TRACE)
70d0b120
SM
76
77# parse_size_suffix unit test
f83ffb06
DG
78UTILS_PARSE_SIZE_SUFFIX=$(top_srcdir)/src/common/.libs/utils.o \
79 $(top_srcdir)/src/common/.libs/runas.o
70d0b120
SM
80
81test_utils_parse_size_suffix_SOURCES = test_utils_parse_size_suffix.c
82test_utils_parse_size_suffix_LDADD = $(LIBTAP) $(LIBHASHTABLE) $(LIBCOMMON)
83test_utils_parse_size_suffix_LDADD += $(UTILS_PARSE_SIZE_SUFFIX)
This page took 0.038267 seconds and 4 git commands to generate.