aboutsummaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorjimblandy <jimblandy@4c0a9323-5329-0410-9bdc-e9ce6186880e>2009-12-23 21:50:01 +0000
committerjimblandy <jimblandy@4c0a9323-5329-0410-9bdc-e9ce6186880e>2009-12-23 21:50:01 +0000
commitc8239313768d3f1c293a773c95df4286b4a124e4 (patch)
treec5fbace5737b58714897e5ec75a666329aabc082 /src/tools
parentBreakpad Linux dumper: Add unit tests for google_breakpad::Module. (diff)
downloadbreakpad-c8239313768d3f1c293a773c95df4286b4a124e4.tar.xz
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
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/linux/dump_syms/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/tools/linux/dump_syms/Makefile b/src/tools/linux/dump_syms/Makefile
index c7cbaf67..8917a610 100644
--- a/src/tools/linux/dump_syms/Makefile
+++ b/src/tools/linux/dump_syms/Makefile
@@ -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.