Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@blender.org>2021-01-12 15:49:40 +0300
committerSybren A. Stüvel <sybren@blender.org>2021-01-12 15:50:29 +0300
commitb2ad52a7634865402c852b603ab2c6880b533839 (patch)
tree3e21eb330d02014e67079da458e1d6a4dfa44c94 /tests/python/CMakeLists.txt
parente0a4b392f3888b8d792e3ab1ad7e311edd2f4c56 (diff)
Tests: skip unit test if built without ocean sim modifier
Disable the Ocean Sim test when building with `WITH_MOD_OCEANSIM=OFF`.
Diffstat (limited to 'tests/python/CMakeLists.txt')
-rw-r--r--tests/python/CMakeLists.txt16
1 files changed, 9 insertions, 7 deletions
diff --git a/tests/python/CMakeLists.txt b/tests/python/CMakeLists.txt
index f33bb81d6b0..2ca21a315e4 100644
--- a/tests/python/CMakeLists.txt
+++ b/tests/python/CMakeLists.txt
@@ -228,13 +228,15 @@ add_blender_test(
--run-all-tests
)
-add_blender_test(
- physics_ocean
- ${TEST_SRC_DIR}/physics/ocean_test.blend
- --python ${TEST_PYTHON_DIR}/physics_ocean.py
- --
- --run-all-tests
-)
+if(WITH_MOD_OCEANSIM)
+ add_blender_test(
+ physics_ocean
+ ${TEST_SRC_DIR}/physics/ocean_test.blend
+ --python ${TEST_PYTHON_DIR}/physics_ocean.py
+ --
+ --run-all-tests
+ )
+endif()
add_blender_test(