Fix: split index and data file rotation logic
[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 \
7010c033 13 test_utils_parse_time_suffix \
a36b26b4 14 test_utils_expand_path \
dbfea1ab 15 test_string_utils \
572cb877 16 test_notification \
a36b26b4
MJ
17 ini_config/test_ini_config
18
83c55082
CB
19LIBTAP=$(top_builddir)/tests/utils/tap/libtap.la
20
81d029da 21LIBCOMMON=$(top_builddir)/src/common/libcommon.la
dbfea1ab 22LIBSTRINGUTILS=$(top_builddir)/src/common/string-utils/libstring-utils.la
81d029da
CB
23LIBSESSIOND_COMM=$(top_builddir)/src/common/sessiond-comm/libsessiond-comm.la
24LIBHASHTABLE=$(top_builddir)/src/common/hashtable/libhashtable.la
d3e2ba59 25LIBRELAYD=$(top_builddir)/src/common/relayd/librelayd.la
572cb877 26LIBLTTNG_CTL=$(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la
81d029da 27
70d0b120 28# Define test programs
7010c033
SM
29noinst_PROGRAMS = test_uri test_session test_kernel_data \
30 test_utils_parse_size_suffix test_utils_parse_time_suffix \
31 test_utils_expand_path test_string_utils test_notification
70d0b120 32
81d029da 33if HAVE_LIBLTTNG_UST_CTL
70d0b120 34noinst_PROGRAMS += test_ust_data
a36b26b4 35TESTS += test_ust_data
81d029da
CB
36endif
37
38# URI unit tests
39test_uri_SOURCES = test_uri.c
b1c46f87 40test_uri_LDADD = $(LIBTAP) $(LIBCOMMON) $(LIBHASHTABLE) $(DL_LIBS)
81d029da
CB
41
42# Session unit test
827b3af0
MJ
43SESSIONS=$(top_builddir)/src/bin/lttng-sessiond/session.$(OBJEXT) \
44 $(top_builddir)/src/bin/lttng-sessiond/consumer.$(OBJEXT) \
45 $(top_builddir)/src/bin/lttng-sessiond/utils.$(OBJEXT) \
46 $(top_builddir)/src/bin/lttng-sessiond/snapshot.$(OBJEXT) \
5e97de00 47 $(top_builddir)/src/bin/lttng-sessiond/ht-cleanup.$(OBJEXT) \
9354f1d0 48 $(top_builddir)/src/common/libcommon.la \
5e97de00
JG
49 $(top_builddir)/src/common/testpoint/libtestpoint.la \
50 $(top_builddir)/src/common/compat/libcompat.la \
8782cc74
MD
51 $(top_builddir)/src/common/health/libhealth.la \
52 $(top_builddir)/src/common/sessiond-comm/libsessiond-comm.la
53
81d029da 54
9a363369 55test_session_SOURCES = test_session.c
d3e2ba59 56test_session_LDADD = $(LIBTAP) $(LIBCOMMON) $(LIBRELAYD) $(LIBSESSIOND_COMM) \
b1c46f87 57 $(LIBHASHTABLE) $(DL_LIBS) -lrt
9a363369 58test_session_LDADD += $(SESSIONS)
81d029da
CB
59
60# UST data structures unit test
61if HAVE_LIBLTTNG_UST_CTL
827b3af0
MJ
62UST_DATA_TRACE=$(top_builddir)/src/bin/lttng-sessiond/trace-ust.$(OBJEXT) \
63 $(top_builddir)/src/bin/lttng-sessiond/consumer.$(OBJEXT) \
64 $(top_builddir)/src/bin/lttng-sessiond/utils.$(OBJEXT) \
65 $(top_builddir)/src/bin/lttng-sessiond/buffer-registry.$(OBJEXT) \
66 $(top_builddir)/src/bin/lttng-sessiond/ust-registry.$(OBJEXT) \
98b73e88 67 $(top_builddir)/src/bin/lttng-sessiond/ust-field-utils.$(OBJEXT) \
827b3af0
MJ
68 $(top_builddir)/src/bin/lttng-sessiond/ust-metadata.$(OBJEXT) \
69 $(top_builddir)/src/bin/lttng-sessiond/ust-app.$(OBJEXT) \
70 $(top_builddir)/src/bin/lttng-sessiond/ust-consumer.$(OBJEXT) \
71 $(top_builddir)/src/bin/lttng-sessiond/fd-limit.$(OBJEXT) \
72 $(top_builddir)/src/bin/lttng-sessiond/session.$(OBJEXT) \
73 $(top_builddir)/src/bin/lttng-sessiond/snapshot.$(OBJEXT) \
74 $(top_builddir)/src/bin/lttng-sessiond/agent.$(OBJEXT) \
83b45089 75 $(top_builddir)/src/bin/lttng-sessiond/notification-thread-commands.$(OBJEXT) \
9354f1d0 76 $(top_builddir)/src/common/libcommon.la \
8782cc74
MD
77 $(top_builddir)/src/common/health/libhealth.la \
78 $(top_builddir)/src/common/sessiond-comm/libsessiond-comm.la
81d029da 79
9a363369 80test_ust_data_SOURCES = test_ust_data.c
d3e2ba59 81test_ust_data_LDADD = $(LIBTAP) $(LIBCOMMON) $(LIBRELAYD) $(LIBSESSIOND_COMM)\
b1c46f87 82 $(LIBHASHTABLE) $(DL_LIBS) -lrt -llttng-ust-ctl
9a363369 83test_ust_data_LDADD += $(UST_DATA_TRACE)
81d029da
CB
84endif
85
86# Kernel data structures unit test
827b3af0
MJ
87KERN_DATA_TRACE=$(top_builddir)/src/bin/lttng-sessiond/trace-kernel.$(OBJEXT) \
88 $(top_builddir)/src/bin/lttng-sessiond/consumer.$(OBJEXT) \
89 $(top_builddir)/src/bin/lttng-sessiond/utils.$(OBJEXT) \
9354f1d0 90 $(top_builddir)/src/common/libcommon.la \
8782cc74 91 $(top_builddir)/src/common/health/libhealth.la \
83b45089 92 $(top_builddir)/src/bin/lttng-sessiond/notification-thread-commands.$(OBJEXT) \
dcabc190
FD
93 $(top_builddir)/src/common/sessiond-comm/libsessiond-comm.la \
94 $(LIBLTTNG_CTL)
81d029da 95
9a363369 96test_kernel_data_SOURCES = test_kernel_data.c
d3e2ba59 97test_kernel_data_LDADD = $(LIBTAP) $(LIBCOMMON) $(LIBRELAYD) $(LIBSESSIOND_COMM) \
b1c46f87 98 $(LIBHASHTABLE) $(DL_LIBS) -lrt
9a363369 99test_kernel_data_LDADD += $(KERN_DATA_TRACE)
70d0b120 100
c77d8c84 101# utils suffix for unit test
9354f1d0 102UTILS_SUFFIX=$(top_builddir)/src/common/libcommon.la
70d0b120 103
c77d8c84 104# parse_size_suffix unit test
70d0b120 105test_utils_parse_size_suffix_SOURCES = test_utils_parse_size_suffix.c
b1c46f87 106test_utils_parse_size_suffix_LDADD = $(LIBTAP) $(LIBHASHTABLE) $(LIBCOMMON) $(DL_LIBS)
c77d8c84
RB
107test_utils_parse_size_suffix_LDADD += $(UTILS_SUFFIX)
108
7010c033
SM
109# parse_time_suffix unit test
110test_utils_parse_time_suffix_SOURCES = test_utils_parse_time_suffix.c
111test_utils_parse_time_suffix_LDADD = $(LIBTAP) $(LIBHASHTABLE) $(LIBCOMMON)
112test_utils_parse_time_suffix_LDADD += $(UTILS_SUFFIX)
113
cc7f9e36
RB
114# expand_path unit test
115test_utils_expand_path_SOURCES = test_utils_expand_path.c
b1c46f87 116test_utils_expand_path_LDADD = $(LIBTAP) $(LIBHASHTABLE) $(LIBCOMMON) $(DL_LIBS)
cc7f9e36 117test_utils_expand_path_LDADD += $(UTILS_SUFFIX)
dbfea1ab
PP
118
119# string utilities unit test
120test_string_utils_SOURCES = test_string_utils.c
b1c46f87
MJ
121test_string_utils_LDADD = $(LIBTAP) $(LIBCOMMON) $(LIBSTRINGUTILS) $(DL_LIBS)
122
572cb877
JR
123# Notification api
124test_notification_SOURCES = test_notification.c
b1c46f87 125test_notification_LDADD = $(LIBTAP) $(LIBLTTNG_CTL) $(DL_LIBS)
This page took 0.07741 seconds and 5 git commands to generate.