| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
This is preparation for adding some linting checks for new commits from
people. Shouldn't be any functional changes here (tests still pass!).
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
We still enable them by default, but we'll probably flip them off
in the next major release series.
|
| |
|
|
|
|
| |
gdTestErrorMsg
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
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 matches what we've done with cmake files, and it makes managing
the subdirs much easier.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
This makes it easier to keep track of things. The single toplevel list
can make it hard to notice when something is stale.
|
| |
|
|
|
|
| |
compatibility.
|
|
|
|
|
|
| |
Added new sources and tests to the relevant CMakeLists.txt files.
NOTE: This works for me but I am not a cmake expert.
|
|
|
|
| |
This adds a simple test of the version API functions.
|
| |
|
| |
|
|
|
|
| |
at least for gcc's cpp: http://gcc.gnu.org/onlinedocs/cpp/Search-Path.html
|
| |
|
|
|
|
| |
- check max colors while loading gd palette image (patch by Tomas Hoger)
|
| |
|
|
* gdImageCreateFrom*() returns null if null pointer given
* gdImage*() puts nothing if null pointer given
|