Add dwarf2reader unit test to run with make check.

This change updates Makefile.am to include the dwarf2reader lineinfo
unittest to the suite of tests run when make check is invoked. All the
manual changes are limited to the Makefile.am file. The remaining files
contain changes generated by automake.

Change-Id: Ib078391b44235ce430a224713512637ce8e90a36
Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/2587266
Reviewed-by: Joshua Peraza <jperaza@chromium.org>
This commit is contained in:
Snehasish Kumar 2020-12-11 12:53:50 -08:00 committed by Joshua Peraza
parent ebc5567370
commit 57ce4032f5
4 changed files with 3907 additions and 2954 deletions

View file

@ -375,6 +375,7 @@ endif LINUX_HOST
if !DISABLE_PROCESSOR
check_PROGRAMS += \
src/common/test_assembler_unittest \
src/common/dwarf/dwarf2reader_lineinfo_unittest \
src/processor/address_map_unittest \
src/processor/basic_source_line_resolver_unittest \
src/processor/cfi_frame_info_unittest \
@ -1221,6 +1222,19 @@ src_common_test_assembler_unittest_LDADD = \
$(TEST_LIBS) \
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
src_common_dwarf_dwarf2reader_lineinfo_unittest_SOURCES = \
src/common/dwarf/dwarf2reader.h \
src/common/dwarf/dwarf2reader_lineinfo_unittest.cc
src_common_dwarf_dwarf2reader_lineinfo_unittest_CPPFLAGS = \
$(AM_CPPFLAGS) $(TEST_CFLAGS)
src_common_dwarf_dwarf2reader_lineinfo_unittest_LDADD = \
src/common/dwarf/bytereader.o \
src/common/dwarf/dwarf2reader.o \
src/common/dwarf/elf_reader.o \
$(TEST_LIBS) \
$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
## Non-installables
noinst_PROGRAMS =
noinst_SCRIPTS = $(check_SCRIPTS)