Better testing for Stackwalker (#18). r=bryner
- Test StackwalkerX86 and StackwalkerPPC on the current process, if built
by a supported compiler (gcc) on a supported (walkable) CPU (x86, ppc).
- This test is not enabled by default because of certain optimizations
that interfere with it (stack frame reuse, frame pointer omission). See
the comments at the top of stackwalker_selftest.cc. To enable this
test in the standard "make check" suite, configure with --enable-selftest.
http://groups.google.com/group/airbag-dev/browse_thread/thread/2ca1c8e72c809bec
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@35 4c0a9323-5329-0410-9bdc-e9ce6186880e
diff --git a/Makefile.am b/Makefile.am
index 1215bd9..4b07bd0 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -89,9 +89,16 @@
src/processor/postfix_evaluator_unittest \
src/processor/range_map_unittest \
src/processor/source_line_resolver_unittest
+
+if SELFTEST
+check_PROGRAMS += \
+ src/processor/stackwalker_selftest
+endif SELFTEST
+
check_SCRIPTS = \
src/processor/minidump_dump_test \
src/processor/minidump_stackwalk_test
+
TESTS = $(check_PROGRAMS) $(check_SCRIPTS)
TESTS_ENVIRONMENT =
@@ -119,6 +126,15 @@
src_processor_source_line_resolver_unittest_LDADD = \
src/processor/source_line_resolver.lo
+src_processor_stackwalker_selftest_SOURCES = \
+ src/processor/stackwalker_selftest.cc
+src_processor_stackwalker_selftest_LDADD = \
+ src/processor/minidump.lo \
+ src/processor/source_line_resolver.lo \
+ src/processor/stackwalker.lo \
+ src/processor/stackwalker_ppc.lo \
+ src/processor/stackwalker_x86.lo
+
## Non-installables
noinst_PROGRAMS =
noinst_SCRIPTS = $(check_SCRIPTS)