2011-01-21 00:06:30 +00:00
|
|
|
# -*- mode: cmake; indent-tabs-mode: t; -*-
|
|
|
|
# $Id: CMakeLists.txt 34198 2011-01-09 15:12:08Z campbellbarton $
|
|
|
|
# ***** BEGIN GPL LICENSE BLOCK *****
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License
|
|
|
|
# as published by the Free Software Foundation; either version 2
|
|
|
|
# of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software Foundation,
|
|
|
|
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
#
|
|
|
|
# Contributor(s): Jacques Beaurain.
|
|
|
|
#
|
|
|
|
# ***** END GPL LICENSE BLOCK *****
|
|
|
|
|
2011-03-16 21:32:20 +00:00
|
|
|
# --env-system-scripts allows to run without the install target.
|
2011-01-21 00:06:30 +00:00
|
|
|
|
|
|
|
# Use '--write-blend=/tmp/test.blend' to view output
|
|
|
|
|
|
|
|
|
|
|
|
set(TEST_SRC_DIR ${CMAKE_SOURCE_DIR}/../lib/tests)
|
|
|
|
set(TEST_OUT_DIR ${CMAKE_BINARY_DIR}/tests)
|
|
|
|
|
2011-03-16 12:06:12 +00:00
|
|
|
# ugh, any better way to do this on testing only?
|
|
|
|
execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${TEST_OUT_DIR})
|
|
|
|
|
2011-01-21 00:06:30 +00:00
|
|
|
#~ if(NOT IS_DIRECTORY ${TEST_SRC_DIR})
|
|
|
|
#~ message(FATAL_ERROR "CMake test directory not found!")
|
|
|
|
#~ endif()
|
|
|
|
|
|
|
|
# all calls to blender use this
|
2011-03-13 13:09:18 +00:00
|
|
|
if(APPLE)
|
|
|
|
set(TEST_BLENDER_EXE ${EXECUTABLE_OUTPUT_PATH}/blender.app/Contents/MacOS/blender)
|
|
|
|
else()
|
|
|
|
set(TEST_BLENDER_EXE ${EXECUTABLE_OUTPUT_PATH}/blender)
|
|
|
|
endif()
|
2011-01-21 00:06:30 +00:00
|
|
|
|
2011-04-06 01:13:01 +00:00
|
|
|
# for testing with valgrind prefix: valgrind --track-origins=yes --error-limit=no
|
2011-03-13 13:09:18 +00:00
|
|
|
set(TEST_BLENDER_EXE ${TEST_BLENDER_EXE} --background --factory-startup --env-system-scripts ${CMAKE_SOURCE_DIR}/release/scripts)
|
2011-01-21 00:06:30 +00:00
|
|
|
|
2011-03-18 23:58:13 +00:00
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# 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
|
|
|
|
)
|
|
|
|
|
2011-03-22 14:09:07 +00:00
|
|
|
# test running operators doesn't segfault under various conditions
|
|
|
|
add_test(script_run_operators ${TEST_BLENDER_EXE}
|
|
|
|
--python ${CMAKE_CURRENT_LIST_DIR}/bl_run_operators.py
|
|
|
|
)
|
|
|
|
|
2011-03-18 23:58:13 +00:00
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# IO TESTS
|
|
|
|
|
2011-01-21 00:06:30 +00:00
|
|
|
# OBJ Import tests
|
2011-03-13 13:09:18 +00:00
|
|
|
add_test(import_obj_cube ${TEST_BLENDER_EXE}
|
2011-01-21 00:06:30 +00:00
|
|
|
--python ${CMAKE_CURRENT_LIST_DIR}/bl_test.py --
|
|
|
|
--run={'FINISHED'}&bpy.ops.import_scene.obj\(filepath='${TEST_SRC_DIR}/io_tests/obj/cube.obj'\)
|
2011-06-07 08:47:33 +00:00
|
|
|
--md5=39cce4bacac2d1b18fc470380279bc15 --md5_method=SCENE
|
2011-04-06 00:46:06 +00:00
|
|
|
--write-blend=${TEST_OUT_DIR}/import_obj_cube.blend
|
2011-01-21 00:06:30 +00:00
|
|
|
)
|
|
|
|
|
2011-03-13 13:09:18 +00:00
|
|
|
add_test(import_obj_nurbs_cyclic ${TEST_BLENDER_EXE}
|
2011-01-21 00:06:30 +00:00
|
|
|
--python ${CMAKE_CURRENT_LIST_DIR}/bl_test.py --
|
|
|
|
--run={'FINISHED'}&bpy.ops.import_scene.obj\(filepath='${TEST_SRC_DIR}/io_tests/obj/nurbs_cyclic.obj'\)
|
2011-06-07 08:47:33 +00:00
|
|
|
--md5=ad3c307e5883224a0492378cd32691ab --md5_method=SCENE
|
2011-04-06 00:46:06 +00:00
|
|
|
--write-blend=${TEST_OUT_DIR}/import_obj_nurbs_cyclic.blend
|
2011-01-21 00:06:30 +00:00
|
|
|
)
|
|
|
|
|
2011-03-13 13:09:18 +00:00
|
|
|
add_test(import_obj_makehuman ${TEST_BLENDER_EXE}
|
2011-01-21 00:06:30 +00:00
|
|
|
--python ${CMAKE_CURRENT_LIST_DIR}/bl_test.py --
|
|
|
|
--run={'FINISHED'}&bpy.ops.import_scene.obj\(filepath='${TEST_SRC_DIR}/io_tests/obj/makehuman.obj'\)
|
2011-06-07 08:47:33 +00:00
|
|
|
--md5=c9f78b185e58358daa4ecaecfa75464e --md5_method=SCENE
|
2011-04-06 00:46:06 +00:00
|
|
|
--write-blend=${TEST_OUT_DIR}/import_obj_makehuman.blend
|
2011-01-21 00:06:30 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
# OBJ Export tests
|
2011-03-13 13:09:18 +00:00
|
|
|
add_test(export_obj_cube ${TEST_BLENDER_EXE}
|
2011-01-21 00:06:30 +00:00
|
|
|
${TEST_SRC_DIR}/io_tests/blend_geometry/all_quads.blend
|
|
|
|
--python ${CMAKE_CURRENT_LIST_DIR}/bl_test.py --
|
|
|
|
--run={'FINISHED'}&bpy.ops.export_scene.obj\(filepath='${TEST_OUT_DIR}/export_obj_cube.obj',use_selection=False\)
|
|
|
|
--md5_source=${TEST_OUT_DIR}/export_obj_cube.obj
|
|
|
|
--md5_source=${TEST_OUT_DIR}/export_obj_cube.mtl
|
2011-06-07 08:47:33 +00:00
|
|
|
--md5=70bdc394c2726203ad26c085176e3484 --md5_method=FILE
|
2011-01-21 00:06:30 +00:00
|
|
|
)
|
|
|
|
|
2011-03-13 13:09:18 +00:00
|
|
|
add_test(export_obj_nurbs ${TEST_BLENDER_EXE}
|
2011-01-21 00:06:30 +00:00
|
|
|
${TEST_SRC_DIR}/io_tests/blend_geometry/nurbs.blend
|
|
|
|
--python ${CMAKE_CURRENT_LIST_DIR}/bl_test.py --
|
|
|
|
--run={'FINISHED'}&bpy.ops.export_scene.obj\(filepath='${TEST_OUT_DIR}/export_obj_nurbs.obj',use_selection=False,use_nurbs=True\)
|
|
|
|
--md5_source=${TEST_OUT_DIR}/export_obj_nurbs.obj
|
|
|
|
--md5_source=${TEST_OUT_DIR}/export_obj_nurbs.mtl
|
2011-06-07 08:47:33 +00:00
|
|
|
--md5=a733ae4fa4a591ea9b0912da3af042de --md5_method=FILE
|
2011-01-21 00:06:30 +00:00
|
|
|
)
|
|
|
|
|
2011-03-13 13:09:18 +00:00
|
|
|
add_test(export_obj_all_objects ${TEST_BLENDER_EXE}
|
2011-01-21 00:06:30 +00:00
|
|
|
${TEST_SRC_DIR}/io_tests/blend_scene/all_objects.blend
|
|
|
|
--python ${CMAKE_CURRENT_LIST_DIR}/bl_test.py --
|
|
|
|
--run={'FINISHED'}&bpy.ops.export_scene.obj\(filepath='${TEST_OUT_DIR}/export_obj_all_objects.obj',use_selection=False,use_nurbs=True\)
|
|
|
|
--md5_source=${TEST_OUT_DIR}/export_obj_all_objects.obj
|
|
|
|
--md5_source=${TEST_OUT_DIR}/export_obj_all_objects.mtl
|
2011-06-09 16:20:00 +00:00
|
|
|
--md5=01c123948efadc6a71ab2c09a5925756 --md5_method=FILE
|
2011-01-21 00:06:30 +00:00
|
|
|
)
|
|
|
|
|
2011-01-21 10:49:39 +00:00
|
|
|
|
|
|
|
|
|
|
|
# PLY Import tests
|
2011-03-13 13:09:18 +00:00
|
|
|
add_test(import_ply_cube ${TEST_BLENDER_EXE}
|
2011-01-21 10:49:39 +00:00
|
|
|
--python ${CMAKE_CURRENT_LIST_DIR}/bl_test.py --
|
|
|
|
--run={'FINISHED'}&bpy.ops.import_mesh.ply\(filepath='${TEST_SRC_DIR}/io_tests/ply/cube_ascii.ply'\)
|
|
|
|
--md5=527134343c27fc0ea73115b85fbfd3ac --md5_method=SCENE
|
2011-04-06 00:46:06 +00:00
|
|
|
--write-blend=${TEST_OUT_DIR}/import_ply_cube.blend
|
2011-01-21 10:49:39 +00:00
|
|
|
)
|
|
|
|
|
2011-03-13 13:09:18 +00:00
|
|
|
add_test(import_ply_bunny ${TEST_BLENDER_EXE}
|
2011-01-21 10:49:39 +00:00
|
|
|
--python ${CMAKE_CURRENT_LIST_DIR}/bl_test.py --
|
|
|
|
--run={'FINISHED'}&bpy.ops.import_mesh.ply\(filepath='${TEST_SRC_DIR}/io_tests/ply/bunny2.ply'\)
|
|
|
|
--md5=6ea5b8533400a17accf928b8fd024eaa --md5_method=SCENE
|
2011-04-06 00:46:06 +00:00
|
|
|
--write-blend=${TEST_OUT_DIR}/import_ply_bunny.blend
|
2011-01-21 10:49:39 +00:00
|
|
|
)
|
|
|
|
|
2011-03-13 13:09:18 +00:00
|
|
|
add_test(import_ply_small_holes ${TEST_BLENDER_EXE}
|
2011-01-21 10:49:39 +00:00
|
|
|
--python ${CMAKE_CURRENT_LIST_DIR}/bl_test.py --
|
|
|
|
--run={'FINISHED'}&bpy.ops.import_mesh.ply\(filepath='${TEST_SRC_DIR}/io_tests/ply/many_small_holes.ply'\)
|
|
|
|
--md5=c3093e26ecae5b6d59fbbcf2a0d0b39f --md5_method=SCENE
|
2011-04-06 00:46:06 +00:00
|
|
|
--write-blend=${TEST_OUT_DIR}/import_ply_small_holes.blend
|
2011-01-21 10:49:39 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
# PLY Export tests (TODO)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# STL Import tests
|
2011-03-13 13:09:18 +00:00
|
|
|
add_test(import_stl_cube ${TEST_BLENDER_EXE}
|
2011-01-21 10:49:39 +00:00
|
|
|
--python ${CMAKE_CURRENT_LIST_DIR}/bl_test.py --
|
|
|
|
--run={'FINISHED'}&bpy.ops.import_mesh.stl\(filepath='${TEST_SRC_DIR}/io_tests/stl/cube.stl'\)
|
|
|
|
--md5=8ceb5bb7e1cb5f4342fa1669988c66b4 --md5_method=SCENE
|
2011-04-06 00:46:06 +00:00
|
|
|
--write-blend=${TEST_OUT_DIR}/import_stl_cube.blend
|
2011-01-21 10:49:39 +00:00
|
|
|
)
|
|
|
|
|
2011-03-13 13:09:18 +00:00
|
|
|
add_test(import_stl_conrod ${TEST_BLENDER_EXE}
|
2011-01-21 10:49:39 +00:00
|
|
|
--python ${CMAKE_CURRENT_LIST_DIR}/bl_test.py --
|
|
|
|
--run={'FINISHED'}&bpy.ops.import_mesh.stl\(filepath='${TEST_SRC_DIR}/io_tests/stl/conrod.stl'\)
|
|
|
|
--md5=690a4b8eb9002dcd8631c5a575ea7348 --md5_method=SCENE
|
2011-04-06 00:46:06 +00:00
|
|
|
--write-blend=${TEST_OUT_DIR}/import_stl_conrod.blend
|
2011-01-21 10:49:39 +00:00
|
|
|
)
|
|
|
|
|
2011-03-13 13:09:18 +00:00
|
|
|
add_test(import_stl_knot_max_simplified ${TEST_BLENDER_EXE}
|
2011-01-21 10:49:39 +00:00
|
|
|
--python ${CMAKE_CURRENT_LIST_DIR}/bl_test.py --
|
|
|
|
--run={'FINISHED'}&bpy.ops.import_mesh.stl\(filepath='${TEST_SRC_DIR}/io_tests/stl/knot_max_simplified.stl'\)
|
|
|
|
--md5=baf82803f45a84ec4ddbad9cef57dd3e --md5_method=SCENE
|
2011-04-06 00:46:06 +00:00
|
|
|
--write-blend=${TEST_OUT_DIR}/import_stl_knot_max_simplified.blend
|
2011-01-21 10:49:39 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
# STL Export tests (TODO)
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-01-21 00:06:30 +00:00
|
|
|
# X3D Import
|
2011-03-13 13:09:18 +00:00
|
|
|
add_test(import_x3d_cube ${TEST_BLENDER_EXE}
|
2011-01-21 00:06:30 +00:00
|
|
|
--python ${CMAKE_CURRENT_LIST_DIR}/bl_test.py --
|
|
|
|
--run={'FINISHED'}&bpy.ops.import_scene.x3d\(filepath='${TEST_SRC_DIR}/io_tests/x3d/color_cube.x3d'\)
|
2011-07-01 13:39:35 +00:00
|
|
|
--md5=3fae9be004199c145941cd3f9f80ad7b --md5_method=SCENE
|
2011-04-06 00:46:06 +00:00
|
|
|
--write-blend=${TEST_OUT_DIR}/import_x3d_cube.blend
|
2011-01-21 00:06:30 +00:00
|
|
|
)
|
|
|
|
|
2011-03-13 13:09:18 +00:00
|
|
|
add_test(import_x3d_teapot ${TEST_BLENDER_EXE}
|
2011-01-21 00:06:30 +00:00
|
|
|
--python ${CMAKE_CURRENT_LIST_DIR}/bl_test.py --
|
|
|
|
--run={'FINISHED'}&bpy.ops.import_scene.x3d\(filepath='${TEST_SRC_DIR}/io_tests/x3d/teapot.x3d'\)
|
2011-07-01 13:39:35 +00:00
|
|
|
--md5=8ee196c71947dce4199d55698501691e --md5_method=SCENE
|
2011-04-06 00:46:06 +00:00
|
|
|
--write-blend=${TEST_OUT_DIR}/import_x3d_teapot.blend
|
2011-01-21 00:06:30 +00:00
|
|
|
)
|
|
|
|
|
2011-03-13 13:09:18 +00:00
|
|
|
add_test(import_x3d_suzanne_material ${TEST_BLENDER_EXE}
|
2011-01-21 00:06:30 +00:00
|
|
|
--python ${CMAKE_CURRENT_LIST_DIR}/bl_test.py --
|
|
|
|
--run={'FINISHED'}&bpy.ops.import_scene.x3d\(filepath='${TEST_SRC_DIR}/io_tests/x3d/suzanne_material.x3d'\)
|
2011-07-01 13:39:35 +00:00
|
|
|
--md5=3edea1353257d8b5a5f071942f417be6 --md5_method=SCENE
|
2011-04-06 00:46:06 +00:00
|
|
|
--write-blend=${TEST_OUT_DIR}/import_x3d_suzanne_material.blend
|
2011-01-21 00:06:30 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
# X3D Export
|
2011-03-13 13:09:18 +00:00
|
|
|
add_test(export_x3d_cube ${TEST_BLENDER_EXE}
|
2011-01-21 00:06:30 +00:00
|
|
|
${TEST_SRC_DIR}/io_tests/blend_geometry/all_quads.blend
|
|
|
|
--python ${CMAKE_CURRENT_LIST_DIR}/bl_test.py --
|
|
|
|
--run={'FINISHED'}&bpy.ops.export_scene.x3d\(filepath='${TEST_OUT_DIR}/export_x3d_cube.x3d',use_selection=False\)
|
|
|
|
--md5_source=${TEST_OUT_DIR}/export_x3d_cube.x3d
|
2011-07-01 13:39:35 +00:00
|
|
|
--md5=6ae36be272d6f84c697e84a8b6463273 --md5_method=FILE
|
2011-01-21 00:06:30 +00:00
|
|
|
)
|
|
|
|
|
2011-03-13 13:09:18 +00:00
|
|
|
add_test(export_x3d_nurbs ${TEST_BLENDER_EXE}
|
2011-01-21 00:06:30 +00:00
|
|
|
${TEST_SRC_DIR}/io_tests/blend_geometry/nurbs.blend
|
|
|
|
--python ${CMAKE_CURRENT_LIST_DIR}/bl_test.py --
|
|
|
|
--run={'FINISHED'}&bpy.ops.export_scene.x3d\(filepath='${TEST_OUT_DIR}/export_x3d_nurbs.x3d',use_selection=False\)
|
|
|
|
--md5_source=${TEST_OUT_DIR}/export_x3d_nurbs.x3d
|
2011-07-01 13:39:35 +00:00
|
|
|
--md5=2d5bcf43cf7b6fbbef1c8cc566968fe5 --md5_method=FILE
|
2011-01-21 00:06:30 +00:00
|
|
|
)
|
|
|
|
|
2011-03-13 13:09:18 +00:00
|
|
|
add_test(export_x3d_all_objects ${TEST_BLENDER_EXE}
|
2011-01-21 00:06:30 +00:00
|
|
|
${TEST_SRC_DIR}/io_tests/blend_scene/all_objects.blend
|
|
|
|
--python ${CMAKE_CURRENT_LIST_DIR}/bl_test.py --
|
|
|
|
--run={'FINISHED'}&bpy.ops.export_scene.x3d\(filepath='${TEST_OUT_DIR}/export_x3d_all_objects.x3d',use_selection=False\)
|
|
|
|
--md5_source=${TEST_OUT_DIR}/export_x3d_all_objects.x3d
|
2011-07-01 13:39:35 +00:00
|
|
|
--md5=bba48ca191e8891adb27c59ed4ce4735 --md5_method=FILE
|
2011-01-21 00:06:30 +00:00
|
|
|
)
|
|
|
|
|
2011-01-21 10:49:39 +00:00
|
|
|
|
|
|
|
|
2011-01-21 00:06:30 +00:00
|
|
|
# 3DS Import
|
2011-03-13 13:09:18 +00:00
|
|
|
add_test(import_3ds_cube ${TEST_BLENDER_EXE}
|
2011-01-21 00:06:30 +00:00
|
|
|
--python ${CMAKE_CURRENT_LIST_DIR}/bl_test.py --
|
|
|
|
--run={'FINISHED'}&bpy.ops.import_scene.autodesk_3ds\(filepath='${TEST_SRC_DIR}/io_tests/3ds/cube.3ds'\)
|
|
|
|
--md5=cb5a45c35a343c3f5beca2a918472951 --md5_method=SCENE
|
2011-04-06 00:46:06 +00:00
|
|
|
--write-blend=${TEST_OUT_DIR}/import_3ds_cube.blend
|
2011-01-21 00:06:30 +00:00
|
|
|
)
|
|
|
|
|
2011-03-13 13:09:18 +00:00
|
|
|
add_test(import_3ds_hierarchy_lara ${TEST_BLENDER_EXE}
|
2011-01-21 00:06:30 +00:00
|
|
|
--python ${CMAKE_CURRENT_LIST_DIR}/bl_test.py --
|
|
|
|
--run={'FINISHED'}&bpy.ops.import_scene.autodesk_3ds\(filepath='${TEST_SRC_DIR}/io_tests/3ds/hierarchy_lara.3ds'\)
|
2011-06-07 08:47:33 +00:00
|
|
|
--md5=766c873d9fdb5f190e43796cfbae63b6 --md5_method=SCENE
|
2011-04-06 00:46:06 +00:00
|
|
|
--write-blend=${TEST_OUT_DIR}/import_3ds_hierarchy_lara.blend
|
2011-01-21 00:06:30 +00:00
|
|
|
)
|
|
|
|
|
2011-03-13 13:09:18 +00:00
|
|
|
add_test(import_3ds_hierarchy_greek_trireme ${TEST_BLENDER_EXE}
|
2011-01-21 00:06:30 +00:00
|
|
|
--python ${CMAKE_CURRENT_LIST_DIR}/bl_test.py --
|
|
|
|
--run={'FINISHED'}&bpy.ops.import_scene.autodesk_3ds\(filepath='${TEST_SRC_DIR}/io_tests/3ds/hierarchy_greek_trireme.3ds'\)
|
2011-06-07 08:47:33 +00:00
|
|
|
--md5=b62ee30101e8999cb91ef4f8a8760056 --md5_method=SCENE
|
2011-04-06 00:46:06 +00:00
|
|
|
--write-blend=${TEST_OUT_DIR}/import_3ds_hierarchy_greek_trireme.blend
|
2011-01-21 00:06:30 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
# 3DS Export
|
2011-03-13 13:09:18 +00:00
|
|
|
add_test(export_3ds_cube ${TEST_BLENDER_EXE}
|
2011-01-21 00:06:30 +00:00
|
|
|
${TEST_SRC_DIR}/io_tests/blend_geometry/all_quads.blend
|
|
|
|
--python ${CMAKE_CURRENT_LIST_DIR}/bl_test.py --
|
|
|
|
--run={'FINISHED'}&bpy.ops.export_scene.autodesk_3ds\(filepath='${TEST_OUT_DIR}/export_3ds_cube.3ds',use_selection=False\)
|
|
|
|
--md5_source=${TEST_OUT_DIR}/export_3ds_cube.3ds
|
|
|
|
--md5=0df6cfb130052d01e31ef77d391d4cc0 --md5_method=FILE
|
|
|
|
)
|
|
|
|
|
2011-03-13 13:09:18 +00:00
|
|
|
add_test(export_3ds_nurbs ${TEST_BLENDER_EXE}
|
2011-01-21 00:06:30 +00:00
|
|
|
${TEST_SRC_DIR}/io_tests/blend_geometry/nurbs.blend
|
|
|
|
--python ${CMAKE_CURRENT_LIST_DIR}/bl_test.py --
|
|
|
|
--run={'FINISHED'}&bpy.ops.export_scene.autodesk_3ds\(filepath='${TEST_OUT_DIR}/export_3ds_nurbs.3ds',use_selection=False\)
|
|
|
|
--md5_source=${TEST_OUT_DIR}/export_3ds_nurbs.3ds
|
|
|
|
--md5=ba1a6d43346fee3bcadc7e30e3c95935 --md5_method=FILE
|
|
|
|
)
|
|
|
|
|
2011-03-13 13:09:18 +00:00
|
|
|
add_test(export_3ds_all_objects ${TEST_BLENDER_EXE}
|
2011-01-21 00:06:30 +00:00
|
|
|
${TEST_SRC_DIR}/io_tests/blend_scene/all_objects.blend
|
|
|
|
--python ${CMAKE_CURRENT_LIST_DIR}/bl_test.py --
|
|
|
|
--run={'FINISHED'}&bpy.ops.export_scene.autodesk_3ds\(filepath='${TEST_OUT_DIR}/export_3ds_all_objects.3ds',use_selection=False\)
|
|
|
|
--md5_source=${TEST_OUT_DIR}/export_3ds_all_objects.3ds
|
2011-06-07 08:47:33 +00:00
|
|
|
--md5=cdf8fa8475fda0b9ef565ac09339254b --md5_method=FILE
|
2011-01-21 00:06:30 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
2011-01-21 10:49:39 +00:00
|
|
|
|
2011-01-21 00:06:30 +00:00
|
|
|
# FBX Export
|
|
|
|
# 'use_metadata=False' for reliable md5's
|
2011-03-13 13:09:18 +00:00
|
|
|
add_test(export_fbx_cube ${TEST_BLENDER_EXE}
|
2011-01-21 00:06:30 +00:00
|
|
|
${TEST_SRC_DIR}/io_tests/blend_geometry/all_quads.blend
|
|
|
|
--python ${CMAKE_CURRENT_LIST_DIR}/bl_test.py --
|
|
|
|
--run={'FINISHED'}&bpy.ops.export_scene.fbx\(filepath='${TEST_OUT_DIR}/export_fbx_cube.fbx',use_selection=False,use_metadata=False\)
|
|
|
|
--md5_source=${TEST_OUT_DIR}/export_fbx_cube.fbx
|
2011-06-07 08:47:33 +00:00
|
|
|
--md5=642a5a1fa199d5b9bbf1643519ae974d --md5_method=FILE
|
2011-01-21 00:06:30 +00:00
|
|
|
)
|
|
|
|
|
2011-03-13 13:09:18 +00:00
|
|
|
add_test(export_fbx_nurbs ${TEST_BLENDER_EXE}
|
2011-01-21 00:06:30 +00:00
|
|
|
${TEST_SRC_DIR}/io_tests/blend_geometry/nurbs.blend
|
|
|
|
--python ${CMAKE_CURRENT_LIST_DIR}/bl_test.py --
|
|
|
|
--run={'FINISHED'}&bpy.ops.export_scene.fbx\(filepath='${TEST_OUT_DIR}/export_fbx_nurbs.fbx',use_selection=False,use_metadata=False\)
|
|
|
|
--md5_source=${TEST_OUT_DIR}/export_fbx_nurbs.fbx
|
2011-06-07 08:47:33 +00:00
|
|
|
--md5=ec1e8965bdbc3bf70707d77f82c2cb9c --md5_method=FILE
|
2011-01-21 00:06:30 +00:00
|
|
|
)
|
|
|
|
|
2011-03-13 13:09:18 +00:00
|
|
|
add_test(export_fbx_all_objects ${TEST_BLENDER_EXE}
|
2011-01-21 00:06:30 +00:00
|
|
|
${TEST_SRC_DIR}/io_tests/blend_scene/all_objects.blend
|
|
|
|
--python ${CMAKE_CURRENT_LIST_DIR}/bl_test.py --
|
|
|
|
--run={'FINISHED'}&bpy.ops.export_scene.fbx\(filepath='${TEST_OUT_DIR}/export_fbx_all_objects.fbx',use_selection=False,use_metadata=False\)
|
|
|
|
--md5_source=${TEST_OUT_DIR}/export_fbx_all_objects.fbx
|
2011-06-07 08:47:33 +00:00
|
|
|
--md5=af3b65665687ac92e4aba07b017d87fe --md5_method=FILE
|
2011-01-21 00:33:37 +00:00
|
|
|
)
|