diff options
author | Stephen Webb <swebb@blackberry.com> | 2022-06-03 13:36:27 -0400 |
---|---|---|
committer | Stephen M. Webb <stephen.webb@bregmasoft.ca> | 2022-06-23 22:36:03 -0400 |
commit | 2f8693a1d62f23ebeb21e45593a9f88d0a34bac5 (patch) | |
tree | 13068d79c238b3128ce4571f438130f40b5589bb | |
parent | 860f0fe9adac2fdb384a11e072fc4e7463c6cd7d (diff) | |
download | libunwind-2f8693a1d62f23ebeb21e45593a9f88d0a34bac5.tar.gz |
Allow an alternate LOG_DRIVER to be specified
Specifying --with-testdriver=TESTDRIVER at configure time allows the
substitution of a alternative LOG_DRIVER to be specified to enable remote
testing of a cross-built target. See the automake docuemntation on Custom Test
Drivers for more information.
-rw-r--r-- | configure.ac | 6 | ||||
-rw-r--r-- | tests/Makefile.am | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 988ec3e9..3bff80ba 100644 --- a/configure.ac +++ b/configure.ac @@ -428,6 +428,12 @@ case "$ac_cv_search_backtrace" in *) BACKTRACELIB="";; esac +AC_ARG_WITH([testdriver], + [AS_HELP_STRING([--with-testdriver], + [use designated test driver instead of default LOG_DRIVER])], + [], + [with_testdriver=\$\(top_srcdir\)/config/test-driver]) +AC_SUBST([UNW_TESTDRIVER], $with_testdriver) AC_SUBST(build_arch) AC_SUBST(target_os) diff --git a/tests/Makefile.am b/tests/Makefile.am index c783fc31..fa867367 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,6 +1,8 @@ AM_CPPFLAGS = -I$(top_srcdir)/include AM_CFLAGS = -fno-optimize-sibling-calls +LOG_DRIVER = $(SHELL) $(UNW_TESTDRIVER) + EXTRA_DIST = run-ia64-test-dyn1 run-ptrace-mapper run-ptrace-misc \ run-check-namespace run-coredump-unwind \ run-coredump-unwind-mdi check-namespace.sh.in \ |