Merge pull request #361 from assimp/travis
Travis - Add regression suite to CI buildpull/392/head^2
commit
a51a0b36f0
10
.travis.yml
10
.travis.yml
|
@ -1,5 +1,5 @@
|
||||||
before_install:
|
before_install:
|
||||||
- sudo apt-get install cmake libcppunit-dev
|
- sudo apt-get install cmake libcppunit-dev python3
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- TRAVIS_NO_EXPORT=YES
|
- TRAVIS_NO_EXPORT=YES
|
||||||
|
@ -16,6 +16,14 @@ compiler:
|
||||||
script:
|
script:
|
||||||
- cmake -G "Unix Makefiles" -DASSIMP_ENABLE_BOOST_WORKAROUND=YES -DASSIMP_NO_EXPORT=$TRAVIS_NO_EXPORT -STATIC_BUILD=$TRAVIS_STATIC_BUILD
|
- cmake -G "Unix Makefiles" -DASSIMP_ENABLE_BOOST_WORKAROUND=YES -DASSIMP_NO_EXPORT=$TRAVIS_NO_EXPORT -STATIC_BUILD=$TRAVIS_STATIC_BUILD
|
||||||
- make
|
- make
|
||||||
|
- sudo make install
|
||||||
|
- sudo ldconfig
|
||||||
- cd test/unit
|
- cd test/unit
|
||||||
- ../../bin/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
|
||||||
|
|
||||||
|
|
|
@ -160,6 +160,10 @@ def process_dir(d, outfile_results, zipin, result):
|
||||||
process_dir(fullpath, outfile_results, zipin, result)
|
process_dir(fullpath, outfile_results, zipin, result)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
if f in settings.files_to_ignore:
|
||||||
|
print("Ignoring " + f)
|
||||||
|
continue
|
||||||
|
|
||||||
for pppreset in settings.pp_configs_to_test:
|
for pppreset in settings.pp_configs_to_test:
|
||||||
filehash = utils.hashing(fullpath, pppreset)
|
filehash = utils.hashing(fullpath, pppreset)
|
||||||
failure = False
|
failure = False
|
||||||
|
@ -258,6 +262,5 @@ def run_test():
|
||||||
# -------------------------------------------------------------------------------
|
# -------------------------------------------------------------------------------
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
run_test()
|
run_test()
|
||||||
input("Press any key to continue ...")
|
|
||||||
|
|
||||||
# vim: ai ts=4 sts=4 et sw=4
|
# vim: ai ts=4 sts=4 et sw=4
|
||||||
|
|
|
@ -47,6 +47,14 @@ test scripts rely on this)
|
||||||
|
|
||||||
import os
|
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
|
# List of file extensions to be excluded from the regression suite
|
||||||
# File extensions are case insensitive
|
# File extensions are case insensitive
|
||||||
|
|
Loading…
Reference in New Issue