1. Cleaned up the testsuite main script and made the appropriate fixes so that the tests run properly when using the Visual Studio generators.
2. Removed the external commands for comparing non-image files and replaced them by pure Python versions using the ```difflib``` (for text files) and ```filecmp``` modules. When the text files are different the script will write a unified diff file in the corresponding test directory under the build tree. This was tested under Windows/MSVC and Linux/gcc using Python 2.7. I think the new Python code should be backwards compatible with version 2.5. You can merge this Pull Request by running: git pull https://github.com/edgarv/oiio edgarv-testsuite Or you can view, comment on it, or merge it online at: https://github.com/OpenImageIO/oiio/pull/280 -- Commit Summary -- * Use the executable target name in add_test instead of an absolute executable path. * Cleaned up the main testsuite script and re-enable the tests to run from the MSVC IDE. * Compare text files using the Python difflib module instead of an external process. * Compare all other binary files using the Python module filecmp instead of an external process. -- File Changes -- M src/cmake/oiio_macros.cmake (4) M src/libOpenImageIO/CMakeLists.txt (18) M testsuite/runtest.py (125) -- Patch Links -- https://github.com/OpenImageIO/oiio/pull/280.patch https://github.com/OpenImageIO/oiio/pull/280.diff --- Reply to this email directly or view it on GitHub: https://github.com/OpenImageIO/oiio/pull/280 _______________________________________________ Oiio-dev mailing list [email protected] http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
