diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-09-24 13:49:44 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-09-24 13:52:58 +0300 |
commit | fc6f4c11aebfb89adb08c75ded295e80e375b0b8 (patch) | |
tree | d55144da6c6a44ea928d6c5a805f85374d32e0bf /tests | |
parent | 81f64312d29260fded00da75ddb0f3da730585b0 (diff) |
Add test scripts to ctest & rename
Diffstat (limited to 'tests')
-rw-r--r-- | tests/python/CMakeLists.txt | 10 | ||||
-rw-r--r-- | tests/python/bl_pyapi_bpy_path.py (renamed from tests/python/bl_bpy_path.py) | 2 | ||||
-rw-r--r-- | tests/python/bl_pyapi_bpy_utils_units.py (renamed from tests/python/bl_pyapi_units.py) | 2 |
3 files changed, 12 insertions, 2 deletions
diff --git a/tests/python/CMakeLists.txt b/tests/python/CMakeLists.txt index 8ed9b51f736..fd2176e64d7 100644 --- a/tests/python/CMakeLists.txt +++ b/tests/python/CMakeLists.txt @@ -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 diff --git a/tests/python/bl_bpy_path.py b/tests/python/bl_pyapi_bpy_path.py index 5c4ae91a5df..2d6019fbb07 100644 --- a/tests/python/bl_bpy_path.py +++ b/tests/python/bl_pyapi_bpy_path.py @@ -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 diff --git a/tests/python/bl_pyapi_units.py b/tests/python/bl_pyapi_bpy_utils_units.py index 128cc100b25..f40dab4b5eb 100644 --- a/tests/python/bl_pyapi_units.py +++ b/tests/python/bl_pyapi_bpy_utils_units.py @@ -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 |