فهرست منبع

Merge pull request #361 from assimp/travis

Travis - Add regression suite to CI build
Alexander Gessler 11 سال پیش
والد
کامیت
a51a0b36f0
3فایلهای تغییر یافته به همراه21 افزوده شده و 2 حذف شده
  1. 9 1
      .travis.yml
  2. 4 1
      test/regression/run.py
  3. 8 0
      test/regression/settings.py

+ 9 - 1
.travis.yml

@@ -1,5 +1,5 @@
 before_install:
-  - sudo apt-get install cmake libcppunit-dev
+  - sudo apt-get install cmake libcppunit-dev python3
 
 env:
   - TRAVIS_NO_EXPORT=YES
@@ -16,6 +16,14 @@ compiler:
 script:
   - cmake -G "Unix Makefiles" -DASSIMP_ENABLE_BOOST_WORKAROUND=YES -DASSIMP_NO_EXPORT=$TRAVIS_NO_EXPORT -STATIC_BUILD=$TRAVIS_STATIC_BUILD
   - make
+  - sudo make install
+  - sudo ldconfig
   - cd test/unit
   - ../../bin/unit
+  - cd ../regression
+  - chmod 755 run.py
+  - ./run.py
+  - echo "=========================================================="
+  - echo "REGRESSION TEST FAILS (results/run_regression_suite_failures.csv)"
+  - cat ../results/run_regression_suite_failures.csv
 

+ 4 - 1
test/regression/run.py

@@ -160,6 +160,10 @@ def process_dir(d, outfile_results, zipin, result):
             process_dir(fullpath, outfile_results, zipin, result)
             continue
 
+        if f in settings.files_to_ignore:
+            print("Ignoring " + f)
+            continue
+
         for pppreset in settings.pp_configs_to_test:
             filehash = utils.hashing(fullpath, pppreset)
             failure = False
@@ -258,6 +262,5 @@ def run_test():
 # -------------------------------------------------------------------------------
 if __name__ == "__main__":
     run_test()
-    input("Press any key to continue ...")
 
 # vim: ai ts=4 sts=4 et sw=4

+ 8 - 0
test/regression/settings.py

@@ -47,6 +47,14 @@ test scripts rely on this)
 
 import os
 
+# -------------------------------------------------------------------------------
+# Files to ignore (with reason)
+#
+# pond.0.ply - loads with 40k identical triangles, causing postprocessing
+# to have quadratic runtime.
+# -------------------------------------------------------------------------------
+files_to_ignore = ["pond.0.ply"]
+
 # -------------------------------------------------------------------------------
 # List of file extensions to be excluded from the regression suite
 # File extensions are case insensitive