浏览代码

# add another two postprocessing presets to the regression suite's database of model minidumps. Totally we have ~1200 test cases now.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@954 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
aramis_acg 14 年之前
父节点
当前提交
724b562e6f
共有 3 个文件被更改,包括 9 次插入2 次删除
  1. 二进制
      test/regression/db.zip
  2. 1 1
      test/regression/gen_db.py
  3. 8 1
      test/regression/settings.py

二进制
test/regression/db.zip


+ 1 - 1
test/regression/gen_db.py

@@ -87,7 +87,7 @@ def process_dir(d, outfile, file_filter):
                 outf = os.path.join(os.getcwd(), settings.database_name,
                     utils.hashing(fullp, pp))
 
-                cmd = [utils.assimp_bin_path,"dump",fullp,outf,"-b","-s",pp]
+                cmd = [utils.assimp_bin_path,"dump",fullp,outf,"-b","-s","-l",pp]
                 outfile.write("assimp dump "+"-"*80+"\n")
                 outfile.flush()
                 if subprocess.call(cmd, stdout=outfile, stderr=outfile, shell=False):

+ 8 - 1
test/regression/settings.py

@@ -64,6 +64,7 @@ exclude_extensions = [".lws",".assbin",".assxml",".txt",".jpeg",".jpg",".png",".
 # '-og -om'   :run optimize-scenegraph in combination with optimize-meshes.
 # '-vds -jiv' :join-identical-vertices alone. This is a hotspot where
 #              floating-point inaccuracies can cause severe damage.
+# '-ptv':      transform all meshes to world-space
 
 # As you can see, not all possible combinations of pp steps are covered - 
 # but at least each step is executed at least once on each model. 
@@ -71,7 +72,13 @@ exclude_extensions = [".lws",".assbin",".assxml",".txt",".jpeg",".jpg",".png",".
 pp_configs_to_test = [
     "-cfull",
     "-og -om -vds",
-    "-vds -jiv"
+    "-vds -jiv",
+    "-ptv -gsn -cts -db",
+
+    # this is especially important: if no failures are present with this 
+    # preset, the regression is most likely caused by the post
+    # processing pipeline.
+    ""
 ]
 # -------------------------------------------------------------------------------
 # Name of the regression database file to be used