diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-16 19:50:59 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-16 19:50:59 +0000 |
commit | eac1cd26a7fec8261bbe60f2aed21e01368e4af6 (patch) | |
tree | 133bdf2b91537dffe84dcf90cfaf712ce7259c32 /testing/gmock/Makefile.am | |
parent | bb415723ffe8794f16c6639738066061d4f97288 (diff) | |
download | chromium_src-eac1cd26a7fec8261bbe60f2aed21e01368e4af6.zip chromium_src-eac1cd26a7fec8261bbe60f2aed21e01368e4af6.tar.gz chromium_src-eac1cd26a7fec8261bbe60f2aed21e01368e4af6.tar.bz2 |
clang: update gtest to r435 and gmock to r300.
This picks up some clang-specific fixes.
Unfortunately, the gtest update cascaded into a gmock update.
So I picked the earliest gmock version that mentioned a specific
gtest version so that they are more likely to work together.
gtest changelog:
- Fixes a leak in ThreadLocal.
- CMake 2.8/Visual Age compatibility patch by Hady Zalek.
- C++ Builder compatibility patch by Josh Kelley.
- Fixes gtest_filter_unittest and gtest_help_test on systems without death tests.
- Simplifies Makefile.am (by Zhanyong Wan and Vlad Losev).
- Adds alternative spellings for FAIL, SUCCEED, and TEST.
- Over-hauls README, and fixes Makefile.
- Fixes gtest-port_test on MinGW.
- Implements color output in GNU Screen sessions (issue 277).
- Minor improvement to hermetic build support in the CMake script, by Vlad Losev.
- Improves support for building Google Test as Windows DLL.
- Silence a Clang warning about an unused variable.
- Moves the universal printer from gmock to gtest and refactors the cmake script for reusing in gmock (by Vlad Losev).
- Suppresses some Clang warnings (by Chandler Carruth, Jeffrey Yasskin, and Zhanyong Wan).
- Renames CMake build script options.
- Lucid autotools compatibility patch by Jeffrey Yasskin.
- Replaces UniversalPrinter<T>::Print(x, os) with UniversalPrint(x, os) as appropriate (by Zhanyong Wan).
- Comment tweaks in CMakeLists.txt.
- Renames test script flags.
- Fixes a typo in comments.
- Adds GTEST_REMOVE_REFERENCE_AND_CONST_.
- Introduces gtest_force_shared_crt option for CMake build scripts.
- Implements printing parameters of failed parameterized tests (issue 71).
gmock changelog:
- Improves Makefile.am (by Vlad Losev); fixes Makefile and updates README (by Zhanyong Wan).
- Fixes a typo in README.
- Adds Each(m) (by Wojtek Moczydlowski); removes scripts/test/Makefile (by Zhanyong Wan); pulls in gtest r424.
- Adds a synchronization test.
- Fixes tests leaking altered values of GMOCK_FLAG(verbose) (issue 110).
- Moves the universal printer from gmock to gtest (by Vlad Losev).
- Renames test script flags.
- Adds CMake build script.
- Implements Pointwise().
- Fixes build failure on Windows/CMake (issue 111).
- Pulls r435 of gtest. This brings in the gtest_force_shared_crt option in CMake.
TEST=all existing tests should still pass
Review URL: http://codereview.chromium.org/3427004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59701 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'testing/gmock/Makefile.am')
-rw-r--r-- | testing/gmock/Makefile.am | 51 |
1 files changed, 42 insertions, 9 deletions
diff --git a/testing/gmock/Makefile.am b/testing/gmock/Makefile.am index 30941d4f..e2a4673 100644 --- a/testing/gmock/Makefile.am +++ b/testing/gmock/Makefile.am @@ -38,7 +38,6 @@ pkginclude_HEADERS = include/gmock/gmock.h \ include/gmock/gmock-generated-nice-strict.h \ include/gmock/gmock-matchers.h \ include/gmock/gmock-more-actions.h \ - include/gmock/gmock-printers.h \ include/gmock/gmock-spec-builders.h pkginclude_internaldir = $(pkgincludedir)/internal @@ -76,15 +75,26 @@ test_gmock_link_test_SOURCES = test/gmock_link_test.cc \ test/gmock_link_test.h test_gmock_link_test_LDADD = $(GTEST_LIBS) lib/libgmock_main.la +# Tests that fused gmock files compile and work. +TESTS += test/gmock_fused_test +check_PROGRAMS += test/gmock_fused_test +test_gmock_fused_test_SOURCES = fused-src/gmock-gtest-all.cc \ + fused-src/gmock_main.cc \ + fused-src/gmock/gmock.h \ + fused-src/gtest/gtest.h \ + test/gmock_test.cc +test_gmock_fused_test_CPPFLAGS = -I"$(srcdir)/fused-src" + # Google Mock source files that we don't compile directly. -EXTRA_DIST += \ +GMOCK_SOURCE_INGLUDES = \ src/gmock.cc \ src/gmock-cardinalities.cc \ src/gmock-internal-utils.cc \ src/gmock-matchers.cc \ - src/gmock-printers.cc \ src/gmock-spec-builders.cc +EXTRA_DIST += $(GMOCK_SOURCE_INGLUDES) + # C++ tests that we don't compile using autotools. EXTRA_DIST += \ test/gmock_all_test.cc \ @@ -98,9 +108,7 @@ EXTRA_DIST += \ test/gmock-matchers_test.cc \ test/gmock-more-actions_test.cc \ test/gmock-nice-strict_test.cc \ - test/gmock-port_test.cc \ - test/gmock-printers_test.cc \ - test/gmock_test.cc + test/gmock-port_test.cc # Python tests, which we don't run using autotools. EXTRA_DIST += \ @@ -126,9 +134,7 @@ EXTRA_DIST += include/gmock/gmock-generated-actions.h.pump \ include/gmock/internal/gmock-generated-internal-utils.h.pump # Script for fusing Google Mock and Google Test source files. -EXTRA_DIST += \ - scripts/fuse_gmock_files.py \ - scripts/test/Makefile +EXTRA_DIST += scripts/fuse_gmock_files.py # The Google Mock Generator tool from the cppclean project. EXTRA_DIST += \ @@ -152,3 +158,30 @@ EXTRA_DIST += \ msvc/gmock_main.vcproj \ msvc/gmock-spec-builders_test.vcproj \ msvc/gmock_test.vcproj + +# gmock_test.cc does not really depend on files generated by the +# fused-gmock-internal rule. However, gmock_test.o does, and it is +# important to include test/gmock_test.cc as part of this rule in order to +# prevent compiling gmock_test.o until all dependent files have been +# generated. +$(test_gmock_fused_test_SOURCES): fused-gmock-internal + +# TODO(vladl@google.com): Find a way to add Google Tests's sources here. +fused-gmock-internal: $(pkginclude_HEADERS) $(pkginclude_internal_HEADERS) \ + $(lib_libgmock_la_SOURCES) $(GMOCK_SOURCE_INGLUDES) \ + $(lib_libgmock_main_la_SOURCES) \ + scripts/fuse_gmock_files.py + mkdir -p "$(srcdir)/fused-src" + chmod -R u+w "$(srcdir)/fused-src" + rm -f "$(srcdir)/fused-src/gtest/gtest.h" + rm -f "$(srcdir)/fused-src/gmock/gmock.h" + rm -f "$(srcdir)/fused-src/gmock-gtest-all.cc" + "$(srcdir)/scripts/fuse_gmock_files.py" "$(srcdir)/fused-src" + cp -f "$(srcdir)/src/gmock_main.cc" "$(srcdir)/fused-src" + +maintainer-clean-local: + rm -rf "$(srcdir)/fused-src" + +# Death tests may produce core dumps in the build directory. In case +# this happens, clean them to keep distcleancheck happy. +CLEANFILES = core |