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 64326f3..3ffd9db 100644 (file)
@@ -1,6 +1,6 @@
 
 # Python CTests
-if(WITH_BLENDER)
+if(WITH_BLENDER AND WITH_PYTHON)
        add_subdirectory(python)
 endif()
 
index 781da7b..3ab64d8 100644 (file)
@@ -2,7 +2,7 @@
 # GTest
 if(WITH_GTESTS)
 
-       Include(GTestTesting)
+       include(GTestTesting)
 
        add_definitions(${GFLAGS_DEFINES})
        add_definitions(${GLOG_DEFINES})
index 853af14..662a355 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