aboutsummaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorjimblandy <jimblandy@4c0a9323-5329-0410-9bdc-e9ce6186880e>2009-12-23 21:46:00 +0000
committerjimblandy <jimblandy@4c0a9323-5329-0410-9bdc-e9ce6186880e>2009-12-23 21:46:00 +0000
commit52cb2c6f4235dfaa3760ef37fe7082e9e99b0ebd (patch)
tree718e7e4524b61a819bce0305c34d155038422fc3 /src/tools
parentBreakpad Linux Dumper: Use proper sizes and radixes when writing Breakpad sym... (diff)
downloadbreakpad-52cb2c6f4235dfaa3760ef37fe7082e9e99b0ebd.tar.xz
Breakpad Linux dumper: Add unit tests for google_breakpad::Module.
Adjust Module's interface a bit to facilitate testing: - Make AssignSourceIds something a client can call --- it's perfectly well-defined, so this is an okay change. - Add GetFunctions, GetFiles and FindExistingfile member functions, which the test harness will use to get results to examine. a=jimblandy, r=nealsid git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@466 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/linux/dump_syms/Makefile20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/tools/linux/dump_syms/Makefile b/src/tools/linux/dump_syms/Makefile
index 239e6f7a..c7cbaf67 100644
--- a/src/tools/linux/dump_syms/Makefile
+++ b/src/tools/linux/dump_syms/Makefile
@@ -52,7 +52,8 @@ SRC = ../../..
# dependencies using $(CXX). Value accumulated throughout the file.
CPP_EXECUTABLES =
-# Source files whose coverage we are interested in. Value accumulated
+# Add the names of source files whose coverage you'd like 'make
+# coverage' to report on to this variable. Value accumulated
# throughout the file.
COVERAGE_SOURCES =
@@ -79,6 +80,7 @@ dump_stabs.o: dump_stabs.cc
dump_symbols.o: dump_symbols.cc
file_id.o: file_id.cc
module.o: module.cc
+COVERAGE_SOURCES += module.cc
stabs_reader.o: stabs_reader.cc
COVERAGE_SOURCES += stabs_reader.cc
@@ -132,6 +134,22 @@ clean::
rm -f file_id_unittest
+### Unit tests for google_breakpad::Module.
+check: check-module_unittest
+check-module_unittest: module_unittest
+module_unittest: \
+ gtest-all.o \
+ gtest_main.o \
+ module.o \
+ module_unittest.o \
+ $(empty)
+CPP_EXECUTABLES += module_unittest
+module_unittest.o: module_unittest.cc
+module_unittest.o: override CPPFLAGS += $(GTEST_CPPFLAGS) $(GMOCK_CPPFLAGS)
+clean::
+ rm -f module_unittest
+
+
### Generic compilation rules.
# Link C++ executables using the C++ compiler; see CPP_EXECUTABLES above.