This is a first patch for T73268: Blender Linking Time & GTests. It includes:
- A demo of what things would look like if we were to move the tests into the main source/ tree. I have moved the two blenkernel test cases there for now.
- A test runner binary bin/tests/bf_gtest_runner_test that contains the above two tests, and is intended to contain all GTest tests (at a minimum, those tests that would link more than a tiny fraction of Blender's modules).
The test binary can be run with ctest. Not yet ported tests still build & run as before.
Please ignore the exact namespace in the test files for now. What I do want to have feedback on, is whether the test should be in:
- the same namespace as the code under test,
- in a tests sub-namespace, or
- in an anonymous sub-namespace.