Add test scripts to ctest & rename

This commit is contained in:
Campbell Barton 2015-09-24 20:49:44 +10:00
parent 81f64312d2
commit fc6f4c11ae
3 changed files with 12 additions and 2 deletions

View 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

View 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

View 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