Commit Graph

17 Commits (master)

Author SHA1 Message Date
Pierre Joye fd680a4b99 let see which one failed here 2021-08-20 14:51:58 +07:00
Christoph M. Becker 7ae5b15d7d Remove unused argc/argv parameters from main() in tests 2016-07-13 02:20:38 +02:00
Christoph M. Becker 68b3f6b8b2 Fix #234: gdinterpolatedscale/gdTrivialResize is too slow
It should be sufficient to use GD_BILINEAR_FIXED and to test with a smaller
image.
2016-06-21 01:11:40 +02:00
Mike Frysinger 5c4e3d68af tests: cmake: add gdinterpolatedscale
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.
2016-06-15 15:12:04 -04:00
Mike Frysinger 3bb6aac422 tests: cmake: switch to list appending
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.
2016-06-15 15:02:13 -04:00
Pierre Joye 2da8294ff4 WS 2016-06-15 09:33:49 +07:00
Pierre Joye 08813081e2 #230 fix crash on fail 2016-06-15 09:30:07 +07:00
Mike Frysinger 75c38f6b32 fix various gcc/clang warnings found with -Wall 2016-05-13 22:19:26 -04:00
David Drysdale 05d70f6a07 tests: fix leaks in test code
Ensure all images etc. are freed so that we can enable leak checking
across the tests and not get any false positives.
2016-05-01 01:45:48 -04:00
Mike Frysinger 0315e441ec tests: gd2: add general read test helpers #208
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.
2016-04-30 21:52:45 -04:00
Mike Frysinger 613e8c93e3 tests: split up makefile entries
This matches what we've done with cmake files, and it makes managing
the subdirs much easier.
2016-04-30 21:02:45 -04:00
Mike Frysinger adc8598dcb tests: unify cmake test code into a single macro
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.
2016-04-30 21:02:45 -04:00
Mike Frysinger 4c6a07b263 gitignore: split up test entries
This makes it easier to keep track of things.  The single toplevel list
can make it hard to notice when something is stale.
2016-04-30 13:56:19 -04:00
Pierre Joye 358950cc77 remove this test, too big 2015-01-19 06:59:44 +01:00
Pierre Joye 5c48b49ecf fix #91, actually add tests, bug already fixed 2015-01-19 06:56:42 +01:00
Chris Reuter f321961a3c Added test case to exercise all of the gdImageScale() modes.
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.
2013-10-22 21:22:35 -04:00
Chris Reuter 16ed1a9a97 Added a test case for gdImageScaleTwoPass().
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.
2013-10-09 21:28:20 -04:00