CMake: use bf_io_ prefix for IO tests

This simplifies running built-in IO tests with:

  ctest -R bf_io_

Also use "bf_io_" prefix for the libraries since it was already used
by some and it's a useful hint the libraries are used for IO.
This commit is contained in:
Campbell Barton
2023-09-23 20:22:19 +10:00
parent 652aab0b31
commit d2c271ec84
11 changed files with 26 additions and 26 deletions

View File

@@ -878,7 +878,7 @@ if(WITH_ALEMBIC)
get_filename_component(ALEMBIC_ROOT_DIR ${real_include_dir} DIRECTORY)
add_python_test(
alembic_export_tests
bf_io_alembic_export_tests
${CMAKE_CURRENT_LIST_DIR}/alembic_export_tests.py
--blender "${TEST_BLENDER_EXE}"
--testdir "${TEST_SRC_DIR}/alembic"
@@ -895,13 +895,13 @@ endif()
if(WITH_USD)
add_blender_test(
usd_export_test
bf_io_usd_export_test
--python ${CMAKE_CURRENT_LIST_DIR}/bl_usd_export_test.py
--
--testdir "${TEST_SRC_DIR}/usd"
)
add_blender_test(
usd_import_test
bf_io_usd_import_test
--python ${CMAKE_CURRENT_LIST_DIR}/bl_usd_import_test.py
--
--testdir "${TEST_SRC_DIR}/usd"

View File

@@ -39,7 +39,7 @@ endif()
# GENERAL PYTHON CORRECTNESS TESTS
macro(COLLADA_TEST module test_name blend_file)
add_test(
NAME collada_${module}_${test_name}
NAME bf_io_collada_${module}_${test_name}
COMMAND "$<TARGET_FILE:blender>" ${TEST_BLENDER_EXE_PARAMS} ${TEST_SRC_DIR}/collada/${module}/${blend_file}
--python ${CMAKE_CURRENT_LIST_DIR}/${module}/test_${module}_${test_name}.py --
--testdir ${TEST_SRC_DIR}/collada/${module}