Commit Graph

28 Commits (master)

Author SHA1 Message Date
Mike Frysinger 00bbb69cc3 tests: add more checks for libpng (and other deps)
This fixes #382.
2017-02-23 17:31:41 -05:00
Christoph M. Becker 2fe471d5d4 Fix #299: Regression regarding gdImageRectangle() with gdImageSetThickness()
We remove the special casing for "point" rectangles with thick!=1 altogether,
and restrict the special casing for "line" rectangles to thick==1. We move
this necessary special casing (it fixes issue #172) towards the bottom of the
function like it is in PHP's bundled libgd.
2016-09-12 22:08:19 +02:00
Christoph M. Becker 4e8a94d36d Test and document gdImageRectangle
We're especially having a look at the point ordering issue, see
<https://github.com/libgd/libgd/issues/177>.
2016-09-12 14:33:17 +02: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
Mike Frysinger a995534042 tests: github_bug_00172: drop image output to source repo #172
The image isn't used anywhere, and we don't want to dirty the source tree.
2016-06-10 14:38:58 -04:00
Mike Frysinger cb1a50f7af gitignore: add missing entries #172 #218 2016-06-10 14:34:09 -04:00
Pierre Joye 45f16d0769 Merge branch 'GD-2.2'
* GD-2.2:
  fix #172 single line rectangle creates wriclers. Simplify test.

Conflicts:
	tests/gdimagerectangle/github_bug_00172.c
2016-06-09 10:56:18 +07:00
Pierre Joye 19788a221a fix #172 single line rectangle creates wriclers. Simplify test. 2016-06-09 10:50:30 +07:00
Christoph M. Becker d218b142dc fix tests to let `make check` compile
As it was, Werror=unused-but-set-variable and Werror=unused-variable
caused the test build to fail.  This affects only master (not GD-2.2).
Also there have been no problems with ctest.
2016-06-08 19:13:45 +02:00
Christoph M. Becker 329f552c42 fix infallible test
Now the test fails here.  Have to check back with @pierrejoye, because
he couldn't reproduce the issue, see #172.
2016-06-08 17:41:34 +02:00
Pierre Joye 222980018f fix #172 not really anything to fix as it works as expected, adding test to avoid future bugs 2016-06-08 17:09:15 +07: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
Nathanael Jones b52b9c5579 Upgrade to long-syntax CMAKE add_test command to improve cross-platform compatibility. 2015-01-07 01:39:10 -05:00
Ondřej Surý ac6222f945 Merge outstanding autotools changes 2013-04-08 09:12:06 +02:00
pierrejoye e20413bf6b - apply same CS everywhere 2013-04-03 14:23:11 +02:00
Takeshi Abe 63da42ea82 GDTESTS_TARGET_LINK is just gdTest 2013-02-22 11:20:30 +09:00
Takeshi Abe cc44404e5b fix CMake warning: "Policy CMP0002 is not set: Logical target names must be globally unique."
--HG--
rename : tests/gdimagefilledrectangle/bug00106.c => tests/gdimagefilledrectangle/bug00106_gdimagefilledrectangle.c
rename : tests/gdimagerectangle/bug00106.c => tests/gdimagerectangle/bug00106_gdimagerectangle.c
2013-02-21 22:48:19 +09:00
tabe c18dfcd3cd fix -Wunused-variable 2013-02-11 11:41:52 +09:00
tabe e428d819b7 drop obsolete .cvsignore 2013-02-07 14:33:54 +09:00
tabe f8c54a6fd4 get a test executable' location from its target property. 2009-01-07 15:12:31 +00:00
tabe be219b1a8b revert to the previous revision, as EXECUTABLE_OUTPUT_PATH enabled again. 2009-01-06 15:45:49 +00:00
tabe e4c8a57338 fixed the executable paths. 2009-01-04 10:28:36 +00:00
pajoye 3ea7765187 - add Makefile.am (to be packaged when used with auto*) 2008-05-10 20:19:28 +00:00
pajoye b406d91158 - fix tests running under MinGW
- jpeg and freetpye (2.3.5) compiled under mingw seems to behaves differently.
    jpeg_read and freetype/bug00132 tests fail. I will have to investigate later
2008-04-18 14:32:10 +00:00
pajoye 9bf4f83bf3 - mv src/tests tests 2007-10-02 09:01:53 +00:00