Blender Git Loki

Git Commits -> Revision a138bf5

Revision a138bf5 by Sybren A. Stüvel (master)
July 16, 2020, 15:38 (GMT)
Tests: move tests from USD test directory into `io/common` and `io/usd`

This commit is a followup of {D7649}, and ports the USD tests to the new
testing approach. It moves test code from `tests/gtests/usd` into
`source/blender/io/common` and `source/blender/io/usd`, and adjusts the
use of namespaces to be consistent with the other tests.

I decided to put one test into `io/usd/tests`, instead of
`io/usd/intern`. The reason is that this test does not correspond with a
single file in that directory; instead, it tests Blender's integration
with the USD library itself.

There are two new CLI arguments for the Big Test Runner:

- `--test-assets-dir`, which points to the `lib/tests` directory in the
SVN repository. This allows unit tests to find test assets.
- `--test-release-dir`, which points to `bin/{BLENDER_VERSION}` in the
build directory. At the moment this is only used by the USD test.

The CLI arguments are automatically passed to the Big Test Runner when
using `ctest`. When manually running the tests, the arguments are only
required when there is a test run that needs them.

For more info about splitting some code into 'common', see
rB084c5d6c7e2cf8.

No functional changes to the tests themselves, only to the way they are
built & run.

Differential Revision: https://developer.blender.org/D8314

Reviewed by: brecht, mont29

Commit Details:

Full Hash: a138bf57c994509c9dbd1ea79a6886c24cd5d0d9
Parent Commit: 09a483a
Lines Changed: +819, -868

4 Added Paths:

/source/blender/io/common/intern/abstract_hierarchy_iterator_test.cc (+319, -0) (View)
/source/blender/io/common/intern/hierarchy_context_order_test.cc (+129, -0) (View)
/source/blender/io/common/intern/object_identifier_test.cc (+234, -0) (View)
/source/blender/io/usd/tests/usd_stage_creation_test.cc (+68, -0) (View)

5 Deleted Paths:

/tests/gtests/usd/abstract_hierarchy_iterator_test.cc (+0, -327)
/tests/gtests/usd/CMakeLists.txt (+0, -109)
/tests/gtests/usd/hierarchy_context_order_test.cc (+0, -123)
/tests/gtests/usd/object_identifier_test.cc (+0, -236)
/tests/gtests/usd/usd_stage_creation_test.cc (+0, -62)

7 Modified Paths:

/source/blender/io/common/CMakeLists.txt (+13, -0) (Diff)
/source/blender/io/usd/CMakeLists.txt (+12, -0) (Diff)
/tests/gtests/blenloader/blendfile_loading_base_test.cc (+4, -7) (Diff)
/tests/gtests/CMakeLists.txt (+0, -3) (Diff)
/tests/gtests/runner/CMakeLists.txt (+6, -1) (Diff)
/tests/gtests/testing/testing.h (+9, -0) (Diff)
/tests/gtests/testing/testing_main.cc (+25, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021