X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=tests%2Fregression%2Fkernel%2FMakefile.am;h=4fef90d36b18766553458b8211f4e1316750b65d;hb=fbf606d77e98bd46d953a40331f039730cfdf532;hp=f89ce0102bcb4b77c9a96f57ee75c28a1bb3ae5b;hpb=a3ed20b4dae0d228f39fe222e0170387eab85f42;p=lttng-tools.git diff --git a/tests/regression/kernel/Makefile.am b/tests/regression/kernel/Makefile.am index f89ce0102..4fef90d36 100644 --- a/tests/regression/kernel/Makefile.am +++ b/tests/regression/kernel/Makefile.am @@ -1,18 +1,38 @@ -AM_CFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src -I$(top_srcdir)/tests/utils -g -Wall -AM_LDFLAGS = -lurcu -lurcu-cds +# SPDX-License-Identifier: GPL-2.0-only -EXTRA_DIST = runall.sh run-kernel-tests.sh test_all_events -noinst_PROGRAMS = kernel_event_basic +EXTRA_DIST = test_all_events \ + test_callstack \ + test_channel \ + test_clock_override \ + test_event_basic \ + test_kernel_function \ + test_lttng_logger \ + test_ns_contexts \ + test_ns_contexts_change \ + test_rotation_destroy_flush \ + test_select_poll_epoll \ + test_syscall \ + test_userspace_probe \ + validate_select_poll_epoll.py -UTILS=$(top_srcdir)/tests/utils/utils.h -LIBLTTNG=$(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la +noinst_PROGRAMS = select_poll_epoll +select_poll_epoll_SOURCES = select_poll_epoll.cpp +select_poll_epoll_LDADD = $(POPT_LIBS) $(top_builddir)/src/common/libcommon-lgpl.la +select_poll_epoll_CPPFLAGS = $(POPT_CFLAGS) $(AM_CPPFLAGS) +# Disable stack protection, the test overflows the stack to test the poll/epoll syscalls +select_poll_epoll_CXXFLAGS = -fno-stack-protector $(AM_CXXFLAGS) -SESSIONDSRC=$(top_srcdir)/src/common/sessiond-comm/sessiond-comm.c \ - $(top_srcdir)/src/common/sessiond-comm/unix.c \ - $(top_srcdir)/src/common/sessiond-comm/inet.c \ - $(top_srcdir)/src/common/sessiond-comm/inet6.c +all-local: + @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ + for script in $(EXTRA_DIST); do \ + cp -f $(srcdir)/$$script $(builddir); \ + done; \ + fi -kernel_event_basic_SOURCES = kernel_event_basic.c $(UTILS) \ - $(SESSIONDSRC) -kernel_event_basic_LDADD = $(LIBLTTNG) +clean-local: + @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ + for script in $(EXTRA_DIST); do \ + rm -f $(builddir)/$$script; \ + done; \ + fi