Commit 204e95f5 authored by Paride Legovini's avatar Paride Legovini

Add an autopkgtest: roundtrip

parent c6cf8a4e
......@@ -3,6 +3,7 @@ farbfeld (4-2) UNRELEASED; urgency=medium
* Change the package short description to match what upstream suggests
* farbfeld 4 is entirely ISC licensed, d/copyright updated accordingly
* Override PREFIX in d/rules instead of patching
* Add an autopkgtest: roundtrip
-- Paride Legovini <> Thu, 12 Apr 2018 07:29:02 +0000
Tests: roundtrip
Depends: @, imagemagick
set -e
convert -size 1920x1200 xc: +noise random reference.png
png2ff < reference.png | ff2png > test.png
# When no fuzz value is specified, compare(1) returns 0 when two images are
# identical, and 1 when they differ. This is true with any metric (even with
# the default metric: the normalized cross correlation), but let's use the
# simplest one, Absolute Error, which counts the number of different pixels.
compare -metric AE reference.png test.png null: 2>&1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment