From c8239313768d3f1c293a773c95df4286b4a124e4 Mon Sep 17 00:00:00 2001 From: jimblandy Date: Wed, 23 Dec 2009 21:50:01 +0000 Subject: 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 --- src/tools/linux/dump_syms/Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/tools') 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. -- cgit v1.2.1