X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Fregression%2Ftools%2Fhealth%2FMakefile.am;h=4d835f3dfa4d360fe4b4538de2679197a97af519;hp=098fbf421aee5ee9c119b0fc14ecf66cc7ecd6d0;hb=cdbfb1b9cd74b6f6da7082482b1d6c3d97605818;hpb=431387b05242f3cd52771cd4cdb3f09e9ef9a560 diff --git a/tests/regression/tools/health/Makefile.am b/tests/regression/tools/health/Makefile.am index 098fbf421..4d835f3df 100644 --- a/tests/regression/tools/health/Makefile.am +++ b/tests/regression/tools/health/Makefile.am @@ -2,15 +2,23 @@ AM_CFLAGS = -I. -O2 -g -I$(top_srcdir)/include AM_LDFLAGS = if LTTNG_TOOLS_BUILD_WITH_LIBDL -AM_LDFLAGS += -ldl +LIBS += -ldl endif if LTTNG_TOOLS_BUILD_WITH_LIBC_DL -AM_LDFLAGS += -lc +LIBS += -lc endif +COPYSCRIPTS = test_thread_exit test_thread_stall test_tp_fail \ + test_health.sh test_thread_ok +dist_noinst_SCRIPTS = $(COPYSCRIPTS) + if NO_SHARED # Do not build this test if shared libraries support was # explicitly disabled. + +EXTRA_DIST = health_exit.c health_stall.c health_fail.c \ + health_check.c $(COPYSCRIPTS) + else # In order to test the health check feature, the libhealth* libs # must be built as .so to be able to LD_PRELOAD them. @@ -35,7 +43,21 @@ noinst_LTLIBRARIES = libhealthexit.la libhealthstall.la libhealthtpfail.la health_check_SOURCES = health_check.c $(UTILS) health_check_LDADD = $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la \ $(top_builddir)/src/common/libcommon.la + +EXTRA_DIST = $(COPYSCRIPTS) + endif -dist_noinst_SCRIPTS = test_thread_exit test_thread_stall test_tp_fail -EXTRA_DIST = test_thread_exit test_thread_stall test_tp_fail +all-local: + @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ + for script in $(COPYSCRIPTS); do \ + cp -f $(srcdir)/$$script $(builddir); \ + done; \ + fi + +clean-local: + @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ + for script in $(COPYSCRIPTS); do \ + rm -f $(builddir)/$$script; \ + done; \ + fi