X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2FMakefile.am;h=8f5c15d34984eacea5519940a437de93544a628b;hp=8b13eac14cc3b38e4a0a23ce8461583aac0a5aad;hb=5bbf6fde94060f0dd7952e8595dcf6f05c61ad2a;hpb=f851868f8c7195682d13762719ce8f13293fd794 diff --git a/tests/Makefile.am b/tests/Makefile.am index 8b13eac14..8f5c15d34 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,45 +1,34 @@ -SUBDIRS = . +# SPDX-License-Identifier: GPL-2.0-only -AM_CFLAGS=-I$(top_srcdir)/include -I$(top_srcdir)/libkernelctl \ - -I$(top_srcdir)/liblttngctl -g -Wall -lurcu -lurcu-cds - -EXTRA_DIST = runall.sh utils.sh lttng/runall.sh lttng/run-kernel-tests.sh - -noinst_PROGRAMS = test_sessions test_kernel_data_trace \ - kernel_all_events_basic kernel_event_basic - -UTILS=utils.h -SESSIONS=$(top_srcdir)/lttng-sessiond/session.c -KERN_DATA_TRACE=$(top_srcdir)/lttng-sessiond/trace-kernel.c -LIBLTTNG=$(top_srcdir)/liblttngctl/lttngctl.c \ - $(top_srcdir)/liblttng-sessiond-comm/lttng-sessiond-comm.c - -test_sessions_SOURCES = test_sessions.c $(UTILS) $(SESSIONS) -test_sessions_LDADD = $(top_builddir)/common/libcommon.la \ - $(top_builddir)/liblttng-ht/liblttng-ht.la - -test_kernel_data_trace_SOURCES = test_kernel_data_trace.c $(UTILS) $(KERN_DATA_TRACE) - - -kernel_all_events_basic_SOURCES = lttng/kernel_all_events_basic.c $(UTILS) $(LIBLTTNG) - -kernel_event_basic_SOURCES = lttng/kernel_event_basic.c $(UTILS) $(LIBLTTNG) - -if HAVE_LIBLTTNG_UST_CTL -SUBDIRS += ust-nevents ust-nprocesses -EXTRA_DIST += lttng/run-ust-global-tests.sh -noinst_PROGRAMS += ust_global_event_basic ust_global_all_events_basic test_ust_data_trace - -UST_DATA_TRACE=$(top_srcdir)/lttng-sessiond/trace-ust.c - -test_ust_data_trace_SOURCES = test_ust_data_trace.c $(UTILS) $(UST_DATA_TRACE) -test_ust_data_trace_LDADD = $(top_builddir)/common/libcommon.la \ - $(top_builddir)/liblttng-ht/liblttng-ht.la - -ust_global_all_events_basic_SOURCES = lttng/ust_global_all_events_basic.c $(UTILS) $(LIBLTTNG) - -ust_global_event_basic_SOURCES = lttng/ust_global_event_basic.c $(UTILS) $(LIBLTTNG) -endif # HAVE_LIBLTTNG_UST_CTL +SUBDIRS = +DIST_SUBDIRS = utils unit regression stress destructive perf +if BUILD_TESTS +SUBDIRS += . utils unit regression stress destructive perf +if HAVE_PGREP check-am: - ./runall.sh + $(top_srcdir)/tests/utils/warn_processes.sh $(PGREP) +endif +else + @echo "=========================================" + @echo "WARNING: Tests were disabled at configure" + @echo "=========================================" +endif + + +dist_noinst_SCRIPTS = run.sh fast_regression long_regression root_regression root_destructive_tests perf_regression +EXTRA_DIST = run.sh fast_regression long_regression root_regression README root_destructive_tests perf_regression + +all-local: + @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ + for script in $(EXTRA_DIST); do \ + cp -f $(srcdir)/$$script $(builddir); \ + done; \ + fi + +clean-local: + @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ + for script in $(EXTRA_DIST); do \ + rm -f $(builddir)/$$script; \ + done; \ + fi