Tests: Convert the UST data structures unit test output to TAP
[lttng-tools.git] / tests / unit / Makefile.am
1 AM_CFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src -I$(top_srcdir)/tests/utils/ -I$(srcdir)
2 AM_LDFLAGS =
3
4 if LTTNG_TOOLS_BUILD_WITH_LIBDL
5 AM_LDFLAGS += -ldl
6 endif
7 if LTTNG_TOOLS_BUILD_WITH_LIBC_DL
8 AM_LDFLAGS += -lc
9 endif
10
11 LIBTAP=$(top_builddir)/tests/utils/tap/libtap.la
12
13 LIBCOMMON=$(top_builddir)/src/common/libcommon.la
14 LIBSESSIOND_COMM=$(top_builddir)/src/common/sessiond-comm/libsessiond-comm.la
15 LIBHASHTABLE=$(top_builddir)/src/common/hashtable/libhashtable.la
16
17 EXTRA_DIST = run.sh
18
19 if HAVE_LIBLTTNG_UST_CTL
20 noinst_PROGRAMS = test_uri test_session test_ust_data test_kernel_data
21 else
22 noinst_PROGRAMS = test_uri test_session test_kernel_data
23 endif
24
25 # URI unit tests
26 test_uri_SOURCES = test_uri.c
27 test_uri_LDADD = $(LIBCOMMON)
28
29 # Session unit test
30 SESSIONS=$(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
36 test_session_SOURCES = test_session.c $(SESSIONS)
37 test_session_LDADD = $(LIBTAP) $(LIBCOMMON) $(LIBSESSIOND_COMM) $(LIBHASHTABLE)
38
39 # UST data structures unit test
40 if HAVE_LIBLTTNG_UST_CTL
41 UST_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
46 test_ust_data_SOURCES = test_ust_data.c $(UST_DATA_TRACE)
47 test_ust_data_LDADD = $(LIBTAP) $(LIBCOMMON) $(LIBSESSIOND_COMM) $(LIBHASHTABLE)
48 endif
49
50 # Kernel data structures unit test
51 KERN_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
56 test_kernel_data_SOURCES = test_kernel_data.c $(KERN_DATA_TRACE)
57 test_kernel_data_LDADD = $(LIBTAP) $(LIBCOMMON) $(LIBSESSIOND_COMM) $(LIBHASHTABLE)
This page took 0.042302 seconds and 4 git commands to generate.