Tests: skip unit test if built without ocean sim modifier

Disable the Ocean Sim test when building with `WITH_MOD_OCEANSIM=OFF`.
This commit is contained in:
Sybren A. Stüvel 2021-01-12 13:49:40 +01:00
parent e0a4b392f3
commit b2ad52a763
1 changed files with 9 additions and 7 deletions

View File

@ -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(