Tests: Move unit tests to tests/unit
[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
11LIBCOMMON=$(top_builddir)/src/common/libcommon.la
12LIBSESSIOND_COMM=$(top_builddir)/src/common/sessiond-comm/libsessiond-comm.la
13LIBHASHTABLE=$(top_builddir)/src/common/hashtable/libhashtable.la
14
15EXTRA_DIST = run.sh
16
17if HAVE_LIBLTTNG_UST_CTL
18noinst_PROGRAMS = test_uri test_session test_ust_data test_kernel_data
19else
20noinst_PROGRAMS = test_uri test_session test_kernel_data
21endif
22
23# URI unit tests
24test_uri_SOURCES = test_uri.c
25test_uri_LDADD = $(LIBCOMMON)
26
27# Session unit test
28SESSIONS=$(top_srcdir)/src/bin/lttng-sessiond/session.c \
29 $(top_srcdir)/src/bin/lttng-sessiond/consumer.c \
30 $(top_srcdir)/src/common/uri.c \
31 $(top_srcdir)/src/common/utils.c \
32 $(top_srcdir)/src/common/error.c
33
34test_session_SOURCES = test_session.c $(SESSIONS)
35test_session_LDADD = $(LIBCOMMON) $(LIBSESSIOND_COMM) $(LIBHASHTABLE)
36
37# UST data structures unit test
38if HAVE_LIBLTTNG_UST_CTL
39UST_DATA_TRACE=$(top_srcdir)/src/bin/lttng-sessiond/trace-ust.c \
40 $(top_srcdir)/src/bin/lttng-sessiond/consumer.c \
41 $(top_srcdir)/src/common/uri.c \
42 $(top_srcdir)/src/common/utils.c
43
44test_ust_data_SOURCES = test_ust_data.c $(UST_DATA_TRACE)
45test_ust_data_LDADD = $(LIBCOMMON) $(LIBSESSIOND_COMM) $(LIBHASHTABLE)
46endif
47
48# Kernel data structures unit test
49KERN_DATA_TRACE=$(top_srcdir)/src/bin/lttng-sessiond/trace-kernel.c \
50 $(top_srcdir)/src/bin/lttng-sessiond/consumer.c \
51 $(top_srcdir)/src/common/uri.c \
52 $(top_srcdir)/src/common/utils.c
53
54test_kernel_data_SOURCES = test_kernel_data.c $(KERN_DATA_TRACE)
55test_kernel_data_LDADD = $(LIBCOMMON) $(LIBSESSIOND_COMM) $(LIBHASHTABLE)
This page took 0.042129 seconds and 4 git commands to generate.