Add test scripts to ctest & rename
This commit is contained in:
parent
81f64312d2
commit
fc6f4c11ae
|
@ -73,6 +73,16 @@ if(USE_EXPERIMENTAL_TESTS)
|
||||||
)
|
)
|
||||||
endif()
|
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
|
# test running mathutils testing script
|
||||||
add_test(script_pyapi_mathutils ${TEST_BLENDER_EXE}
|
add_test(script_pyapi_mathutils ${TEST_BLENDER_EXE}
|
||||||
--python ${CMAKE_CURRENT_LIST_DIR}/bl_pyapi_mathutils.py
|
--python ${CMAKE_CURRENT_LIST_DIR}/bl_pyapi_mathutils.py
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Apache License, Version 2.0
|
# 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
|
import unittest
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Apache License, Version 2.0
|
# 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
|
import unittest
|
||||||
|
|
||||||
from bpy.utils import units
|
from bpy.utils import units
|
Loading…
Reference in New Issue