Tests: remove unused libhealthexit code
[lttng-tools.git] / tests / regression / tools / health / Makefile.am
CommitLineData
9d16b343
MJ
1# SPDX-License-Identifier: GPL-2.0-only
2
343af227 3AM_CPPFLAGS += -I. -I$(top_srcdir)/include
dff9583f 4
89c45396 5COPYSCRIPTS = test_thread_stall test_tp_fail \
cdbfb1b9
MD
6 test_health.sh test_thread_ok
7dist_noinst_SCRIPTS = $(COPYSCRIPTS)
8
347e0f14
CB
9if NO_SHARED
10# Do not build this test if shared libraries support was
11# explicitly disabled.
cdbfb1b9 12
c89998b2 13EXTRA_DIST = health_stall.c health_fail.c \
cdbfb1b9
MD
14 health_check.c $(COPYSCRIPTS)
15
347e0f14
CB
16else
17# In order to test the health check feature, the libhealth* libs
18# must be built as .so to be able to LD_PRELOAD them.
19FORCE_SHARED_LIB_OPTIONS = -module -shared -avoid-version \
20 -rpath $(abs_builddir)
9e32c5c0 21
5862a19a
CB
22# Health thread stall ld_preloaded test lib
23libhealthstall_la_SOURCES=health_stall.c
347e0f14 24libhealthstall_la_LDFLAGS= $(FORCE_SHARED_LIB_OPTIONS)
b1c46f87 25libhealthstall_la_LIBADD = $(DL_LIBS)
5862a19a 26
6b5133f2
CB
27# Health thread fail ld_preloaded test lib
28libhealthtpfail_la_SOURCES=health_fail.c
29libhealthtpfail_la_LDFLAGS= $(FORCE_SHARED_LIB_OPTIONS)
b1c46f87 30libhealthtpfail_la_LIBADD = $(DL_LIBS)
6b5133f2 31
dff9583f 32noinst_PROGRAMS = health_check
c89998b2 33noinst_LTLIBRARIES = libhealthstall.la libhealthtpfail.la
dff9583f
CB
34
35health_check_SOURCES = health_check.c $(UTILS)
36health_check_LDADD = $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la \
b1c46f87
MJ
37 $(top_builddir)/src/common/libcommon.la \
38 $(DL_LIBS)
431387b0 39
cdbfb1b9
MD
40EXTRA_DIST = $(COPYSCRIPTS)
41
42endif
c83e7ca0
DG
43
44all-local:
45 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
cdbfb1b9 46 for script in $(COPYSCRIPTS); do \
c83e7ca0
DG
47 cp -f $(srcdir)/$$script $(builddir); \
48 done; \
49 fi
50
51clean-local:
52 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
cdbfb1b9 53 for script in $(COPYSCRIPTS); do \
c83e7ca0
DG
54 rm -f $(builddir)/$$script; \
55 done; \
56 fi
This page took 0.061197 seconds and 5 git commands to generate.