X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Fregression%2Ftools%2Fhealth%2FMakefile.am;fp=tests%2Fregression%2Ftools%2Fhealth%2FMakefile.am;h=1a0a8f6d12a915f392e4dd61810f542b3f9b2787;hp=0000000000000000000000000000000000000000;hb=9ac429ef32142eaecfec2d1a44569464c4f8f721;hpb=785d2d0dc3aec3a4e44fcf677155dd07e8e4cc1f diff --git a/tests/regression/tools/health/Makefile.am b/tests/regression/tools/health/Makefile.am new file mode 100644 index 000000000..1a0a8f6d1 --- /dev/null +++ b/tests/regression/tools/health/Makefile.am @@ -0,0 +1,41 @@ +AM_CFLAGS = -I. -O2 -g -I$(top_srcdir)/include +AM_LDFLAGS = + +if LTTNG_TOOLS_BUILD_WITH_LIBDL +AM_LDFLAGS += -ldl +endif +if LTTNG_TOOLS_BUILD_WITH_LIBC_DL +AM_LDFLAGS += -lc +endif + +if NO_SHARED +# Do not build this test if shared libraries support was +# explicitly disabled. +else +# In order to test the health check feature, the libhealth* libs +# must be built as .so to be able to LD_PRELOAD them. +FORCE_SHARED_LIB_OPTIONS = -module -shared -avoid-version \ + -rpath $(abs_builddir) + +# Health thread exit ld_preloaded test lib +libhealthexit_la_SOURCES=health_exit.c +libhealthexit_la_LDFLAGS= $(FORCE_SHARED_LIB_OPTIONS) + +# Health thread stall ld_preloaded test lib +libhealthstall_la_SOURCES=health_stall.c +libhealthstall_la_LDFLAGS= $(FORCE_SHARED_LIB_OPTIONS) + +# Health thread fail ld_preloaded test lib +libhealthtpfail_la_SOURCES=health_fail.c +libhealthtpfail_la_LDFLAGS= $(FORCE_SHARED_LIB_OPTIONS) + +noinst_PROGRAMS = health_check +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 +endif + +noinst_SCRIPTS = runall +EXTRA_DIST = runall