summaryrefslogtreecommitdiff
path: root/tests/gdimageline
Commit message (Collapse)AuthorAgeFilesLines
* tests/gdimageline/gdimageline_bug5: add im null judgement (#624)wilson chen2020-05-201-0/+6
| | | gdImageCreate returns NULL in gdimageline_bug5.c on AIX, which make the judgement necessary in case of segment fault.
* CMakeLists.txt: Exclude libm dependency under winwillson-chen2019-10-261-1/+1
| | | | * CMakeLists.txt: Exclude libm dependency under win * CMakeLists.txt: Move win32/m logic into cmake/modules/gd.cmake
* convert all files to native line encodingsMike Frysinger2018-06-211-39/+37
| | | | | | A bunch of these files were committed with Windows line encodings. Strip all those ^M gremlins out as people working on Windows can use git's autocrlf setting to convert back and forth as needed.
* tests: sync feature enable lists in cmake files #382Mike Frysinger2017-02-151-3/+9
|
* Add overlooked tests for cmake build chainChristoph M. Becker2016-10-011-0/+2
| | | | | These tests are exercised by the autotools build chain, but have been omitted for the cmake build chain for no good reason.
* Fix #315: Single-point gdImageAALine() is invisibleChristoph M. Becker2016-10-015-0/+43
| | | | | We're treating a single-pointed gdImageAALine() as we treat vertical and horizontal gdImageAALines(); namely, we draw it non-antialiased.
* Remove useless SVN IdsChristoph M. Becker2016-07-151-2/+0
|
* Partially implement #220: tests: replace all printf error messages with ↵Christoph M. Becker2016-07-151-2/+2
| | | | gdTestErrorMsg
* Remove unused argc/argv parameters from main() in testsChristoph M. Becker2016-07-131-1/+1
|
* tests: cmake: switch to list appendingMike Frysinger2016-06-151-1/+1
| | | | | | 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.
* Fix #167: Styled thick horizontal lines are scrambledChristoph M. Becker2016-06-154-2/+80
| | | | | | | | | | Thick lines are drawn by gdImageFilledRectangle(), which iterates over the x ordinate first (Z order) to apply the style pattern. While this works fine for vertical and diagonal lines, it obviously fails for horizontal lines, which have to be iterated over in N order. To fix this bug, we introduce the helpers gdImageFilled(H|V)Rectangle(), which may be reused for other purposes as well.
* tests: add helpers for accessing test dataMike Frysinger2016-06-155-48/+15
| | | | | | | | | | | | | A lot of tests want to read images/fonts that exist in tests/ for reading. Rather than construct these paths by hand in every single test file, add a few helper functions to quickly access them. The helper functions are slightly slower (due to the repeated calls to the strcat func), but they aren't terribly slow, especially relative to image loading that these tests perform. They also make writing/maintaining the tests a lot easier which is more important here. Fixes #231.
* tests: fix leaks in test codeDavid Drysdale2016-05-011-0/+1
| | | | | Ensure all images etc. are freed so that we can enable leak checking across the tests and not get any false positives.
* tests: gd2: add general read test helpers #208Mike Frysinger2016-04-301-2/+2
| | | | | | | | | 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.
* tests: split up makefile entriesMike Frysinger2016-04-301-0/+27
| | | | | This matches what we've done with cmake files, and it makes managing the subdirs much easier.
* tests: unify cmake test code into a single macroMike Frysinger2016-04-301-5/+1
| | | | | | | | | 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.
* tests: gdimageline: add missing -lm linkageMike Frysinger2016-04-301-1/+1
|
* gitignore: split up test entriesMike Frysinger2016-04-301-0/+7
| | | | | This makes it easier to keep track of things. The single toplevel list can make it hard to notice when something is stale.
* Upgrade to long-syntax CMAKE add_test command to improve cross-platform ↵Nathanael Jones2015-01-071-2/+1
| | | | compatibility.
* Bug fix: tests didn't (always) return a valid status.Chris Reuter2013-11-082-8/+25
| | | | | | | | gdImageAALine_thickness.c didn't explicitly return 0 on success. gdimageline_bug5.c was not an actual test at all. It now confirms that the tested operation (a line draw) alters the image it draws on. (Not ideal but better than what it did before.)
* Add test for gdImageAALine thickness greater than 1Ondřej Surý2013-06-072-0/+28
|
* Add test for bitbucket issue #5Ondřej Surý2013-06-071-0/+39
|
* Fix warning: C++ style comments are not allowed in ISO C90 [enabled by default]Ondřej Surý2013-05-221-1/+1
|
* fix buildPierre Joye2013-05-031-0/+3
|
* Debug output improvements in gdimageline/gdimageline_aa.c and jpeg/jpeg_read.cOndřej Surý2013-04-261-9/+9
|
* refresh images used by tests, fix gdimageline_aa testRemi Collet2013-04-222-0/+0
|
* Merge outstanding autotools changesOndřej Surý2013-04-081-4/+0
|
* - apply same CS everywherepierrejoye2013-04-035-27/+27
|
* GDTESTS_TARGET_LINK is just gdTestTakeshi Abe2013-02-221-1/+1
|
* fix -Wimplicit-function-declarationtabe2013-02-154-4/+4
|
* fix -Wunused-variabletabe2013-02-115-11/+1
|
* drop obsolete .cvsignoretabe2013-02-071-9/+0
|
* get a test executable' location from its target property.tabe2009-01-071-1/+2
|
* revert to the previous revision, as EXECUTABLE_OUTPUT_PATH enabled again.tabe2009-01-061-1/+1
|
* fixed the executable paths.tabe2009-01-041-1/+1
|
* - add Makefile.am (to be packaged when used with auto*)pajoye2008-05-101-0/+4
|
* - fix tests running under MinGWpajoye2008-04-181-1/+1
| | | | | - 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
* - #111, add test casepajoye2007-11-213-0/+36
|
* - mv src/tests testspajoye2007-10-0216-0/+189