mirror of
https://git.asonix.dog/asonix/pict-rs.git
synced 2025-04-17 13:44:08 +00:00
These new tests each spin up their own instance of pict-rs. This allows for configuring pict-rs differently depending on the test that needs to be run. It also opens the possibility of writing tests with object storage and postgres requirements in the future. So far there's pretty minimal test coverage. Just uploading, downloading, deleting, and checking validation errors for images and animations. In the future, tests need to be added for videos, many variations of the process endpoint, and the admin endpoints. The new tests are locked behind a configuration option (not a feature) called `system_deps`. They can be enabled by passing `RUSTFLAGS='--cfg system_deps'` This is to prevent tests from running and failing in environments where the exiftool, imagemagick, and ffmpeg binaries are not present. This builds imagemagick from source for a few reasons 1. binaries for imagemagick 7 are not available for debian 12 2. the imagemagick appimage does not support avif files 3. the imagemagick appimage is limited to x86_64 |
||
---|---|---|
.. | ||
bash | ||
html | ||
javascript | ||
python | ||
awoo.webp | ||
cat.jpg | ||
earth.avif | ||
earth.gif | ||
scene.webp | ||
test.png |