forked from bartvdbraak/blender
Sybren A. Stüvel
a138bf57c9
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
23 lines
530 B
CMake
23 lines
530 B
CMake
|
|
if(WITH_GTESTS)
|
|
# Otherwise we get warnings here that we cant fix in external projects
|
|
remove_strict_flags()
|
|
|
|
# Build common test runner
|
|
add_subdirectory(runner)
|
|
|
|
# Build tests not yet ported to the common runner
|
|
add_subdirectory(testing)
|
|
add_subdirectory(blenlib)
|
|
add_subdirectory(blenloader)
|
|
add_subdirectory(guardedalloc)
|
|
add_subdirectory(bmesh)
|
|
add_subdirectory(functions)
|
|
if(WITH_CODEC_FFMPEG)
|
|
add_subdirectory(ffmpeg)
|
|
endif()
|
|
if(WITH_ALEMBIC)
|
|
add_subdirectory(alembic)
|
|
endif()
|
|
endif()
|