Fix: consumerd metadata channel/cache/timer races
[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
81d029da
CB
17if HAVE_LIBLTTNG_UST_CTL
18noinst_PROGRAMS = test_uri test_session test_ust_data test_kernel_data
19else
20noinst_PROGRAMS = test_uri test_session test_kernel_data
21endif
22
23# URI unit tests
24test_uri_SOURCES = test_uri.c
fe4477ee 25test_uri_LDADD = $(LIBTAP) $(LIBCOMMON) $(LIBHASHTABLE)
81d029da
CB
26
27# Session unit test
7972aab2
DG
28SESSIONS=$(top_srcdir)/src/bin/lttng-sessiond/session.c \
29 $(top_srcdir)/src/bin/lttng-sessiond/consumer.c \
30 $(top_srcdir)/src/bin/lttng-sessiond/health.c \
31 $(top_srcdir)/src/common/uri.c \
32 $(top_srcdir)/src/common/utils.c \
81d029da
CB
33 $(top_srcdir)/src/common/error.c
34
35test_session_SOURCES = test_session.c $(SESSIONS)
7972aab2
DG
36test_session_LDADD = $(LIBTAP) $(LIBCOMMON) $(LIBSESSIOND_COMM) $(LIBHASHTABLE) \
37 -lrt
81d029da
CB
38
39# UST data structures unit test
40if HAVE_LIBLTTNG_UST_CTL
41UST_DATA_TRACE=$(top_srcdir)/src/bin/lttng-sessiond/trace-ust.c \
7972aab2
DG
42 $(top_srcdir)/src/bin/lttng-sessiond/consumer.c \
43 $(top_srcdir)/src/bin/lttng-sessiond/buffer-registry.c \
44 $(top_srcdir)/src/bin/lttng-sessiond/ust-registry.c \
45 $(top_srcdir)/src/bin/lttng-sessiond/ust-metadata.c \
46 $(top_srcdir)/src/bin/lttng-sessiond/ust-app.c \
47 $(top_srcdir)/src/bin/lttng-sessiond/ust-consumer.c \
48 $(top_srcdir)/src/bin/lttng-sessiond/fd-limit.c \
49 $(top_srcdir)/src/bin/lttng-sessiond/health.c \
331744e3
JD
50 $(top_srcdir)/src/bin/lttng-sessiond/session.c \
51 $(top_srcdir)/src/common/uri.c \
52 $(top_srcdir)/src/common/utils.c
81d029da
CB
53
54test_ust_data_SOURCES = test_ust_data.c $(UST_DATA_TRACE)
7972aab2
DG
55test_ust_data_LDADD = $(LIBTAP) $(LIBCOMMON) $(LIBSESSIOND_COMM) $(LIBHASHTABLE) \
56 -lrt -llttng-ust-ctl
81d029da
CB
57endif
58
59# Kernel data structures unit test
7972aab2
DG
60KERN_DATA_TRACE=$(top_srcdir)/src/bin/lttng-sessiond/trace-kernel.c \
61 $(top_srcdir)/src/bin/lttng-sessiond/consumer.c \
62 $(top_srcdir)/src/bin/lttng-sessiond/health.c \
63 $(top_srcdir)/src/common/uri.c \
81d029da
CB
64 $(top_srcdir)/src/common/utils.c
65
66test_kernel_data_SOURCES = test_kernel_data.c $(KERN_DATA_TRACE)
7972aab2
DG
67test_kernel_data_LDADD = $(LIBTAP) $(LIBCOMMON) $(LIBSESSIOND_COMM) $(LIBHASHTABLE) \
68 -lrt
This page took 0.038054 seconds and 5 git commands to generate.