Don't init kernel tracer if not root (UID=0)
[lttng-tools.git] / tests / Makefile.am
CommitLineData
ec8f26de 1SUBDIRS = .
d3e8f6bb 2
63371d1e 3AM_CFLAGS=-I$(top_srcdir)/include -I$(top_srcdir)/libkernelctl \
f6a9efaa 4 -I$(top_srcdir)/liblttngctl -g -Wall -lurcu -lurcu-cds
fac6795d 5
ec8f26de 6EXTRA_DIST = runall.sh lttng/runall.sh lttng/run-kernel-tests.sh
ff3db882 7
ec8f26de
DG
8noinst_PROGRAMS = test_sessions test_kernel_data_trace \
9 kernel_all_events_basic kernel_event_basic
63371d1e 10
b79ac29c 11UTILS=utils.h
daf282ab 12SESSIONS=$(top_srcdir)/lttng-sessiond/session.c
32258573 13KERN_DATA_TRACE=$(top_srcdir)/lttng-sessiond/trace-kernel.c
e3fa263d
DG
14LIBLTTNG=$(top_srcdir)/liblttngctl/lttngctl.c \
15 $(top_srcdir)/liblttng-sessiond-comm/lttng-sessiond-comm.c
63371d1e 16
b79ac29c 17test_sessions_SOURCES = test_sessions.c $(UTILS) $(SESSIONS)
8dd32351
DG
18test_sessions_LDADD = $(top_builddir)/common/libcommon.la \
19 $(top_builddir)/liblttng-ht/liblttng-ht.la
63371d1e 20
b79ac29c 21test_kernel_data_trace_SOURCES = test_kernel_data_trace.c $(UTILS) $(KERN_DATA_TRACE)
897b8e23 22
8dd32351 23
e3fa263d
DG
24kernel_all_events_basic_SOURCES = lttng/kernel_all_events_basic.c $(UTILS) $(LIBLTTNG)
25
c60ddab6
DG
26kernel_event_basic_SOURCES = lttng/kernel_event_basic.c $(UTILS) $(LIBLTTNG)
27
ec8f26de
DG
28if HAVE_LIBLTTNG_UST_CTL
29SUBDIRS += ust-nevents ust-nprocesses
30EXTRA_DIST += lttng/run-ust-tests.sh
31noinst_PROGRAMS += ust_global_event_basic ust_global_all_events_basic test_ust_data_trace
32
33UST_DATA_TRACE=$(top_srcdir)/lttng-sessiond/trace-ust.c
34
35test_ust_data_trace_SOURCES = test_ust_data_trace.c $(UTILS) $(UST_DATA_TRACE)
36test_ust_data_trace_LDADD = $(top_builddir)/common/libcommon.la \
37 $(top_builddir)/liblttng-ht/liblttng-ht.la
38
69c0b621
DG
39ust_global_all_events_basic_SOURCES = lttng/ust_global_all_events_basic.c $(UTILS) $(LIBLTTNG)
40
41ust_global_event_basic_SOURCES = lttng/ust_global_event_basic.c $(UTILS) $(LIBLTTNG)
ec8f26de 42endif # HAVE_LIBLTTNG_UST_CTL
69c0b621 43
63371d1e
DG
44check-am:
45 ./runall.sh
This page took 0.036785 seconds and 4 git commands to generate.