Added gtest and gmock under src/external/.
authorTeemu Murtola <teemu.murtola@cbr.su.se>
Tue, 4 Oct 2011 18:10:09 +0000 (21:10 +0300)
committerTeemu Murtola <teemu.murtola@cbr.su.se>
Wed, 26 Oct 2011 15:16:17 +0000 (18:16 +0300)
commit949ebbd5fd402e6a571eb4c1541a34fbcb5fdf76
tree12a14307fe568ba5afefe21ae9836f8d32846dd8
parentb53286648e0c91a098dfc5b1a5d782ff5d814fa5
Added gtest and gmock under src/external/.

Source code copied from Google Test / Google Mock 1.6.0 (see
README.Gromacs for details).
Build system adapted to build tests against these versions of gtest and
gmock. Added advanced CMake variables GMX_USE_GTEST and GMX_USE_GMOCK,
which can be used to disable building the frameworks (and tests that use
them).

Google Test 1.6.0 handles test-thrown exceptions better (reports them as
failures instead of terminating the whole executable). With this
version, system-wide installation is no longer supported by Google, and
the officially supported way is to build the test framework as part of
the build system. Thus, the simplest way is to include the whole
framework in the source tree, which also makes it simpler to build the
tests.

Makes issue #639 obsolete (removes FindGMock.cmake completely) and
relates to #815 (removes FindCMake.cmake, which was copied from 2.8.2).

Change-Id: I021e81ea1529c8dea621c2d8b060c08987f9ca59
60 files changed:
CMakeLists.txt
cmake/FindGMock.cmake [deleted file]
cmake/FindGTest.cmake [deleted file]
src/external/gmock-1.6.0/CMakeLists.txt [new file with mode: 0644]
src/external/gmock-1.6.0/COPYING [new file with mode: 0644]
src/external/gmock-1.6.0/README [new file with mode: 0644]
src/external/gmock-1.6.0/README.Gromacs [new file with mode: 0644]
src/external/gmock-1.6.0/gtest/COPYING [new file with mode: 0644]
src/external/gmock-1.6.0/gtest/include/gtest/gtest-death-test.h [new file with mode: 0644]
src/external/gmock-1.6.0/gtest/include/gtest/gtest-message.h [new file with mode: 0644]
src/external/gmock-1.6.0/gtest/include/gtest/gtest-param-test.h [new file with mode: 0644]
src/external/gmock-1.6.0/gtest/include/gtest/gtest-printers.h [new file with mode: 0644]
src/external/gmock-1.6.0/gtest/include/gtest/gtest-spi.h [new file with mode: 0644]
src/external/gmock-1.6.0/gtest/include/gtest/gtest-test-part.h [new file with mode: 0644]
src/external/gmock-1.6.0/gtest/include/gtest/gtest-typed-test.h [new file with mode: 0644]
src/external/gmock-1.6.0/gtest/include/gtest/gtest.h [new file with mode: 0644]
src/external/gmock-1.6.0/gtest/include/gtest/gtest_pred_impl.h [new file with mode: 0644]
src/external/gmock-1.6.0/gtest/include/gtest/gtest_prod.h [new file with mode: 0644]
src/external/gmock-1.6.0/gtest/include/gtest/internal/gtest-death-test-internal.h [new file with mode: 0644]
src/external/gmock-1.6.0/gtest/include/gtest/internal/gtest-filepath.h [new file with mode: 0644]
src/external/gmock-1.6.0/gtest/include/gtest/internal/gtest-internal.h [new file with mode: 0644]
src/external/gmock-1.6.0/gtest/include/gtest/internal/gtest-linked_ptr.h [new file with mode: 0644]
src/external/gmock-1.6.0/gtest/include/gtest/internal/gtest-param-util-generated.h [new file with mode: 0644]
src/external/gmock-1.6.0/gtest/include/gtest/internal/gtest-param-util.h [new file with mode: 0644]
src/external/gmock-1.6.0/gtest/include/gtest/internal/gtest-port.h [new file with mode: 0644]
src/external/gmock-1.6.0/gtest/include/gtest/internal/gtest-string.h [new file with mode: 0644]
src/external/gmock-1.6.0/gtest/include/gtest/internal/gtest-tuple.h [new file with mode: 0644]
src/external/gmock-1.6.0/gtest/include/gtest/internal/gtest-type-util.h [new file with mode: 0644]
src/external/gmock-1.6.0/gtest/src/gtest-all.cc [new file with mode: 0644]
src/external/gmock-1.6.0/gtest/src/gtest-death-test.cc [new file with mode: 0644]
src/external/gmock-1.6.0/gtest/src/gtest-filepath.cc [new file with mode: 0644]
src/external/gmock-1.6.0/gtest/src/gtest-internal-inl.h [new file with mode: 0644]
src/external/gmock-1.6.0/gtest/src/gtest-port.cc [new file with mode: 0644]
src/external/gmock-1.6.0/gtest/src/gtest-printers.cc [new file with mode: 0644]
src/external/gmock-1.6.0/gtest/src/gtest-test-part.cc [new file with mode: 0644]
src/external/gmock-1.6.0/gtest/src/gtest-typed-test.cc [new file with mode: 0644]
src/external/gmock-1.6.0/gtest/src/gtest.cc [new file with mode: 0644]
src/external/gmock-1.6.0/gtest/src/gtest_main.cc [new file with mode: 0644]
src/external/gmock-1.6.0/include/gmock/gmock-actions.h [new file with mode: 0644]
src/external/gmock-1.6.0/include/gmock/gmock-cardinalities.h [new file with mode: 0644]
src/external/gmock-1.6.0/include/gmock/gmock-generated-actions.h [new file with mode: 0644]
src/external/gmock-1.6.0/include/gmock/gmock-generated-function-mockers.h [new file with mode: 0644]
src/external/gmock-1.6.0/include/gmock/gmock-generated-matchers.h [new file with mode: 0644]
src/external/gmock-1.6.0/include/gmock/gmock-generated-nice-strict.h [new file with mode: 0644]
src/external/gmock-1.6.0/include/gmock/gmock-matchers.h [new file with mode: 0644]
src/external/gmock-1.6.0/include/gmock/gmock-more-actions.h [new file with mode: 0644]
src/external/gmock-1.6.0/include/gmock/gmock-spec-builders.h [new file with mode: 0644]
src/external/gmock-1.6.0/include/gmock/gmock.h [new file with mode: 0644]
src/external/gmock-1.6.0/include/gmock/internal/gmock-generated-internal-utils.h [new file with mode: 0644]
src/external/gmock-1.6.0/include/gmock/internal/gmock-internal-utils.h [new file with mode: 0644]
src/external/gmock-1.6.0/include/gmock/internal/gmock-port.h [new file with mode: 0644]
src/external/gmock-1.6.0/src/gmock-all.cc [new file with mode: 0644]
src/external/gmock-1.6.0/src/gmock-cardinalities.cc [new file with mode: 0644]
src/external/gmock-1.6.0/src/gmock-internal-utils.cc [new file with mode: 0644]
src/external/gmock-1.6.0/src/gmock-matchers.cc [new file with mode: 0644]
src/external/gmock-1.6.0/src/gmock-spec-builders.cc [new file with mode: 0644]
src/external/gmock-1.6.0/src/gmock.cc [new file with mode: 0644]
src/external/gmock-1.6.0/src/gmock_main.cc [new file with mode: 0644]
src/testutils/CMakeLists.txt
src/testutils/TestMacros.cmake