summaryrefslogtreecommitdiff
path: root/tests/gd
Commit message (Collapse)AuthorAgeFilesLines
* tests: Correct some test depend errorswilson chen2020-01-022-10/+1
|
* clean up trailing whitespace/newlinesMike Frysinger2018-06-211-2/+2
| | | | | This is preparation for adding some linting checks for new commits from people. Shouldn't be any functional changes here (tests still pass!).
* Fix dist build (*cough*)Christoph M. Becker2018-02-031-1/+1
|
* Fix dist buildChristoph M. Becker2018-02-031-1/+2
|
* Fix #383 (amendment)Christoph M. Becker2018-02-035-0/+35
| | | | | | | | When reading images in GD or GD2 format, we have to ensure that the transparent color is not set, if it would refer to a non-extant palette entry. We back that up with respective regression tests.
* make gd/gd2 image formats optional #428Mike Frysinger2018-01-302-3/+12
| | | | | We still enable them by default, but we'll probably flip them off in the next major release series.
* tests: sync feature enable lists in cmake files #382Mike Frysinger2017-02-151-1/+6
|
* Partially implement #220: tests: replace all printf error messages with ↵Christoph M. Becker2016-07-151-5/+5
| | | | gdTestErrorMsg
* 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.
* tests: add helpers for accessing test dataMike Frysinger2016-06-031-9/+1
| | | | | | | | | | | 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.
* tests: rework handling of temp output filesMike Frysinger2016-05-171-7/+3
| | | | | | | | | Many of the tests open files in local paths for writing which leaves a variety of temp files in the tests subdirs. This ends up failing in a few scenarios like out of tree builds or cmake builds. Add a few helper functions to the common gdtest module to quickly get handles to temp files for the tests to leverage.
* 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/+13
| | | | | 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-6/+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.
* gitignore: split up test entriesMike Frysinger2016-04-301-0/+4
| | | | | This makes it easier to keep track of things. The single toplevel list can make it hard to notice when something is stale.
* Use sprintf instead of snprintf to be C89 compliant.Nathanael Jones2015-01-071-1/+1
|
* Upgrade to long-syntax CMAKE add_test command to improve cross-platform ↵Nathanael Jones2015-01-071-2/+1
| | | | compatibility.
* Added new files to CMakeLists.txt.Chris Reuter2013-11-071-0/+1
| | | | | | Added new sources and tests to the relevant CMakeLists.txt files. NOTE: This works for me but I am not a cmake expert.
* Test case for new version code.Chris Reuter2013-11-071-0/+21
| | | | This adds a simple test of the version API functions.
* Merge outstanding autotools changesOndřej Surý2013-04-081-3/+0
|
* - apply same CS everywherepierrejoye2013-04-031-2/+2
|
* search GD headers locally at firstTakeshi Abe2013-03-013-3/+3
| | | | at least for gcc's cpp: http://gcc.gnu.org/onlinedocs/cpp/Search-Path.html
* GDTESTS_TARGET_LINK is just gdTestTakeshi Abe2013-02-221-1/+1
|
* fix ported from php r289557tabe2009-11-104-1/+26
| | | | - check max colors while loading gd palette image (patch by Tomas Hoger)
* fixed possible segfaults when gdNewDynamicCtx() returns nulltabe2009-06-253-1/+68
|
* fix for FS#204tabe2009-06-183-0/+28
* gdImageCreateFrom*() returns null if null pointer given * gdImage*() puts nothing if null pointer given