Add test scripts to ctest & rename
authorCampbell Barton <ideasman42@gmail.com>
Thu, 24 Sep 2015 10:49:44 +0000 (20:49 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 24 Sep 2015 10:52:58 +0000 (20:52 +1000)
tests/python/CMakeLists.txt
tests/python/bl_pyapi_bpy_path.py [moved from tests/python/bl_bpy_path.py with 94% similarity]
tests/python/bl_pyapi_bpy_utils_units.py [moved from tests/python/bl_pyapi_units.py with 99% similarity]

index 8ed9b51f73670b3bbf90bbbc2a7f074f745cdc1d..fd2176e64d7ea6075d4efe1fce391fefd3a20994 100644 (file)
@@ -73,6 +73,16 @@ if(USE_EXPERIMENTAL_TESTS)
        )
 endif()
 
+# ------------------------------------------------------------------------------
+# PY API TESTS
+add_test(script_pyapi_bpy_path ${TEST_BLENDER_EXE}
+       --python ${CMAKE_CURRENT_LIST_DIR}/bl_pyapi_bpy_path.py
+)
+
+add_test(script_pyapi_bpy_utils_units ${TEST_BLENDER_EXE}
+       --python ${CMAKE_CURRENT_LIST_DIR}/bl_pyapi_bpy_utils_units.py
+)
+
 # test running mathutils testing script
 add_test(script_pyapi_mathutils ${TEST_BLENDER_EXE}
        --python ${CMAKE_CURRENT_LIST_DIR}/bl_pyapi_mathutils.py
similarity index 94%
rename from tests/python/bl_bpy_path.py
rename to tests/python/bl_pyapi_bpy_path.py
index 5c4ae91a5dffd6076ac7b26ddb0a60fb6243b584..2d6019fbb0793a1b44b4aa5f2b5a1095b2ded1d4 100644 (file)
@@ -1,6 +1,6 @@
 # Apache License, Version 2.0
 
-# ./blender.bin --background -noaudio --python tests/python/bl_bpy_path.py -- --verbose
+# ./blender.bin --background -noaudio --python tests/python/bl_pyapi_bpy_path.py -- --verbose
 import unittest
 
 
similarity index 99%
rename from tests/python/bl_pyapi_units.py
rename to tests/python/bl_pyapi_bpy_utils_units.py
index 128cc100b2544f9520187781afe0938a1db674f7..f40dab4b5ebcf08b4c85308b5974c3feb399d026 100644 (file)
@@ -1,6 +1,6 @@
 # Apache License, Version 2.0
 
-# ./blender.bin --background -noaudio --python tests/python/bl_pyapi_units.py -- --verbose
+# ./blender.bin --background -noaudio --python tests/python/bl_pyapi_bpy_utils_units.py -- --verbose
 import unittest
 
 from bpy.utils import units