Gtests can be run on another source tree
authorDavid Neto <dneto@google.com>
Wed, 5 Oct 2016 14:25:09 +0000 (10:25 -0400)
committerDavid Neto <dneto@google.com>
Wed, 5 Oct 2016 14:28:32 +0000 (10:28 -0400)
commit1d3a966106bf7d4077cab88b7421f902bc357c85
treefeccd8a43f3f5519ad498e226a4b878bef6e30c3
parent196b6e24f682e754a6d3a331632c306d0d327a80
Gtests can be run on another source tree

The gtest executable accepts a --test-root option to specify
a root directory for test files.  It defaults to the Test directory
in the source tree from which the executable is built.

For example, this lets us run test exectuables built with MinGW on Linux
on a Windows machine with its own copy of the source tree.
13 files changed:
gtests/AST.FromFile.cpp
gtests/BuiltInResource.FromFile.cpp
gtests/CMakeLists.txt
gtests/Config.FromFile.cpp
gtests/Hlsl.FromFile.cpp
gtests/Link.FromFile.cpp
gtests/Pp.FromFile.cpp
gtests/Remap.FromFile.cpp
gtests/Settings.cpp
gtests/Settings.h
gtests/Spv.FromFile.cpp
gtests/TestFixture.h
gtests/main.cpp