blender-test-data/auto
2024-03-19 14:08:14 +11:00
..
reference_renders Initial commit of files from blender-3.3-release 2024-02-22 11:11:23 +01:00
readme.txt Initial commit of files from blender-3.3-release 2024-02-22 11:11:23 +01:00
render_test_files.py Cleanup: run autopep8 on Python scripts 2024-03-19 14:08:14 +11:00
test_config.py Cleanup: run autopep8 on Python scripts 2024-03-19 14:08:14 +11:00
test_run.py License headers: add SPDX copyright & identifiers to headers 2024-03-19 14:07:59 +11:00
test_utils.py Cleanup: run autopep8 on Python scripts 2024-03-19 14:08:14 +11:00

Auto Render Regression suite
==================================

Running
==================================

./blender -b -P /path/to/tests/auto/render_test_files.py

If desired the blender executable path can be set in test_config.py to
run the script outside of Blender with:

python render_test_files.py

Results
==================================

It saves all renders and additional info into tests/auto/test_renders
The reference renders are in tests/auto/reference_renders

Comparisons
==================================

Manual comparison is possible, easier is to use automatic comparsion with
OpenImageIO installed. If it's in PATH then it will be found automatically,
otherwise the path can be set in test_config.py.

For comparing two Blender versions, you can run the tests with old version,
copy the .png files from test_renders to reference_renders and then run the
tests with the newer version.

Notes
==================================

* test_run.py is executed for each .blend file.
* The script renders every cycles file twice on the CPU (SVM and OSL).