Cleanup: use prefix for tests
authorCampbell Barton <ideasman42@gmail.com>
Wed, 14 Feb 2018 05:02:21 +0000 (16:02 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 14 Feb 2018 05:02:21 +0000 (16:02 +1100)
Allows for running all `bmesh_*` or `object_*` tests.

tests/CMakeLists.txt
tests/gtests/CMakeLists.txt
tests/python/CMakeLists.txt

index 64326f34377afc81de17e000c91cd7359b2f7729..3ffd9db74e5ab1bf706f65820ea41c38f0ca94c0 100644 (file)
@@ -1,6 +1,6 @@
 
 # Python CTests
-if(WITH_BLENDER)
+if(WITH_BLENDER AND WITH_PYTHON)
        add_subdirectory(python)
 endif()
 
index 781da7bf45241dd951587ef752651ced771a6d2b..3ab64d8730981a008a36bf6f60a8da01841936e9 100644 (file)
@@ -2,7 +2,7 @@
 # GTest
 if(WITH_GTESTS)
 
-       Include(GTestTesting)
+       include(GTestTesting)
 
        add_definitions(${GFLAGS_DEFINES})
        add_definitions(${GLOG_DEFINES})
index 853af1474136e2318d0eb98878f13b88a58cd946..662a35558b7e09fb529ef3e1b958b7b6c73c726c 100644 (file)
@@ -116,21 +116,21 @@ add_test(
 # ------------------------------------------------------------------------------
 # MODELING TESTS
 add_test(
-       NAME bevel
+       NAME bmesh_bevel
        COMMAND "$<TARGET_FILE:blender>" ${TEST_BLENDER_EXE_PARAMS}
        ${TEST_SRC_DIR}/modeling/bevel_regression.blend
        --python-text run_tests
 )
 
 add_test(
-       NAME boolean
+       NAME bmesh_boolean
        COMMAND "$<TARGET_FILE:blender>" ${TEST_BLENDER_EXE_PARAMS}
        ${TEST_SRC_DIR}/modeling/bool_regression.blend
        --python-text run_tests
 )
 
 add_test(
-       NAME split_faces
+       NAME bmesh_split_faces
        COMMAND "$<TARGET_FILE:blender>" ${TEST_BLENDER_EXE_PARAMS}
        ${TEST_SRC_DIR}/modeling/split_faces_test.blend
        --python-text run_tests
@@ -139,7 +139,7 @@ add_test(
 # ------------------------------------------------------------------------------
 # MODIFIERS TESTS
 add_test(
-       NAME modifier_array
+       NAME object_modifier_array
        COMMAND "$<TARGET_FILE:blender>" ${TEST_BLENDER_EXE_PARAMS}
        ${TEST_SRC_DIR}/modifier_stack/array_test.blend
        --python-text run_tests