Fix: use metadata key instead of fd for consumer rotation command
[lttng-tools.git] / tests / unit / Makefile.am
CommitLineData
1501a7f3
JG
1SUBDIRS = ini_config
2
343af227 3AM_CPPFLAGS += -I$(top_srcdir)/tests/utils/ -I$(srcdir)
81d029da 4
8689ad30 5LOG_DRIVER_FLAGS='--merge'
a36b26b4
MJ
6LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \
7 $(top_srcdir)/config/tap-driver.sh
8
9TESTS = test_kernel_data \
10 test_session \
11 test_uri \
12 test_utils_parse_size_suffix \
13 test_utils_expand_path \
dbfea1ab 14 test_string_utils \
572cb877 15 test_notification \
a36b26b4
MJ
16 ini_config/test_ini_config
17
83c55082
CB
18LIBTAP=$(top_builddir)/tests/utils/tap/libtap.la
19
81d029da 20LIBCOMMON=$(top_builddir)/src/common/libcommon.la
dbfea1ab 21LIBSTRINGUTILS=$(top_builddir)/src/common/string-utils/libstring-utils.la
81d029da
CB
22LIBSESSIOND_COMM=$(top_builddir)/src/common/sessiond-comm/libsessiond-comm.la
23LIBHASHTABLE=$(top_builddir)/src/common/hashtable/libhashtable.la
d3e2ba59 24LIBRELAYD=$(top_builddir)/src/common/relayd/librelayd.la
572cb877 25LIBLTTNG_CTL=$(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la
81d029da 26
70d0b120 27# Define test programs
c77d8c84 28noinst_PROGRAMS = test_uri test_session test_kernel_data
635eb1df 29noinst_PROGRAMS += test_utils_parse_size_suffix test_utils_expand_path
572cb877 30noinst_PROGRAMS += test_string_utils test_notification
70d0b120 31
81d029da 32if HAVE_LIBLTTNG_UST_CTL
70d0b120 33noinst_PROGRAMS += test_ust_data
a36b26b4 34TESTS += test_ust_data
81d029da
CB
35endif
36
37# URI unit tests
38test_uri_SOURCES = test_uri.c
b1c46f87 39test_uri_LDADD = $(LIBTAP) $(LIBCOMMON) $(LIBHASHTABLE) $(DL_LIBS)
81d029da
CB
40
41# Session unit test
827b3af0
MJ
42SESSIONS=$(top_builddir)/src/bin/lttng-sessiond/session.$(OBJEXT) \
43 $(top_builddir)/src/bin/lttng-sessiond/consumer.$(OBJEXT) \
44 $(top_builddir)/src/bin/lttng-sessiond/utils.$(OBJEXT) \
45 $(top_builddir)/src/bin/lttng-sessiond/snapshot.$(OBJEXT) \
5e97de00 46 $(top_builddir)/src/bin/lttng-sessiond/ht-cleanup.$(OBJEXT) \
9354f1d0 47 $(top_builddir)/src/common/libcommon.la \
5e97de00
JG
48 $(top_builddir)/src/common/testpoint/libtestpoint.la \
49 $(top_builddir)/src/common/compat/libcompat.la \
8782cc74
MD
50 $(top_builddir)/src/common/health/libhealth.la \
51 $(top_builddir)/src/common/sessiond-comm/libsessiond-comm.la
52
81d029da 53
9a363369 54test_session_SOURCES = test_session.c
d3e2ba59 55test_session_LDADD = $(LIBTAP) $(LIBCOMMON) $(LIBRELAYD) $(LIBSESSIOND_COMM) \
b1c46f87 56 $(LIBHASHTABLE) $(DL_LIBS) -lrt
9a363369 57test_session_LDADD += $(SESSIONS)
81d029da
CB
58
59# UST data structures unit test
60if HAVE_LIBLTTNG_UST_CTL
827b3af0
MJ
61UST_DATA_TRACE=$(top_builddir)/src/bin/lttng-sessiond/trace-ust.$(OBJEXT) \
62 $(top_builddir)/src/bin/lttng-sessiond/consumer.$(OBJEXT) \
63 $(top_builddir)/src/bin/lttng-sessiond/utils.$(OBJEXT) \
64 $(top_builddir)/src/bin/lttng-sessiond/buffer-registry.$(OBJEXT) \
65 $(top_builddir)/src/bin/lttng-sessiond/ust-registry.$(OBJEXT) \
66 $(top_builddir)/src/bin/lttng-sessiond/ust-metadata.$(OBJEXT) \
67 $(top_builddir)/src/bin/lttng-sessiond/ust-app.$(OBJEXT) \
68 $(top_builddir)/src/bin/lttng-sessiond/ust-consumer.$(OBJEXT) \
69 $(top_builddir)/src/bin/lttng-sessiond/fd-limit.$(OBJEXT) \
70 $(top_builddir)/src/bin/lttng-sessiond/session.$(OBJEXT) \
71 $(top_builddir)/src/bin/lttng-sessiond/snapshot.$(OBJEXT) \
72 $(top_builddir)/src/bin/lttng-sessiond/agent.$(OBJEXT) \
83b45089 73 $(top_builddir)/src/bin/lttng-sessiond/notification-thread-commands.$(OBJEXT) \
9354f1d0 74 $(top_builddir)/src/common/libcommon.la \
8782cc74
MD
75 $(top_builddir)/src/common/health/libhealth.la \
76 $(top_builddir)/src/common/sessiond-comm/libsessiond-comm.la
81d029da 77
9a363369 78test_ust_data_SOURCES = test_ust_data.c
d3e2ba59 79test_ust_data_LDADD = $(LIBTAP) $(LIBCOMMON) $(LIBRELAYD) $(LIBSESSIOND_COMM)\
b1c46f87 80 $(LIBHASHTABLE) $(DL_LIBS) -lrt -llttng-ust-ctl
9a363369 81test_ust_data_LDADD += $(UST_DATA_TRACE)
81d029da
CB
82endif
83
84# Kernel data structures unit test
827b3af0
MJ
85KERN_DATA_TRACE=$(top_builddir)/src/bin/lttng-sessiond/trace-kernel.$(OBJEXT) \
86 $(top_builddir)/src/bin/lttng-sessiond/consumer.$(OBJEXT) \
87 $(top_builddir)/src/bin/lttng-sessiond/utils.$(OBJEXT) \
9354f1d0 88 $(top_builddir)/src/common/libcommon.la \
8782cc74 89 $(top_builddir)/src/common/health/libhealth.la \
83b45089 90 $(top_builddir)/src/bin/lttng-sessiond/notification-thread-commands.$(OBJEXT) \
8782cc74 91 $(top_builddir)/src/common/sessiond-comm/libsessiond-comm.la
81d029da 92
9a363369 93test_kernel_data_SOURCES = test_kernel_data.c
d3e2ba59 94test_kernel_data_LDADD = $(LIBTAP) $(LIBCOMMON) $(LIBRELAYD) $(LIBSESSIOND_COMM) \
b1c46f87 95 $(LIBHASHTABLE) $(DL_LIBS) -lrt
9a363369 96test_kernel_data_LDADD += $(KERN_DATA_TRACE)
70d0b120 97
c77d8c84 98# utils suffix for unit test
9354f1d0 99UTILS_SUFFIX=$(top_builddir)/src/common/libcommon.la
70d0b120 100
c77d8c84 101# parse_size_suffix unit test
70d0b120 102test_utils_parse_size_suffix_SOURCES = test_utils_parse_size_suffix.c
b1c46f87 103test_utils_parse_size_suffix_LDADD = $(LIBTAP) $(LIBHASHTABLE) $(LIBCOMMON) $(DL_LIBS)
c77d8c84
RB
104test_utils_parse_size_suffix_LDADD += $(UTILS_SUFFIX)
105
cc7f9e36
RB
106# expand_path unit test
107test_utils_expand_path_SOURCES = test_utils_expand_path.c
b1c46f87 108test_utils_expand_path_LDADD = $(LIBTAP) $(LIBHASHTABLE) $(LIBCOMMON) $(DL_LIBS)
cc7f9e36 109test_utils_expand_path_LDADD += $(UTILS_SUFFIX)
dbfea1ab
PP
110
111# string utilities unit test
112test_string_utils_SOURCES = test_string_utils.c
b1c46f87
MJ
113test_string_utils_LDADD = $(LIBTAP) $(LIBCOMMON) $(LIBSTRINGUTILS) $(DL_LIBS)
114
572cb877
JR
115# Notification api
116test_notification_SOURCES = test_notification.c
b1c46f87 117test_notification_LDADD = $(LIBTAP) $(LIBLTTNG_CTL) $(DL_LIBS)
This page took 0.078819 seconds and 5 git commands to generate.