Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-03-19 02:58:13 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-03-19 02:58:13 +0300
commit3b8d4aa25f23f1c4c1d9a42e6c876333c4f2c6d2 (patch)
treef9b24c457bde77645dd34d10d2e0bd9dce9ae6aa /source/tests/CMakeLists.txt
parent5f8e8f2251d473c61f46e6d35cc52b0f7ae20720 (diff)
2 tests for ctest.
- script_load_addons: loads and onloads all addons, error if any cant be enabled or disabled. - script_load_modules: loads all blenders modules, error if any modules raise an exception or if any modules in the scripts dir are not tested (except for presets and templates). These are useful because lazy module loading means a module can have an error which isnt raised until the tools used. This gives a way to detect basic errors that used to happen on startup or when enabling the addon.
Diffstat (limited to 'source/tests/CMakeLists.txt')
-rw-r--r--source/tests/CMakeLists.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/tests/CMakeLists.txt b/source/tests/CMakeLists.txt
index a341caac1d0..e9837dd354f 100644
--- a/source/tests/CMakeLists.txt
+++ b/source/tests/CMakeLists.txt
@@ -44,6 +44,20 @@ endif()
set(TEST_BLENDER_EXE ${TEST_BLENDER_EXE} --background --factory-startup --env-system-scripts ${CMAKE_SOURCE_DIR}/release/scripts)
+
+# ------------------------------------------------------------------------------
+# GENERAL PYTHON CORRECTNESS TESTS
+add_test(script_load_addons ${TEST_BLENDER_EXE}
+ --python ${CMAKE_CURRENT_LIST_DIR}/bl_load_addons.py
+)
+
+add_test(script_load_modules ${TEST_BLENDER_EXE}
+ --python ${CMAKE_CURRENT_LIST_DIR}/bl_load_py_modules.py
+)
+
+# ------------------------------------------------------------------------------
+# IO TESTS
+
# OBJ Import tests
add_test(import_obj_cube ${TEST_BLENDER_EXE}
--python ${CMAKE_CURRENT_LIST_DIR}/bl_test.py --