Commit graph

7 commits

Author SHA1 Message Date
asonix
a71812930e Add tests with system deps
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
2025-03-28 10:30:03 -05:00
Aode (lion)
82b7caf60e bash example: Add more duplicate uploads 2022-04-03 12:55:16 -05:00
Aode (lion)
044d24c92d Add bash client example for testing backgrounded operations 2022-04-03 12:53:14 -05:00
asonix
6dab3b30e8 Purge image 2020-06-16 18:13:22 -05:00
asonix
df85faff8b Start work on webp support 2020-06-16 15:55:24 -05:00
asonix
6de89a3318 Don't use image crate to validate gifs 2020-06-11 11:46:00 -05:00
asonix
1ecb6e552b Add folder for client examples 2020-06-10 09:07:14 -05:00