This reuses the Cycles regression test code to also work for OpenGL UI drawing.
We launch Blender with a bunch of .blend files, take a screenshot and compare
it with a reference screenshot, and generate a HMTL report showing the failed
tests and their differences.
For Cycles we keep small reference renders to compare to in svn, but for OpenGL
UI drawing this seems impractical. The results are quite platform dependent, and
even if they weren't maintaining the reference images may take too much time.
Still, I think this is useful for developers that specifically work on OpenGL
drawing to use during development. The steps to set it up are:
- Set WITH_OPENGL_DRAW_TESTS=ON in cmake.
- Run BLENDER_TEST_UPDATE=1 ctest -R opengl_draw
- .. make code changes ..
- Run ctest -R opengl_draw and open build_dir/tests/opengl_draw/report.html
This renames test environment variables from CYCLESTEST_* to BLENDER_TEST_*,
which then work for both Cycles and OpenGL drawing tests. WITH_OPENGL_TESTS
is now WITH_OPENGL_RENDER_TESTS.
This should also replace the OpenGL regression testing script that probably
no one except me ever used:
https://wiki.blender.org/index.php/Dev:2.8/Source/OpenGL#Automated_Testing
