mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2025-12-28 18:25:20 +01:00
Issue 49003: Breakpad Linux Dumper: Add unit tests for STABS dumper.
Previous patches added unit tests for the STABS parser and the Breakpad symbol file writer; this adds unit tests for the "dumper" class that sits between them, receiving data from the parser and handing it to the writer. So now the whole pathway has coverage. a=jimblandy, r=nealsid git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@467 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
52cb2c6f42
commit
c823931376
2 changed files with 193 additions and 0 deletions
|
|
@ -77,6 +77,7 @@ dump_syms.o: dump_syms.cc
|
|||
|
||||
VPATH += $(SRC)/common/linux
|
||||
dump_stabs.o: dump_stabs.cc
|
||||
COVERAGE_SOURCES += dump_stabs.cc
|
||||
dump_symbols.o: dump_symbols.cc
|
||||
file_id.o: file_id.cc
|
||||
module.o: module.cc
|
||||
|
|
@ -150,6 +151,23 @@ clean::
|
|||
rm -f module_unittest
|
||||
|
||||
|
||||
### Unit tests for google_breakpad::DumpStabsHandler.
|
||||
check: check-dump_stabs_unittest
|
||||
check-dump_stabs_unittest: dump_stabs_unittest
|
||||
dump_stabs_unittest: \
|
||||
gtest-all.o \
|
||||
gtest_main.o \
|
||||
dump_stabs.o \
|
||||
dump_stabs_unittest.o \
|
||||
module.o \
|
||||
$(empty)
|
||||
CPP_EXECUTABLES += dump_stabs_unittest
|
||||
dump_stabs_unittest.o: dump_stabs_unittest.cc
|
||||
dump_stabs_unittest.o: override CPPFLAGS += $(GTEST_CPPFLAGS) $(GMOCK_CPPFLAGS)
|
||||
clean::
|
||||
rm -f dump_stabs_unittest
|
||||
|
||||
|
||||
### Generic compilation rules.
|
||||
|
||||
# Link C++ executables using the C++ compiler; see CPP_EXECUTABLES above.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue