Add simple autotests

Two main tests: read the file and compare to a given image (loaded from
png), and write a file out and compare to a previously-written image.

The write test in particular is kind of fragile, but it should help
catch some errors where a code change was not intended to affect the
output of the plugin.

Tests are included for all the writable formats, as well as every
readable format that GIMP can write to (and so I could easily get an
example of).

REVIEW: 115430
This commit is contained in:
Alex Merry
2014-02-01 17:50:15 +00:00
parent 32f7d48b3c
commit f0f6d14367
95 changed files with 2520 additions and 2 deletions

View File

@ -2,8 +2,6 @@ add_definitions(-DPLUGIN_DIR="${CMAKE_CURRENT_BINARY_DIR}/../src")
include(ECMMarkAsTest)
find_package(Qt5 5.2.0 CONFIG REQUIRED Test Gui)
macro(kimageformats_executable_tests)
foreach(_testname ${ARGN})
add_executable(${_testname} ${_testname}.cpp)