Introduce utils_parse_time_suffix
[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) \
67 $(top_builddir)/src/bin/lttng-sessiond/ust-metadata.$(OBJEXT) \
68 $(top_builddir)/src/bin/lttng-sessiond/ust-app.$(OBJEXT) \
69 $(top_builddir)/src/bin/lttng-sessiond/ust-consumer.$(OBJEXT) \
70 $(top_builddir)/src/bin/lttng-sessiond/fd-limit.$(OBJEXT) \
71 $(top_builddir)/src/bin/lttng-sessiond/session.$(OBJEXT) \
72 $(top_builddir)/src/bin/lttng-sessiond/snapshot.$(OBJEXT) \
73 $(top_builddir)/src/bin/lttng-sessiond/agent.$(OBJEXT) \
83b45089 74 $(top_builddir)/src/bin/lttng-sessiond/notification-thread-commands.$(OBJEXT) \
9354f1d0 75 $(top_builddir)/src/common/libcommon.la \
8782cc74
MD
76 $(top_builddir)/src/common/health/libhealth.la \
77 $(top_builddir)/src/common/sessiond-comm/libsessiond-comm.la
81d029da 78
9a363369 79test_ust_data_SOURCES = test_ust_data.c
d3e2ba59 80test_ust_data_LDADD = $(LIBTAP) $(LIBCOMMON) $(LIBRELAYD) $(LIBSESSIOND_COMM)\
b1c46f87 81 $(LIBHASHTABLE) $(DL_LIBS) -lrt -llttng-ust-ctl
9a363369 82test_ust_data_LDADD += $(UST_DATA_TRACE)
81d029da
CB
83endif
84
85# Kernel data structures unit test
827b3af0
MJ
86KERN_DATA_TRACE=$(top_builddir)/src/bin/lttng-sessiond/trace-kernel.$(OBJEXT) \
87 $(top_builddir)/src/bin/lttng-sessiond/consumer.$(OBJEXT) \
88 $(top_builddir)/src/bin/lttng-sessiond/utils.$(OBJEXT) \
9354f1d0 89 $(top_builddir)/src/common/libcommon.la \
8782cc74 90 $(top_builddir)/src/common/health/libhealth.la \
83b45089 91 $(top_builddir)/src/bin/lttng-sessiond/notification-thread-commands.$(OBJEXT) \
8782cc74 92 $(top_builddir)/src/common/sessiond-comm/libsessiond-comm.la
81d029da 93
9a363369 94test_kernel_data_SOURCES = test_kernel_data.c
d3e2ba59 95test_kernel_data_LDADD = $(LIBTAP) $(LIBCOMMON) $(LIBRELAYD) $(LIBSESSIOND_COMM) \
b1c46f87 96 $(LIBHASHTABLE) $(DL_LIBS) -lrt
9a363369 97test_kernel_data_LDADD += $(KERN_DATA_TRACE)
70d0b120 98
c77d8c84 99# utils suffix for unit test
9354f1d0 100UTILS_SUFFIX=$(top_builddir)/src/common/libcommon.la
70d0b120 101
c77d8c84 102# parse_size_suffix unit test
70d0b120 103test_utils_parse_size_suffix_SOURCES = test_utils_parse_size_suffix.c
b1c46f87 104test_utils_parse_size_suffix_LDADD = $(LIBTAP) $(LIBHASHTABLE) $(LIBCOMMON) $(DL_LIBS)
c77d8c84
RB
105test_utils_parse_size_suffix_LDADD += $(UTILS_SUFFIX)
106
7010c033
SM
107# parse_time_suffix unit test
108test_utils_parse_time_suffix_SOURCES = test_utils_parse_time_suffix.c
109test_utils_parse_time_suffix_LDADD = $(LIBTAP) $(LIBHASHTABLE) $(LIBCOMMON)
110test_utils_parse_time_suffix_LDADD += $(UTILS_SUFFIX)
111
cc7f9e36
RB
112# expand_path unit test
113test_utils_expand_path_SOURCES = test_utils_expand_path.c
b1c46f87 114test_utils_expand_path_LDADD = $(LIBTAP) $(LIBHASHTABLE) $(LIBCOMMON) $(DL_LIBS)
cc7f9e36 115test_utils_expand_path_LDADD += $(UTILS_SUFFIX)
dbfea1ab
PP
116
117# string utilities unit test
118test_string_utils_SOURCES = test_string_utils.c
b1c46f87
MJ
119test_string_utils_LDADD = $(LIBTAP) $(LIBCOMMON) $(LIBSTRINGUTILS) $(DL_LIBS)
120
572cb877
JR
121# Notification api
122test_notification_SOURCES = test_notification.c
b1c46f87 123test_notification_LDADD = $(LIBTAP) $(LIBLTTNG_CTL) $(DL_LIBS)
This page took 0.074329 seconds and 5 git commands to generate.