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