]> git.draconx.ca Git - liblbx.git/commit
tests: Zero out transparent pixels before calculating digest.
authorNick Bowler <nbowler@draconx.ca>
Thu, 23 Jan 2014 01:12:02 +0000 (20:12 -0500)
committerNick Bowler <nbowler@draconx.ca>
Thu, 23 Jan 2014 03:12:18 +0000 (22:12 -0500)
commitd1c92ce9f559ece233cb82425d634bf6484aff2f
tree3fba84db5e5d78e61f6a9564a000cc86ed9e255f
parentabebb179629944e7c956857be2f6d6705fb33309
tests: Zero out transparent pixels before calculating digest.

The colour value of transparent pixels is irrelevant from a correctness
perspective, but we are nevertheless including that information in the
tests.  While we could zero out the values in the PAM output code it's
better to make the tests more robust.

This adds an external dependency on netpbm's pamarith and pamchannel
tools for the test suite.  Restructure the tests so that these tools
are optional.  If the tools are not available (or not working) then we
must accept the fact that images with an alpha channel may have false
negatives (but not false positives) -- record a SKIP result for an MD5
mismatch in that case.
configure.ac
tests/util/test-defs.sh.in
tests/util/test-init.sh