blender/build_files
Sybren A. Stüvel 56aa5b0d8c T73268: Link C/C++ unit tests into single executable
This commit introduces a new way to build unit tests. It is now possible
for each module to generate its own test library. The tests in these
libraries are then bundled into a single executable.

The test executable can be run with `ctest`. Even though the tests
reside in a single executable, they are still exposed as individual
tests to `ctest`, and thus can be selected via its `-R` argument.

Not yet ported tests still build & run as before.

The following rules apply:

- Test code should reside in the same directory as the code under test.
- Tests that target functionality in `somefile.{c,cc}` should reside in
  `somefile_test.cc`.
- The namespace for tests is the `tests` sub-namespace of the code under
  test. For example, tests for `blender::bke` should be in
  `blender::bke:tests`.
- The test files should be listed in the module's `CMakeLists.txt` in a
  `blender_add_test_lib()` call. See the `blenkernel` module for an
  example.

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D7649
2020-07-16 12:58:49 +02:00
..
build_environment macOS: Support arm64 architecture. 2020-07-16 09:37:38 +02:00
buildbot Codesign: Wait for unsigned directory to appear 2020-06-30 11:21:00 +02:00
cmake T73268: Link C/C++ unit tests into single executable 2020-07-16 12:58:49 +02:00
package_spec Fix T63805: remove outdated and unused Linux package spec files 2020-01-27 12:22:01 +01:00
utils Build: make update support for git tags 2020-07-13 15:54:12 +02:00
windows Windows: Add sccache support. 2020-04-20 12:51:43 -06:00