summaryrefslogtreecommitdiff
path: root/tests/gdimagefile
Commit message (Collapse)AuthorAgeFilesLines
* Fixed test case build configure error in issue #626wilson chen2020-04-131-1/+3
|
* convert all files to native line encodingsMike Frysinger2018-06-211-120/+116
| | | | | | 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.
* make gd/gd2 image formats optional #428Mike Frysinger2018-01-301-0/+2
| | | | | We still enable them by default, but we'll probably flip them off in the next major release series.
* tests: add more checks for libpng (and other deps)Mike Frysinger2017-02-232-0/+8
| | | | This fixes #382.
* No need to skip these formats anmoreChristoph M. Becker2017-01-251-7/+4
|
* Fix and improve assert messages of the test caseChristoph M. Becker2017-01-201-4/+6
|
* tests: fix gdTestAssertMsg handling of messages w/out format flagsMike Frysinger2016-07-221-2/+2
| | | | | If the message doesn't contain any format flags (e.g. %s), don't force the caller to pass in a dummy arg to make the compiler happy.
* tests: drop test_config.hMike Frysinger2016-07-211-1/+0
| | | | | | | | | | This header provides a single define: GDTEST_TOP_DIR. Move it to the build CPPFLAGS instead since it's a path var and that's the recommended way of handling these (by autotools standards), and it simplifies the build overall. It also harmonizes the autotool & cmake build paths. We localize this define to the gdtest/ subdir as we don't want any of the other tests using the path. We have gdtest helpers instead.
* revert as it breaks tests, need a gdTestMessage without failure counter increasePierre Joye2016-07-171-1/+1
|
* use test apiPierre Joye2016-07-171-4/+1
|
* Remove unused argc/argv parameters from main() in testsChristoph M. Becker2016-07-131-1/+1
|
* #249, fix use of given temporary file name to be created in the tmpdir on ↵Pierre Joye2016-07-121-1/+1
| | | | windows
* 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-3/+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.
* Initialize full_filename in tests/gdimagefile/gdnametest.cOndřej Surý2016-05-201-1/+1
|
* tests: rework handling of temp output filesMike Frysinger2016-05-172-16/+11
| | | | | | | | | 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-1/+1
| | | | | | | | | 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/+8
| | | | | 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/+2
| | | | | | | | | 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: add missing cmake files gdimagefile/gdimagefilterMike Frysinger2016-04-301-0/+9
|
* gitignore: split up test entriesMike Frysinger2016-04-301-0/+2
| | | | | This makes it easier to keep track of things. The single toplevel list can make it hard to notice when something is stale.
* tests: fix header inclusionMike Frysinger2015-02-281-1/+2
| | | | | | | | | | gdnametest uses string funcs, so pull in string.h. It also can't pull in test_config.h directly as it breaks when building out of tree. Use the -I paths to find it. bug00111 uses unlink(), so pull in unistd.h URL: https://bugs.gentoo.org/540376
* Remove uneeded includes introduced in earlier version-local commits.Nathanael Jones2015-01-071-0/+1
|
* use / in image patchRemi Collet2014-12-251-1/+1
|
* Add gdTestAssertMsg(condition, formatmessage, variables) to support detailed ↵Nathanael Jones2014-10-021-5/+20
| | | | | | | failure messages. Improve error reporting and diagnostics in gdimagefile test. Fix 'max' definition conflict on some compilers.
* Added gdImageFile(), gdImageCreateFromFile() and gdSupportsFileType().Chris Reuter2013-12-164-0/+248
These are convenience functions which load or save image data to a file. They are roughly equivalent to opening a file handle with fopen() and calling gdImageCreateFrom*() or gdImage*() on the FILE pointer. However, these functions identify the input or output format from the filename suffix and call the appropriate read or write function accordingly. gdSupportsFileType() can be used to test if a specific file format is supported. Most scripting interfaces already do something like this but now there's support for doing it from C as well. This change also adds test cases for the code and naturaldocs documentation.