[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [31152] branches/soc-2010-leifandersen/ tests: 1.

Leif Andersen leif.a.andersen at gmail.com
Sun Aug 8 04:23:41 CEST 2010


Revision: 31152
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=31152
Author:   leifandersen
Date:     2010-08-08 04:23:40 +0200 (Sun, 08 Aug 2010)

Log Message:
-----------
1.  Completely changed the architecture of the python tests.  After realizing how dumb it was for me to be making shell scripts to modify the outside portions of the tests, I made on common 'shell' which runs each inner python test (put in the funciton func()).

2.  Updated most of the python scripts to match the new hash (through automation, the code used to do it is still there, commented out), 6 of the old hashes still remain though.

Modified Paths:
--------------
    branches/soc-2010-leifandersen/tests/hash_compare.py
    branches/soc-2010-leifandersen/tests/hashfile.txt
    branches/soc-2010-leifandersen/tests/python/Armature_example2.py
    branches/soc-2010-leifandersen/tests/python/BGL_example.py
    branches/soc-2010-leifandersen/tests/python/CMakeLists.txt
    branches/soc-2010-leifandersen/tests/python/Camera_example.py
    branches/soc-2010-leifandersen/tests/python/Constraint_example1.py
    branches/soc-2010-leifandersen/tests/python/Constraint_example2.py
    branches/soc-2010-leifandersen/tests/python/Draw_example.py
    branches/soc-2010-leifandersen/tests/python/Font_example.py
    branches/soc-2010-leifandersen/tests/python/Group_example2.py
    branches/soc-2010-leifandersen/tests/python/MeshPrimitives_example.py
    branches/soc-2010-leifandersen/tests/python/Mesh_example.py
    branches/soc-2010-leifandersen/tests/python/MetaBall_example.py
    branches/soc-2010-leifandersen/tests/python/Modifier_example.py
    branches/soc-2010-leifandersen/tests/python/NMesh_example.py
    branches/soc-2010-leifandersen/tests/python/Object_example.py
    branches/soc-2010-leifandersen/tests/python/Radio_example.py
    branches/soc-2010-leifandersen/tests/python/Render_example.py
    branches/soc-2010-leifandersen/tests/python/Scene_example.py
    branches/soc-2010-leifandersen/tests/python/Sound_example.py
    branches/soc-2010-leifandersen/tests/python/Text3d_example.py
    branches/soc-2010-leifandersen/tests/python/Text_example.py
    branches/soc-2010-leifandersen/tests/python/Timeline.py
    branches/soc-2010-leifandersen/tests/python/Types_example.py
    branches/soc-2010-leifandersen/tests/python/Window_example1.py
    branches/soc-2010-leifandersen/tests/python/World_example1.py
    branches/soc-2010-leifandersen/tests/python/World_example2.py
    branches/soc-2010-leifandersen/tests/python/effect_example.py
    branches/soc-2010-leifandersen/tests/python/image_example.py
    branches/soc-2010-leifandersen/tests/python/lamp_modes_example.py

Modified: branches/soc-2010-leifandersen/tests/hash_compare.py
===================================================================
--- branches/soc-2010-leifandersen/tests/hash_compare.py	2010-08-07 22:48:25 UTC (rev 31151)
+++ branches/soc-2010-leifandersen/tests/hash_compare.py	2010-08-08 02:23:40 UTC (rev 31152)
@@ -16,7 +16,7 @@
     
     def test_case(self):
         bpy.ops.tests.hash()
-        tests.hashfile.data[os.path.split(bpy.data.filepath)[1]] = tests.hashfile.last_hash
+        #tests.hashfile.data[os.path.split(bpy.data.filepath)[1]] = tests.hashfile.last_hash
         #bpy.ops.tests.write_hashfile(filepath=os.path.join(os.path.split(sys.argv[0])[0], 'hashfile.txt'))
         self.assertEquals(self.hash, tests.hashfile.last_hash)
 

Modified: branches/soc-2010-leifandersen/tests/hashfile.txt
===================================================================
--- branches/soc-2010-leifandersen/tests/hashfile.txt	2010-08-07 22:48:25 UTC (rev 31151)
+++ branches/soc-2010-leifandersen/tests/hashfile.txt	2010-08-08 02:23:40 UTC (rev 31152)
@@ -1,67 +1,92 @@
-World_example1.py.blend_start = -21460235683897623202
-fountain.blend = 259d3427fd8244cf871cdbb63626e08d
-continue_physics.blend = 7b9a2bf400661da693c95d613b5dd32c
-MetaBall_example.py.blend_end = -16465600348693923713
-vertices.blend = aac8e75f15290279064329a765652e79
-Armature_example2.py.blend_end = -344900587044515783735
-Window_example1.py.blend_start = -21460235683897623202
+MetaBall_example.py.blend = 42bb5fa044bbca6e6a37218baafa56a8
 all_quads.blend = 54914b465ab7f1677f94b29836e49285
 boids.blend = ef5a44c8091a70b48aee825119705ac6
-MetaBall_example.py.blend_start = -22262356698404542388
+MetaBall_example.py.blend_start = 75dd4cc5fcb018077febc70b0c329cc2
 Timeline.py.blend_end = -21460235683897623202
-Constraint_example2.py.blend_end = -207409205650300112138
-Text3d_example.py.blend_start = -29421834119794418924
+Group_example2.py.blend_end = 189181dc90d5bf3e08049689c46240a7
 softbodytest.blend = 1e5c135516db1a1f06835c705db590eb
-Font_example.py.blend_end = -60195516037617288890
-Camera_example.py.blend_start = -21460235683897623202
-effect_example.py.blend_end = -15342881782350962885
-Constraint_example1.py.blend_start = -2034449402296039890
-mixed_quads_and_tris.blend = cf7c304ccf56ba1bb103070e9b4b4593
-Mesh_example.py.blend_end = -20878286593088736557
-Render_example.py.blend_end = -21460235683897623202
-MeshPrimitives_example.py.blend_start = -22262356698404542388
-effect_example.py.blend_start = -15342881782350963335
-lamp_modes_example.py.blend_end = -29347588579616917852
-NMesh_example.py.blend_start = -21460235683897623202
-Text3d_example.py.blend_end = -67354993459007165426
-Sound_example.py.blend_end = -21460235683897623202
+Font_example.py.blend_end = dba4317142a24193be16c95f438bfe6b
+Text3d_example.py.blend_end = dba4317142a24193be16c95f438bfe6b
 radioroom.blend = 52e443a5c5619ed0c98be433046d46bc
-Armature_example2.py.blend_start = -364238819647067223878
-Mesh_example.py.blend_start = -22262356698404542388
-Modifier_example.py.blend_end = -14765986523746378294
-Types_example.py.blend_end = -21460235683897623202
-NURBS.blend = aac8e75f15290279064329a765652e79
-NMesh_example.py.blend_end = -14300758261913453413
+Mesh_example.py.blend_start = 75dd4cc5fcb018077febc70b0c329cc2
+lamp_modes_example.py.blend_start = 7a19f34e52ccc7a57bdf10cae658878d
+Text_example.py.blend = a948c91b9df848f8075da24a07ddcc24
+Window_example1.py.blend_start = a948c91b9df848f8075da24a07ddcc24
+Timeline.py.blend_start = a948c91b9df848f8075da24a07ddcc24
+World_example2.py.blend = a948c91b9df848f8075da24a07ddcc24
+Armature_example2.py.blend = 9de007b901061739811b635d8458b6df
+Font_example.py.blend_start = 75dd4cc5fcb018077febc70b0c329cc2
+Timeline.py.blend = a948c91b9df848f8075da24a07ddcc24
+Render_example.py.blend_start = a948c91b9df848f8075da24a07ddcc24
+Sound_example.py.blend = a948c91b9df848f8075da24a07ddcc24
+World_example1.py.blend_start = a948c91b9df848f8075da24a07ddcc24
+Scene_example.py.blend = ef1c76a03a6a99091c1b1fea7f05853d
+Object_example.py.blend_end = c8b2f049e8bf63de317ee97226bb3b55
+MetaBall_example.py.blend_end = 42bb5fa044bbca6e6a37218baafa56a8
+Text3d_example.py.blend_start = 75dd4cc5fcb018077febc70b0c329cc2
+Modifier_example.py.blend_end = 1a82af6cee97145e5e751b86d97e6ddf
+Window_example1.py.blend_end = a948c91b9df848f8075da24a07ddcc24
+Render_example.py.blend_end = a948c91b9df848f8075da24a07ddcc24
+Camera_example.py.blend = 162f9530673617327d030d26e716ee34
+lamp_modes_example.py.blend_end = 38abb432cb47f2e08072664bc4507139
+MeshPrimitives_example.py.blend = 41b9d75cf0a53c79a5cb3d68a10ec7a5
+Types_example.py.blend_end = a948c91b9df848f8075da24a07ddcc24
+Font_example.py.blend = dba4317142a24193be16c95f438bfe6b
 fluidsim.blend = 8cad819d1e7665975ed569d98041929f
-Font_example.py.blend_start = -22262356698404542388
-lamp_modes_example.py.blend_start = -15330808205140559615
-Constraint_example2.py.blend_start = -207409205650300112139
+Constraint_example1.py.blend = 686dd74c73ad6f051ae1fe7f880d9dfe
+particle_extras_effector.blend = d5d03261dc58087b1da9fc9a7bbc9754
+World_example2.py.blend_end = a948c91b9df848f8075da24a07ddcc24
+particle_children_hair.blend = 773e5250e839e76b7908a4cf9330a6cb
+Render_example.py.blend = a948c91b9df848f8075da24a07ddcc24
+Group_example2.py.blend = 189181dc90d5bf3e08049689c46240a7
+softhairtest.blend = 2bda18be551373f9828d47f41e45423d
+Text_example.py.blend_start = a948c91b9df848f8075da24a07ddcc24
+Modifier_example.py.blend_start = a948c91b9df848f8075da24a07ddcc24
+Object_example.py.blend = c8b2f049e8bf63de317ee97226bb3b55
+Mesh_example.py.blend = 3c6a4371324394ef94cff62479913167
+continue_physics.blend = 7b9a2bf400661da693c95d613b5dd32c
 all_tris.blend = fc3c49d8c65424725bc3d3dd66f647ab
-Camera_example.py.blend_end = -31619213351238176625
+image_example.py.blend_start = a948c91b9df848f8075da24a07ddcc24
+Sound_example.py.blend_start = a948c91b9df848f8075da24a07ddcc24
+World_example1.py.blend = a948c91b9df848f8075da24a07ddcc24
+NURBS.blend = aac8e75f15290279064329a765652e79
+World_example1.py.blend_end = -21460235683897623202
+Armature_example2.py.blend_start = 90299460fa245a371c8eb2de2e929d58
+Constraint_example2.py.blend_start = cbac6aa87b2f735cee63e77a45ae7624
+Camera_example.py.blend_end = 162f9530673617327d030d26e716ee34
 softbody_basics.blend = 2c44b33d009d6105cbad2d4e100ea336
-Timeline.py.blend_start = -21460235683897623202
-Scene_example.py.blend_start = -21460235683897623202
-Text_example.py.blend_end = -22965085122258125113
-Object_example.py.blend_end = -23496178611252018289
-World_example2.py.blend_start = -21460235683897623202
-particle_extras_effector.blend = d5d03261dc58087b1da9fc9a7bbc9754
-image_example.py.blend_start = -21460235683897623202
-World_example2.py.blend_end = -21460235683897623202
-particle_children_hair.blend = 773e5250e839e76b7908a4cf9330a6cb
+effect_example.py.blend_end = 32e1a17f2204a7644fac466e9ac7367d
+World_example2.py.blend_start = a948c91b9df848f8075da24a07ddcc24
 edges.blend = 0e1b3b0cd3c7fce5df3cd4b71d99e03a
+Types_example.py.blend_start = a948c91b9df848f8075da24a07ddcc24
+Scene_example.py.blend_end = ef1c76a03a6a99091c1b1fea7f05853d
+Constraint_example1.py.blend_end = 686dd74c73ad6f051ae1fe7f880d9dfe
+Types_example.py.blend = a948c91b9df848f8075da24a07ddcc24
+Sound_example.py.blend_end = -21460235683897623202
+MeshPrimitives_example.py.blend_end = 41b9d75cf0a53c79a5cb3d68a10ec7a5
+fountain.blend = 259d3427fd8244cf871cdbb63626e08d
+vertices.blend = aac8e75f15290279064329a765652e79
+Constraint_example2.py.blend_end = cbac6aa87b2f735cee63e77a45ae7624
+Constraint_example2.py.blend = cbac6aa87b2f735cee63e77a45ae7624
+Camera_example.py.blend_start = a948c91b9df848f8075da24a07ddcc24
+effect_example.py.blend = 32e1a17f2204a7644fac466e9ac7367d
+mixed_quads_and_tris.blend = cf7c304ccf56ba1bb103070e9b4b4593
+lamp_modes_example.py.blend = 38abb432cb47f2e08072664bc4507139
+MeshPrimitives_example.py.blend_start = 75dd4cc5fcb018077febc70b0c329cc2
+effect_example.py.blend_start = 21234e9ee1c3f4dc165ea501d9f2f9d7
+NMesh_example.py.blend_start = a948c91b9df848f8075da24a07ddcc24
+Armature_example2.py.blend_end = 9de007b901061739811b635d8458b6df
+Window_example1.py.blend = a948c91b9df848f8075da24a07ddcc24
+Text3d_example.py.blend = dba4317142a24193be16c95f438bfe6b
+NMesh_example.py.blend_end = 3a56be4989138768e2294fabbbdf089e
+Object_example.py.blend_start = a948c91b9df848f8075da24a07ddcc24
+image_example.py.blend = a948c91b9df848f8075da24a07ddcc24
+Scene_example.py.blend_start = a948c91b9df848f8075da24a07ddcc24
+Text_example.py.blend_end = a948c91b9df848f8075da24a07ddcc24
+Mesh_example.py.blend_end = 3c6a4371324394ef94cff62479913167
 fgons.blend = f887eaeedbe324e78884c4c71ccc5438
-Sound_example.py.blend_start = -21460235683897623202
-Scene_example.py.blend_end = -20538575849302840700
-Group_example2.py.blend_end = -7145151643561397340
-Render_example.py.blend_start = -21460235683897623202
-softhairtest.blend = 2bda18be551373f9828d47f41e45423d
-Constraint_example1.py.blend_end = -2034449400852879826
-Types_example.py.blend_start = -21460235683897623202
-Text_example.py.blend_start = -21460235683897623202
-image_example.py.blend_end = -5745724874654974270
-Modifier_example.py.blend_start = -21460235683897623202
-Object_example.py.blend_start = -21460235683897623202
-Window_example1.py.blend_end = -21460235683897623202
-World_example1.py.blend_end = -21460235683897623202
-MeshPrimitives_example.py.blend_end = -14300758262507746663
-Group_example2.py.blend_start = -2748352640926596867
+Modifier_example.py.blend = 1a82af6cee97145e5e751b86d97e6ddf
+image_example.py.blend_end = a948c91b9df848f8075da24a07ddcc24
+Constraint_example1.py.blend_start = 686dd74c73ad6f051ae1fe7f880d9dfe
+NMesh_example.py.blend = 3a56be4989138768e2294fabbbdf089e
+Group_example2.py.blend_start = b89c619bd44140a6ebbf0f41a625d51d

Modified: branches/soc-2010-leifandersen/tests/python/Armature_example2.py
===================================================================
--- branches/soc-2010-leifandersen/tests/python/Armature_example2.py	2010-08-07 22:48:25 UTC (rev 31151)
+++ branches/soc-2010-leifandersen/tests/python/Armature_example2.py	2010-08-08 02:23:40 UTC (rev 31152)
@@ -8,57 +8,29 @@
 
 from mathutils import *
 
-data = []
+def func():
+    # Python tasks
+    arm = bpy.data.armatures['Armature']
+    arm.drawtype = 'STICK'

@@ Diff output truncated at 10240 characters. @@




More information about the Bf-blender-cvs mailing list