Tests: Add filtering tests for uncovered cases
[lttng-tools.git] / tests / tools / Makefile.am
1 SUBDIRS = streaming filtering health
2
3 AM_CFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src -I$(top_srcdir)/tests -g -Wall
4 AM_LDFLAGS = -lurcu -lurcu-cds
5
6 EXTRA_DIST = runall.sh
7
8 noinst_PROGRAMS = test_sessions test_kernel_data_trace
9
10 UTILS=../utils.h
11 SESSIONS=$(top_srcdir)/src/bin/lttng-sessiond/session.c \
12 $(top_srcdir)/src/bin/lttng-sessiond/consumer.c \
13 $(top_srcdir)/src/common/uri.c \
14 $(top_srcdir)/src/common/utils.c \
15 $(top_srcdir)/src/common/error.c
16 KERN_DATA_TRACE=$(top_srcdir)/src/bin/lttng-sessiond/trace-kernel.c \
17 $(top_srcdir)/src/bin/lttng-sessiond/consumer.c \
18 $(top_srcdir)/src/common/uri.c \
19 $(top_srcdir)/src/common/utils.c
20 COMMON=$(top_builddir)/src/common/libcommon.la
21 HASHTABLE=$(top_builddir)/src/common/hashtable/libhashtable.la
22 SESSIOND_COMM=$(top_builddir)/src/common/sessiond-comm/libsessiond-comm.la
23
24 # Tracing sessions unit tests
25 test_sessions_SOURCES = test_sessions.c $(UTILS) $(SESSIONS)
26 test_sessions_LDADD = $(COMMON) $(HASHTABLE) $(SESSIOND_COMM)
27
28 # Kernel trace data unit tests
29 test_kernel_data_trace_SOURCES = test_kernel_data_trace.c $(UTILS) $(KERN_DATA_TRACE)
30 test_kernel_data_trace_LDADD = $(SESSIOND_COMM) $(HASHTABLE)
31
32 if HAVE_LIBLTTNG_UST_CTL
33 noinst_PROGRAMS += test_ust_data_trace
34 UST_DATA_TRACE=$(top_srcdir)/src/bin/lttng-sessiond/trace-ust.c \
35 $(top_srcdir)/src/bin/lttng-sessiond/consumer.c \
36 $(top_srcdir)/src/common/uri.c \
37 $(top_srcdir)/src/common/utils.c
38 # UST trace data unit tests
39 test_ust_data_trace_SOURCES = test_ust_data_trace.c $(UTILS) $(UST_DATA_TRACE)
40 test_ust_data_trace_LDADD = $(COMMON) $(HASHTABLE) $(SESSIOND_COMM)
41 endif
This page took 0.042904 seconds and 4 git commands to generate.