mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-28 15:20:15 +00:00
aeeef8e255
This patch solves several problems introducing the possibility to specify a row stride bigger than the width (visible pixels) on each image row. Useful in case that we want to align the initial pixel address of each row (if DOC_USE_ALIGNED_PIXELS is defined). This allows us to use some SIMD intrinsics (e.g. SSE2) for some image functions in the future (right now implemented only in the new is_same_image_simd_templ() for is_same_image()). Anyway to avoid breaking some existing code, by default we'll still keep the old behavior: row stride bytes = width bytes (so DOC_USE_ALIGNED_PIXELS is undefined). |
||
---|---|---|
.. | ||
cli | ||
scripts | ||
sprites | ||
LICENSE.txt | ||
README.md | ||
run-tests.sh |
Aseprite Tests
Test suite for Aseprite to avoid breaking backward compatibility.
This directory is cloned by the build.yml action to run several automated tests after Aseprite is compiled:
- Save/load file formats correctly. For this we have
.aseprite
,.png
,.gif
, etc. files sprites folder. - Test backward compatibility with Aseprite CLI options
- Future scripting API using scripts
How to run tests?
You have to set the ASEPRITE
environment variable pointing to the
Aseprite executable and then run run-tests.sh
from Bash:
export ASEPRITE=$HOME/your-aseprite-build/bin/aseprite
cd tests
bash run-tests.sh
You can filter some tests with a regex giving a parameter to
run-tests.sh
, for example:
run-tests.sh color
Should run all tests which have the color
word in their name.