Need to bump up the timeout on one of the tests as the default ctest
behavior is to timeout after a few seconds. We really should fix this
test to be faster though.
This makes it a bit cleaner when dealing with optional tests as we
use the LIST(APPEND...) command everywhere instead of sometimes SET
and sometimes LIST.
Since we have random files we want to read & check, turn the two
read programs into general tools. Then we have shell scripts to
run against the right inputs.
Most of the changes here are just shuffling variable names so we
can add to check_PROGRAMS independently of TESTS.
This makes the test code a lot easier to manage rather than copying &
pasting the same boiler plate multiple times.
Also take the opportunity to add a common prefix to each test name so
we don't get collisions between subdirs if a test happens to use the
same exact name.
Creates and shrinks a bunch of images using gdImageScale(), once per
mode in both palette and truecolor. It does not use GD_DEFAULT (which
is equivalent to one of the others) or GD_WEIGHTED4 (unsupported for
scaling).
Note that this test does not check if the resulting image looks anything
like the source.
This testcase does some basic resizing using bicubic
interpolation and ensures the result is sane. It does
not verify image quality, just that the functions return
acceptible values.