(TESTS_cdep): New macro for configuration-depedent tests.
(noinst_PROGRAMS_cdep): New macro for config-dependent noinst-programs.
(TESTS_arch): New macro for architecture-specific tests.
(TESTS): New macro, so we can run "make check".
(check_PROGRAMS): New macro.
(Logical change 1.42)
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 9704b96..73649f3 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -3,15 +3,24 @@
noinst_PROGRAMS_common =
if REMOTE_ONLY
- noinst_PROGRAMS = $(noinst_PROGRAMS_common)
+ TESTS_cdep =
+ noinst_PROGRAMS_cdep = $(noinst_PROGRAMS_common)
else
if ARCH_IA64
- noinst_PROGRAMS_arch = ia64-test-sig ia64-test-stack
+ noinst_PROGRAMS_arch = ia64-test-sig
+ TESTS_arch = ia64-test-stack
endif
- noinst_PROGRAMS = $(noinst_PROGRAMS_common) $(noinst_PROGRAMS_arch) bt exc \
- test-init test-varargs test-dyn1 test-resume-sig
+ TESTS_cdep = test-dyn1
+ noinst_PROGRAMS_cdep = bt exc test-init test-varargs test-dyn1 test-resume-sig
endif
+TESTS = $(TESTS_cdep) $(TESTS_arch)
+
+check_PROGRAMS = $(TESTS)
+
+noinst_PROGRAMS = $(noinst_PROGRAMS_common) $(noinst_PROGRAMS_cdep) \
+ $(noinst_PROGRAMS_arch)
+
ia64_test_stack_SOURCES = ia64-test-stack.c ia64-test-stack-asm.S
LDADD = ../src/libunwind-$(arch).la