Tests: Convert the UST data structures unit test output to TAP
[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
16
17EXTRA_DIST = run.sh
18
19if HAVE_LIBLTTNG_UST_CTL
20noinst_PROGRAMS = test_uri test_session test_ust_data test_kernel_data
21else
22noinst_PROGRAMS = test_uri test_session test_kernel_data
23endif
24
25# URI unit tests
26test_uri_SOURCES = test_uri.c
27test_uri_LDADD = $(LIBCOMMON)
28
29# Session unit test
30SESSIONS=$(top_srcdir)/src/bin/lttng-sessiond/session.c \
31 $(top_srcdir)/src/bin/lttng-sessiond/consumer.c \
32 $(top_srcdir)/src/common/uri.c \
33 $(top_srcdir)/src/common/utils.c \
34 $(top_srcdir)/src/common/error.c
35
36test_session_SOURCES = test_session.c $(SESSIONS)
83c55082 37test_session_LDADD = $(LIBTAP) $(LIBCOMMON) $(LIBSESSIOND_COMM) $(LIBHASHTABLE)
81d029da
CB
38
39# UST data structures unit test
40if HAVE_LIBLTTNG_UST_CTL
41UST_DATA_TRACE=$(top_srcdir)/src/bin/lttng-sessiond/trace-ust.c \
42 $(top_srcdir)/src/bin/lttng-sessiond/consumer.c \
43 $(top_srcdir)/src/common/uri.c \
44 $(top_srcdir)/src/common/utils.c
45
46test_ust_data_SOURCES = test_ust_data.c $(UST_DATA_TRACE)
657270a4 47test_ust_data_LDADD = $(LIBTAP) $(LIBCOMMON) $(LIBSESSIOND_COMM) $(LIBHASHTABLE)
81d029da
CB
48endif
49
50# Kernel data structures unit test
51KERN_DATA_TRACE=$(top_srcdir)/src/bin/lttng-sessiond/trace-kernel.c \
52 $(top_srcdir)/src/bin/lttng-sessiond/consumer.c \
53 $(top_srcdir)/src/common/uri.c \
54 $(top_srcdir)/src/common/utils.c
55
56test_kernel_data_SOURCES = test_kernel_data.c $(KERN_DATA_TRACE)
23aaa19e 57test_kernel_data_LDADD = $(LIBTAP) $(LIBCOMMON) $(LIBSESSIOND_COMM) $(LIBHASHTABLE)
This page took 0.034738 seconds and 4 git commands to generate.