2002-04-03 08:51:34 +02:00
|
|
|
AM_CPPFLAGS = -I$(top_srcdir)/include
|
|
|
|
|
2004-10-15 15:48:38 +02:00
|
|
|
EXTRA_DIST = run-ia64-test-dyn1 run-ptrace-mapper run-ptrace-misc \
|
2012-05-17 17:00:59 +02:00
|
|
|
run-check-namespace run-coredump-unwind \
|
2012-08-08 14:08:49 +02:00
|
|
|
run-coredump-unwind-mdi check-namespace.sh.in \
|
2012-09-17 13:28:46 +02:00
|
|
|
Gtest-nomalloc.c
|
2003-03-06 07:14:36 +01:00
|
|
|
|
2010-10-29 01:25:51 +02:00
|
|
|
MAINTAINERCLEANFILES = Makefile.in
|
|
|
|
|
2016-06-13 20:15:33 +02:00
|
|
|
noinst_PROGRAMS_arch =
|
|
|
|
noinst_PROGRAMS_cdep =
|
2002-04-03 08:51:34 +02:00
|
|
|
noinst_PROGRAMS_common =
|
2016-06-13 20:15:33 +02:00
|
|
|
check_PROGRAMS_arch =
|
|
|
|
check_PROGRAMS_cdep =
|
2004-08-19 16:03:54 +02:00
|
|
|
check_PROGRAMS_common = test-proc-info test-static-link \
|
2004-08-18 17:16:46 +02:00
|
|
|
test-strerror
|
2016-06-13 20:15:33 +02:00
|
|
|
check_SCRIPTS_arch =
|
|
|
|
check_SCRIPTS_cdep =
|
2004-05-05 03:58:44 +02:00
|
|
|
check_SCRIPTS_common = run-check-namespace
|
2002-04-03 08:51:34 +02:00
|
|
|
|
|
|
|
if REMOTE_ONLY
|
2004-01-21 07:36:35 +01:00
|
|
|
|
|
|
|
perf:
|
|
|
|
|
2002-04-03 08:51:34 +02:00
|
|
|
else
|
2010-11-09 02:16:34 +01:00
|
|
|
LIBUNWIND_local = $(top_builddir)/src/libunwind.la
|
2002-04-25 08:47:29 +02:00
|
|
|
if ARCH_IA64
|
2016-06-13 20:15:33 +02:00
|
|
|
noinst_PROGRAMS_arch += ia64-test-dyn1
|
|
|
|
check_SCRIPTS_arch += run-ia64-test-dyn1
|
|
|
|
check_PROGRAMS_arch += Gia64-test-stack Lia64-test-stack \
|
2004-05-06 22:26:29 +02:00
|
|
|
Gia64-test-nat Lia64-test-nat \
|
|
|
|
Gia64-test-rbs Lia64-test-rbs \
|
2004-08-31 15:59:10 +02:00
|
|
|
Gia64-test-readonly Lia64-test-readonly \
|
|
|
|
ia64-test-setjmp ia64-test-sig
|
2012-09-15 02:11:52 +02:00
|
|
|
else #!ARCH_IA64
|
2007-08-02 17:59:43 +02:00
|
|
|
if ARCH_PPC64
|
2011-03-22 16:40:49 +01:00
|
|
|
if USE_ALTIVEC
|
2016-06-13 20:15:33 +02:00
|
|
|
noinst_PROGRAMS_arch += ppc64-test-altivec
|
2007-08-07 04:23:42 +02:00
|
|
|
endif #USE_ALTIVEC
|
2007-08-02 17:59:43 +02:00
|
|
|
endif #ARCH_PPC64
|
2012-09-15 02:11:52 +02:00
|
|
|
endif #!ARCH_IA64
|
2016-06-13 20:15:33 +02:00
|
|
|
check_PROGRAMS_cdep += Gtest-bt Ltest-bt Gtest-exc Ltest-exc \
|
2004-09-15 13:37:04 +02:00
|
|
|
Gtest-init Ltest-init \
|
|
|
|
Gtest-concurrent Ltest-concurrent \
|
|
|
|
Gtest-resume-sig Ltest-resume-sig \
|
2012-08-10 09:54:09 +02:00
|
|
|
Gtest-resume-sig-rt Ltest-resume-sig-rt \
|
2011-03-19 10:00:48 +01:00
|
|
|
Gtest-trace Ltest-trace \
|
2017-04-03 23:35:24 +02:00
|
|
|
Ltest-init-local-signal \
|
2017-08-23 18:25:49 +02:00
|
|
|
Ltest-mem-validate \
|
2004-09-15 13:37:04 +02:00
|
|
|
test-async-sig test-flush-cache test-init-remote \
|
2017-06-01 05:43:04 +02:00
|
|
|
test-mem test-reg-state Ltest-varargs \
|
|
|
|
Ltest-nomalloc Ltest-nocalloc Lrs-race
|
2016-06-13 20:15:33 +02:00
|
|
|
noinst_PROGRAMS_cdep += forker Gperf-simple Lperf-simple \
|
2013-04-15 16:44:48 +02:00
|
|
|
Gperf-trace Lperf-trace
|
|
|
|
|
|
|
|
if BUILD_PTRACE
|
|
|
|
check_SCRIPTS_cdep += run-ptrace-mapper run-ptrace-misc
|
|
|
|
check_PROGRAMS_cdep += test-ptrace
|
|
|
|
noinst_PROGRAMS_cdep += mapper test-ptrace-misc
|
|
|
|
endif
|
2004-01-21 07:36:35 +01:00
|
|
|
|
2013-04-19 01:32:53 +02:00
|
|
|
if BUILD_SETJMP
|
|
|
|
check_PROGRAMS_cdep += test-setjmp
|
|
|
|
endif
|
|
|
|
|
2010-04-12 21:08:21 +02:00
|
|
|
if SUPPORT_CXX_EXCEPTIONS
|
|
|
|
check_PROGRAMS_cdep += Ltest-cxx-exceptions
|
|
|
|
endif
|
|
|
|
|
2012-05-17 17:00:59 +02:00
|
|
|
if OS_LINUX
|
2012-09-15 02:11:50 +02:00
|
|
|
if BUILD_COREDUMP
|
2012-05-17 17:00:59 +02:00
|
|
|
check_SCRIPTS_cdep += run-coredump-unwind
|
2013-04-19 17:01:57 +02:00
|
|
|
noinst_PROGRAMS_cdep += crasher test-coredump-unwind
|
2012-08-08 14:08:49 +02:00
|
|
|
|
|
|
|
if HAVE_LZMA
|
|
|
|
check_SCRIPTS_cdep += run-coredump-unwind-mdi
|
2012-09-15 02:11:50 +02:00
|
|
|
endif # HAVE_LZMA
|
|
|
|
endif # BUILD_COREDUMP
|
|
|
|
endif # OS_LINUX
|
2012-05-17 17:00:59 +02:00
|
|
|
|
2011-03-25 07:47:25 +01:00
|
|
|
perf: perf-startup Gperf-simple Lperf-simple Lperf-trace
|
2004-01-21 07:36:35 +01:00
|
|
|
@echo "########## Basic performance of generic libunwind:"
|
|
|
|
@./Gperf-simple
|
|
|
|
@echo "########## Basic performance of local-only libunwind:"
|
|
|
|
@./Lperf-simple
|
2011-03-25 07:47:25 +01:00
|
|
|
@echo "########## Performance of fast unwind:"
|
|
|
|
@./Lperf-trace
|
2004-01-21 07:36:35 +01:00
|
|
|
@echo "########## Startup overhead:"
|
|
|
|
@$(srcdir)/perf-startup @arch@
|
|
|
|
|
2002-04-03 08:51:34 +02:00
|
|
|
endif
|
|
|
|
|
2003-02-27 10:58:57 +01:00
|
|
|
check_PROGRAMS = $(check_PROGRAMS_common) $(check_PROGRAMS_cdep) \
|
|
|
|
$(check_PROGRAMS_arch)
|
|
|
|
check_SCRIPTS = $(check_SCRIPTS_common) $(check_SCRIPTS_cdep) \
|
|
|
|
$(check_SCRIPTS_arch)
|
2003-01-23 19:47:51 +01:00
|
|
|
|
2003-02-27 10:58:57 +01:00
|
|
|
|
|
|
|
TESTS = $(check_PROGRAMS) $(check_SCRIPTS)
|
2014-10-22 00:43:20 +02:00
|
|
|
XFAIL_TESTS =
|
2003-01-23 19:47:51 +01:00
|
|
|
|
2016-12-01 00:28:32 +01:00
|
|
|
if ARCH_IA64
|
|
|
|
check_PROGRAMS_cdep += Gtest-dyn1 Ltest-dyn1
|
2014-10-22 00:43:20 +02:00
|
|
|
endif
|
|
|
|
|
2015-02-18 22:18:41 +01:00
|
|
|
# Use if arch defines but does not support PTRACE_SINGLESTEP
|
2014-10-22 00:43:20 +02:00
|
|
|
# ptrace request used in the tests.
|
2015-02-18 22:18:41 +01:00
|
|
|
XFAIL_TESTS_PTRACE_SINGLESTEP = run-ptrace-mapper run-ptrace-misc
|
|
|
|
|
|
|
|
if ARCH_MIPS
|
|
|
|
XFAIL_TESTS += $(XFAIL_TESTS_PTRACE_SINGLESTEP)
|
|
|
|
endif
|
|
|
|
|
|
|
|
if ARCH_ARM
|
|
|
|
# ARM Linux kernel >=2.6.39 removed PTRACE_SINGLESTEP emulation
|
|
|
|
XFAIL_TESTS += $(XFAIL_TESTS_PTRACE_SINGLESTEP)
|
2012-10-28 03:37:45 +01:00
|
|
|
endif
|
|
|
|
|
2017-08-17 23:13:28 +02:00
|
|
|
# This is meant for multilib binaries, -m32.
|
|
|
|
# ptrace gives EBADREG when testing,
|
|
|
|
# but generally everything else works.
|
|
|
|
if NO_PTRACE_TEST
|
|
|
|
XFAIL_TESTS += run-ptrace-mapper test-ptrace Ltest-init-local-signal
|
|
|
|
endif
|
|
|
|
|
2003-01-23 19:47:51 +01:00
|
|
|
noinst_PROGRAMS = $(noinst_PROGRAMS_common) $(noinst_PROGRAMS_cdep) \
|
|
|
|
$(noinst_PROGRAMS_arch)
|
|
|
|
|
2004-05-06 22:26:29 +02:00
|
|
|
Lia64_test_readonly_SOURCES = Lia64-test-readonly.c ia64-test-readonly-asm.S
|
|
|
|
Gia64_test_readonly_SOURCES = Gia64-test-readonly.c ia64-test-readonly-asm.S
|
2003-03-06 07:14:36 +01:00
|
|
|
Lia64_test_stack_SOURCES = Lia64-test-stack.c ia64-test-stack-asm.S \
|
|
|
|
ia64-test-stack.h
|
|
|
|
Gia64_test_stack_SOURCES = Gia64-test-stack.c ia64-test-stack-asm.S \
|
|
|
|
ia64-test-stack.h
|
|
|
|
Lia64_test_rbs_SOURCES = Lia64-test-rbs.c ia64-test-rbs-asm.S ia64-test-rbs.h
|
|
|
|
Gia64_test_rbs_SOURCES = Gia64-test-rbs.c ia64-test-rbs-asm.S ia64-test-rbs.h
|
2004-02-14 08:53:31 +01:00
|
|
|
Lia64_test_nat_SOURCES = Lia64-test-nat.c ia64-test-nat-asm.S
|
|
|
|
Gia64_test_nat_SOURCES = Gia64-test-nat.c ia64-test-nat-asm.S
|
2012-08-30 13:18:33 +02:00
|
|
|
ia64_test_dyn1_SOURCES = ia64-test-dyn1.c ia64-dyn-asm.S flush-cache.S \
|
|
|
|
flush-cache.h
|
2007-08-02 17:59:43 +02:00
|
|
|
ppc64_test_altivec_SOURCES = ppc64-test-altivec.c ppc64-test-altivec-utils.c
|
2003-03-28 08:43:22 +01:00
|
|
|
Gtest_init_SOURCES = Gtest-init.cxx
|
|
|
|
Ltest_init_SOURCES = Ltest-init.cxx
|
2010-04-12 21:08:21 +02:00
|
|
|
Ltest_cxx_exceptions_SOURCES = Ltest-cxx-exceptions.cxx
|
|
|
|
|
2017-04-03 23:35:24 +02:00
|
|
|
Ltest_init_local_signal_SOURCES = Ltest-init-local-signal.c Ltest-init-local-signal-lib.c
|
|
|
|
|
2012-08-30 13:18:33 +02:00
|
|
|
Gtest_dyn1_SOURCES = Gtest-dyn1.c flush-cache.S flush-cache.h
|
|
|
|
Ltest_dyn1_SOURCES = Ltest-dyn1.c flush-cache.S flush-cache.h
|
2004-01-21 07:36:35 +01:00
|
|
|
test_static_link_SOURCES = test-static-link-loc.c test-static-link-gen.c
|
2004-05-05 00:24:50 +02:00
|
|
|
test_static_link_LDFLAGS = -static
|
|
|
|
forker_LDFLAGS = -static
|
2004-10-15 15:48:38 +02:00
|
|
|
Gtest_bt_SOURCES = Gtest-bt.c ident.c
|
|
|
|
Ltest_bt_SOURCES = Ltest-bt.c ident.c
|
|
|
|
test_ptrace_misc_SOURCES = test-ptrace-misc.c ident.c
|
2009-03-15 19:24:43 +01:00
|
|
|
Ltest_nomalloc_SOURCES = Ltest-nomalloc.c
|
2011-04-06 05:46:24 +02:00
|
|
|
Ltest_nocalloc_SOURCES = Ltest-nocalloc.c
|
2011-03-19 10:00:48 +01:00
|
|
|
Gtest_trace_SOURCES = Gtest-trace.c ident.c
|
|
|
|
Ltest_trace_SOURCES = Ltest-trace.c ident.c
|
2017-08-23 18:25:49 +02:00
|
|
|
Ltest_mem_validate_SOURCES = Ltest-mem-validate.c
|
2009-03-15 19:24:43 +01:00
|
|
|
|
2011-04-06 10:27:51 +02:00
|
|
|
LIBUNWIND = $(top_builddir)/src/libunwind-$(arch).la
|
2012-08-18 21:37:00 +02:00
|
|
|
LIBUNWIND_ptrace = $(top_builddir)/src/libunwind-ptrace.la
|
2012-06-29 11:28:29 +02:00
|
|
|
LIBUNWIND_coredump = $(top_builddir)/src/libunwind-coredump.la
|
2011-03-22 16:34:33 +01:00
|
|
|
|
|
|
|
if USE_ELF32
|
|
|
|
LIBUNWIND_ELF = $(top_builddir)/src/libunwind-elf32.la
|
|
|
|
endif
|
|
|
|
if USE_ELF64
|
|
|
|
LIBUNWIND_ELF = $(top_builddir)/src/libunwind-elf64.la
|
|
|
|
endif
|
|
|
|
if USE_ELFXX
|
|
|
|
LIBUNWIND_ELF = $(top_builddir)/src/libunwind-elfxx.la
|
|
|
|
endif
|
|
|
|
|
2011-03-02 17:40:06 +01:00
|
|
|
LIBUNWIND_setjmp = $(top_builddir)/src/libunwind-setjmp.la \
|
2011-03-22 16:34:33 +01:00
|
|
|
$(LIBUNWIND_ELF) $(LIBUNWIND)
|
2011-03-02 17:40:06 +01:00
|
|
|
|
2011-04-06 10:27:51 +02:00
|
|
|
test_async_sig_LDADD = $(LIBUNWIND_local) -lpthread
|
|
|
|
test_flush_cache_LDADD = $(LIBUNWIND_local)
|
2011-10-16 07:55:35 +02:00
|
|
|
test_init_remote_LDADD = $(LIBUNWIND) $(LIBUNWIND_local)
|
|
|
|
test_mem_LDADD = $(LIBUNWIND) $(LIBUNWIND_local)
|
2017-06-01 05:43:04 +02:00
|
|
|
test_reg_state_LDADD = $(LIBUNWIND) $(LIBUNWIND_local)
|
2011-03-02 17:40:06 +01:00
|
|
|
test_ptrace_LDADD = $(LIBUNWIND_ptrace) $(LIBUNWIND)
|
|
|
|
test_proc_info_LDADD = $(LIBUNWIND)
|
|
|
|
test_static_link_LDADD = $(LIBUNWIND)
|
|
|
|
test_strerror_LDADD = $(LIBUNWIND)
|
2012-09-17 13:06:05 +02:00
|
|
|
Lrs_race_LDADD = $(LIBUNWIND_local) -lpthread
|
2012-09-14 13:29:02 +02:00
|
|
|
Ltest_varargs_LDADD = $(LIBUNWIND_local)
|
2017-04-04 20:26:45 +02:00
|
|
|
Ltest_init_local_signal_LDADD = $(LIBUNWIND) $(LIBUNWIND_local)
|
2011-03-02 17:40:06 +01:00
|
|
|
|
2011-10-16 07:55:35 +02:00
|
|
|
Gtest_bt_LDADD = $(LIBUNWIND) $(LIBUNWIND_local)
|
|
|
|
Gtest_concurrent_LDADD = $(LIBUNWIND) $(LIBUNWIND_local) -lpthread
|
2011-04-06 10:27:51 +02:00
|
|
|
Gtest_dyn1_LDADD = $(LIBUNWIND) $(LIBUNWIND_local)
|
2011-10-16 07:55:35 +02:00
|
|
|
Gtest_exc_LDADD = $(LIBUNWIND) $(LIBUNWIND_local)
|
2016-01-31 09:31:04 +01:00
|
|
|
Gtest_init_LDADD = $(LIBUNWIND) $(LIBUNWIND_local) @BACKTRACELIB@
|
2011-10-16 07:55:35 +02:00
|
|
|
Gtest_resume_sig_LDADD = $(LIBUNWIND) $(LIBUNWIND_local)
|
2012-08-10 09:54:09 +02:00
|
|
|
Gtest_resume_sig_rt_LDADD = $(LIBUNWIND) $(LIBUNWIND_local)
|
2011-09-11 04:56:54 +02:00
|
|
|
Gperf_simple_LDADD = $(LIBUNWIND) $(LIBUNWIND_local)
|
2011-04-06 10:27:51 +02:00
|
|
|
Gtest_trace_LDADD=$(LIBUNWIND) $(LIBUNWIND_local)
|
2011-09-11 04:56:54 +02:00
|
|
|
Gperf_trace_LDADD = $(LIBUNWIND) $(LIBUNWIND_local)
|
2010-11-09 02:16:34 +01:00
|
|
|
|
|
|
|
Ltest_bt_LDADD = $(LIBUNWIND_local)
|
|
|
|
Ltest_concurrent_LDADD = $(LIBUNWIND_local) -lpthread
|
|
|
|
Ltest_dyn1_LDADD = $(LIBUNWIND_local)
|
|
|
|
Ltest_exc_LDADD = $(LIBUNWIND_local)
|
|
|
|
Ltest_init_LDADD = $(LIBUNWIND_local)
|
|
|
|
Ltest_nomalloc_LDADD = $(LIBUNWIND_local) @DLLIB@
|
2011-04-06 05:46:24 +02:00
|
|
|
Ltest_nocalloc_LDADD = $(LIBUNWIND_local) @DLLIB@ -lpthread
|
2011-04-06 10:27:51 +02:00
|
|
|
Ltest_resume_sig_LDADD = $(LIBUNWIND_local)
|
2012-08-10 09:54:09 +02:00
|
|
|
Ltest_resume_sig_rt_LDADD = $(LIBUNWIND_local)
|
2010-11-09 02:16:34 +01:00
|
|
|
Lperf_simple_LDADD = $(LIBUNWIND_local)
|
2011-03-25 07:25:43 +01:00
|
|
|
Ltest_trace_LDADD = $(LIBUNWIND_local)
|
2011-03-25 07:47:25 +01:00
|
|
|
Lperf_trace_LDADD = $(LIBUNWIND_local)
|
2017-08-23 18:25:49 +02:00
|
|
|
Ltest_mem_validate_LDADD = $(LIBUNWIND) $(LIBUNWIND_local)
|
2010-11-09 02:16:34 +01:00
|
|
|
|
2011-03-02 17:40:06 +01:00
|
|
|
test_setjmp_LDADD = $(LIBUNWIND_setjmp)
|
|
|
|
ia64_test_setjmp_LDADD = $(LIBUNWIND_setjmp)
|
2011-03-25 07:25:43 +01:00
|
|
|
|
2012-09-15 02:11:50 +02:00
|
|
|
if BUILD_COREDUMP
|
2016-01-31 09:31:04 +01:00
|
|
|
test_coredump_unwind_LDADD = $(LIBUNWIND_coredump) $(LIBUNWIND) @BACKTRACELIB@
|
2012-09-15 02:11:50 +02:00
|
|
|
endif
|
2012-05-22 11:51:06 +02:00
|
|
|
|
|
|
|
Gia64_test_nat_LDADD = $(LIBUNWIND) $(LIBUNWIND_local)
|
|
|
|
Gia64_test_stack_LDADD = $(LIBUNWIND) $(LIBUNWIND_local)
|
|
|
|
Gia64_test_rbs_LDADD = $(LIBUNWIND) $(LIBUNWIND_local)
|
|
|
|
Gia64_test_readonly_LDADD = $(LIBUNWIND) $(LIBUNWIND_local)
|
|
|
|
Lia64_test_nat_LDADD = $(LIBUNWIND_local)
|
|
|
|
Lia64_test_stack_LDADD = $(LIBUNWIND_local)
|
|
|
|
Lia64_test_rbs_LDADD = $(LIBUNWIND_local)
|
|
|
|
Lia64_test_readonly_LDADD = $(LIBUNWIND_local)
|
|
|
|
ia64_test_dyn1_LDADD = $(LIBUNWIND)
|
|
|
|
ia64_test_sig_LDADD = $(LIBUNWIND)
|
2013-12-17 15:00:54 +01:00
|
|
|
ppc64_test_altivec_LDADD = $(LIBUNWIND)
|