Add jul.c/.h to sessiond code
[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
d3e2ba59 16LIBRELAYD=$(top_builddir)/src/common/relayd/librelayd.la
81d029da 17
70d0b120
SM
18# Define test programs
19noinst_PROGRAMS = test_uri test_session test_kernel_data test_utils_parse_size_suffix
20
81d029da 21if HAVE_LIBLTTNG_UST_CTL
70d0b120 22noinst_PROGRAMS += test_ust_data
81d029da
CB
23endif
24
25# URI unit tests
26test_uri_SOURCES = test_uri.c
fe4477ee 27test_uri_LDADD = $(LIBTAP) $(LIBCOMMON) $(LIBHASHTABLE)
81d029da
CB
28
29# Session unit test
f1789650
DG
30SESSIONS=$(top_builddir)/src/bin/lttng-sessiond/session.o \
31 $(top_builddir)/src/bin/lttng-sessiond/consumer.o \
32 $(top_builddir)/src/bin/lttng-sessiond/utils.o \
6dc3064a 33 $(top_builddir)/src/bin/lttng-sessiond/snapshot.o \
f1789650
DG
34 $(top_builddir)/src/common/.libs/uri.o \
35 $(top_builddir)/src/common/.libs/utils.o \
8782cc74
MD
36 $(top_builddir)/src/common/.libs/error.o \
37 $(top_builddir)/src/common/health/libhealth.la \
38 $(top_builddir)/src/common/sessiond-comm/libsessiond-comm.la
39
81d029da 40
9a363369 41test_session_SOURCES = test_session.c
d3e2ba59
JD
42test_session_LDADD = $(LIBTAP) $(LIBCOMMON) $(LIBRELAYD) $(LIBSESSIOND_COMM) \
43 $(LIBHASHTABLE) -lrt
9a363369 44test_session_LDADD += $(SESSIONS)
81d029da
CB
45
46# UST data structures unit test
47if HAVE_LIBLTTNG_UST_CTL
f1789650
DG
48UST_DATA_TRACE=$(top_builddir)/src/bin/lttng-sessiond/trace-ust.o \
49 $(top_builddir)/src/bin/lttng-sessiond/consumer.o \
50 $(top_builddir)/src/bin/lttng-sessiond/utils.o \
51 $(top_builddir)/src/bin/lttng-sessiond/buffer-registry.o \
52 $(top_builddir)/src/bin/lttng-sessiond/ust-registry.o \
53 $(top_builddir)/src/bin/lttng-sessiond/ust-metadata.o \
54 $(top_builddir)/src/bin/lttng-sessiond/ust-app.o \
55 $(top_builddir)/src/bin/lttng-sessiond/ust-consumer.o \
56 $(top_builddir)/src/bin/lttng-sessiond/fd-limit.o \
f1789650 57 $(top_builddir)/src/bin/lttng-sessiond/session.o \
6dc3064a 58 $(top_builddir)/src/bin/lttng-sessiond/snapshot.o \
0475c50c 59 $(top_builddir)/src/bin/lttng-sessiond/jul.o \
f1789650 60 $(top_builddir)/src/common/.libs/uri.o \
8782cc74
MD
61 $(top_builddir)/src/common/.libs/utils.o \
62 $(top_builddir)/src/common/health/libhealth.la \
63 $(top_builddir)/src/common/sessiond-comm/libsessiond-comm.la
81d029da 64
9a363369 65test_ust_data_SOURCES = test_ust_data.c
d3e2ba59
JD
66test_ust_data_LDADD = $(LIBTAP) $(LIBCOMMON) $(LIBRELAYD) $(LIBSESSIOND_COMM)\
67 $(LIBHASHTABLE) -lrt -llttng-ust-ctl
9a363369 68test_ust_data_LDADD += $(UST_DATA_TRACE)
81d029da
CB
69endif
70
71# Kernel data structures unit test
f1789650
DG
72KERN_DATA_TRACE=$(top_builddir)/src/bin/lttng-sessiond/trace-kernel.o \
73 $(top_builddir)/src/bin/lttng-sessiond/consumer.o \
f1789650
DG
74 $(top_builddir)/src/bin/lttng-sessiond/utils.o \
75 $(top_builddir)/src/common/.libs/uri.o \
8782cc74
MD
76 $(top_builddir)/src/common/.libs/utils.o \
77 $(top_builddir)/src/common/health/libhealth.la \
78 $(top_builddir)/src/common/sessiond-comm/libsessiond-comm.la
81d029da 79
9a363369 80test_kernel_data_SOURCES = test_kernel_data.c
d3e2ba59
JD
81test_kernel_data_LDADD = $(LIBTAP) $(LIBCOMMON) $(LIBRELAYD) $(LIBSESSIOND_COMM) \
82 $(LIBHASHTABLE) -lrt
9a363369 83test_kernel_data_LDADD += $(KERN_DATA_TRACE)
70d0b120
SM
84
85# parse_size_suffix unit test
f1789650
DG
86UTILS_PARSE_SIZE_SUFFIX=$(top_builddir)/src/common/.libs/utils.o \
87 $(top_builddir)/src/common/.libs/runas.o
70d0b120
SM
88
89test_utils_parse_size_suffix_SOURCES = test_utils_parse_size_suffix.c
90test_utils_parse_size_suffix_LDADD = $(LIBTAP) $(LIBHASHTABLE) $(LIBCOMMON)
91test_utils_parse_size_suffix_LDADD += $(UTILS_PARSE_SIZE_SUFFIX)
This page took 0.039968 seconds and 4 git commands to generate.