summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Drop Autotools buildEmmanuele Bassi2018-04-301-215/+0
| | | | | | We use Meson, now. The Meson build has been tested for almost a year in our continuous integration pipeline, and it's functionally equivalent to the Autotools one.
* meson: Add option for installing testsEmmanuele Bassi2018-04-291-4/+6
| | | | | | Like the Autotools build allows us to decide whether the tests should be installed in a known location, we should have this option for the Meson build.
* meson: Install bug753605-atsize.jpgEmmanuele Bassi2018-04-251-0/+1
| | | | | Same as commit fc2d02ed908c524cc2831e5404d5f06b02e3f9fd, but for the Meson build.
* tests: distribute test file for bug 753605 testJeremy Bicha2018-04-251-0/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=795210
* meson: Install tests and test dataEmmanuele Bassi2018-04-251-61/+71
| | | | | | | | We're currently installing the test launchers and parts of the test data, but we're not installing the binaries and the whole suite of image data we have. https://bugzilla.gnome.org/show_bug.cgi?id=795527
* tests: Add test for bug 779016Bastien Nocera2017-12-051-0/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=779016
* tests: Add test for bug 753605Bastien Nocera2017-12-052-0/+23
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=753605
* tests: Add test for bug 778584Bastien Nocera2017-12-041-0/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=778584
* tests: Add test for CVE-2017-6312Bastien Nocera2017-11-301-0/+0
| | | | | | Provided by Ariel Zelivansky <ariel.zelivans@gmail.com> https://bugzilla.gnome.org/show_bug.cgi?id=779012
* tests: Fix read-only to mutable on FreeBSDBenoît Dejean2017-10-051-7/+7
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=786306
* tests: Add truncated GIF file with huge dimensionsBastien Nocera2017-09-191-0/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=785973
* tests: Bump timeouts for long-running testsBastien Nocera2017-09-191-1/+9
| | | | | | | | | | | The pixbuf-area-updated and pixbuf-randomly-modified tests are particularly taxing on the CPU, and though modern desktop machines shouldn't have a problem dealing with those under 30 seconds, tests are run in parallel, and busy build machines might fail those tests because of timeouts. Bump the timeouts to 300 seconds for those long tests to avoid test failures.
* tests: Replace non-free "lena" reference imageOlly Betts2017-09-194-0/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=787050
* tests: Add missing pixbuf-read test programBastien Nocera2017-09-191-0/+9
| | | | This is an interactive test program, not an automated one.
* tests: Allow a potential error to be shown before failingTobias Mueller2017-08-221-1/+4
| | | | | | | When the test fails, let's first give it the chance to print the error message in order to help debugging failures. https://bugzilla.gnome.org/show_bug.cgi?id=786259
* tests: Fix build on pre-C99Chun-wei Fan2017-08-171-3/+8
| | | | | | Ensure variables are declared at the top of the block. https://bugzilla.gnome.org/show_bug.cgi?id=785767
* build: Check for sys/time.hChun-wei Fan2017-08-171-0/+4
| | | | | | | | | sys/time.h is not a header that is provided by all compilers that we support, so we need to check for it and include it conditionally so that things will build normally, especially as Meson builds will build all the test programs as well. https://bugzilla.gnome.org/show_bug.cgi?id=785767
* meson: Use include_directories references throughoutJan Alexander Steffens (heftig)2017-08-131-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=785964
* Move all aux scripts to their own directoryEmmanuele Bassi2017-08-033-68/+0
| | | | This makes it easier to find them and reference them.
* tests: Add some assertions to check for zero-dimensioned imagesPhilip Withnall2017-08-031-10/+21
| | | | | | | | | | | This could happen if something in the test fails, so this allows early diagnosis of problems. It also hints to Coverity that the loops which follow can’t run (almost) infinitely due to the loop bounds being inverted. Coverity IDs: 1391987, 1399712 https://bugzilla.gnome.org/show_bug.cgi?id=778943
* meson: Support installed testsEmmanuele Bassi2017-08-022-1/+69
| | | | | We want to be able to run the gdk-pixbuf tests after installing them in a known system location, especially when running CI.
* Initial implementation of a Meson buildEmmanuele Bassi2017-08-012-0/+126
| | | | | | | | | | | | | | Meson is a better build system than Autotools that has gotten traction in the GNOME community. The build is pretty much equivalent between Autotools and Meson, but at this point it needs further testing to verify complete matching behaviour. The GDI-plus loaders are not currently built, as that will require access to a platform I don't have in order to test them. Additionally, the API reference is not being generated yet in Meson.
* tests: Unlink temporary filesEmmanuele Bassi2017-08-011-0/+5
| | | | Don't leave files behind.
* tests: Fix EXIF comment test in dist tarballsMart Raudsepp2017-07-281-0/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=780667
* tests: Add test for rowstride overflowTobias Mueller2017-07-281-0/+0
| | | | | | File created using afl. https://bugzilla.gnome.org/show_bug.cgi?id=777315
* tests: Add truncated (and broken) ICO fileBastien Nocera2017-07-271-0/+0
| | | | | | The loader should return an error in that case. https://bugzilla.gnome.org/show_bug.cgi?id=778204
* tests: Fix unused variable in CVE-2015-4491 testBastien Nocera2017-07-271-0/+1
|
* tests: Add grayscale JPEG testsBastien Nocera2017-07-272-0/+0
| | | | | | | Originally from the JPEG conformance tests: http://people.sc.fsu.edu/~jburkardt/data/jpg/jpg.html https://bugzilla.gnome.org/show_bug.cgi?id=785171
* tests: Fix CVE-2015-4491 testBastien Nocera2017-07-261-6/+2
| | | | | | The sanity checks for image dimensions have since been tightened in commit 4154d4f and we should not be able to open this huge image anymore as the dimensions exceed what's possible.
* tests: Add test case for ICO quality sorting bugBastien Nocera2017-07-262-0/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=785447
* tests: Add test for bug 776040Bastien Nocera2017-07-131-0/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=776040
* tests: added a test case for bug 776694Tobias Mueller2017-07-131-0/+0
| | | | | afl created a file which ASan complains about: io-bmp.c:475:63: runtime error: signed integer overflow: 524672 * 4096 cannot be represented in type 'int'
* tests: Added a file for bug 780269Tobias Mueller2017-07-131-0/+0
|
* tests: Add a test image for extra large dimensions in TIFF loaderBastien Nocera2017-07-131-0/+0
| | | | | | Overflow checks were added in commit 14904cb842. https://bugzilla.gnome.org/show_bug.cgi?id=784903
* tests: Added a test case for bug 784866Tobias Mueller2017-07-131-0/+0
|
* tests: Split off failing test into 2 separate testsBastien Nocera2017-07-131-7/+24
| | | | | | | | | One with the tiniest of buffers, one with the biggest one possible. This catches some crashes that weren't caught with the original "1 byte" buffers test. This makes it possible to reproduce the crasher in https://bugzilla.gnome.org/show_bug.cgi?id=784866
* tests: Disable running tests in parallelBastien Nocera2017-07-131-0/+2
| | | | | Some of the tests are _very_ memory intensive, so running two of them at the same time is probably ill-advised.
* jpeg: Add support for JPEG_COM EXIF tagPawel Piatek2017-03-152-0/+20
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=143608
* tests: Check that pixbufs are valid before comparing themPhilip Withnall2017-02-171-0/+5
| | | | | | | | | Assert that the pixbufs have non-negative dimensions before comparing them and potentially using one of the dimensions as a loop bound. Coverity IDs: 1399711, 1399712 https://bugzilla.gnome.org/show_bug.cgi?id=776990
* tests: Fix signed/unsigned handling in pixdata_equal()Philip Withnall2017-02-071-1/+5
| | | | | | | | | | The return values from the GdkPixbuf getters are signed, so assign them to signed variables and then check that the returned values are non-negative. Coverity IDs: 1388535, 1388536, 1388537 https://bugzilla.gnome.org/show_bug.cgi?id=777374
* tests: Add two-step scaler testMartin Guy2017-02-032-0/+342
| | | | | | | | Test the output of scaling functions to see whether optimisation/simplification to avoid huge memory and CPU usage is effective and does not regress. https://bugzilla.gnome.org/show_bug.cgi?id=80925
* tests: Move pixbuf creation helpers to test-common.[ch]Bastien Nocera2017-02-033-58/+60
| | | | | | Those will be used in the 2-step scaler tests. https://bugzilla.gnome.org/show_bug.cgi?id=80925
* tests: Fix possible infinite loopsBastien Nocera2017-01-091-10/+21
| | | | | | | | | | | In the unlikely case that the just created pixbuf is invalid, the returned sizes would be negative. Ensure that those are positive to avoid possible infinite loops. Coverity CID 1391987 Coverity CID 1391988 https://bugzilla.gnome.org/show_bug.cgi?id=776945
* tests: Add more animations to area-updated testBastien Nocera2016-12-291-0/+2
|
* tests: Add test case for bug 581484Bastien Nocera2016-12-293-0/+131
| | | | | | | | This time for the GIF animation. Adapted from Andrey Tsyvarev's original animation test program. https://bugzilla.gnome.org/show_bug.cgi?id=581484
* tests: Add test for bug 581484Bastien Nocera2016-12-292-0/+210
| | | | | | Adapted from Andrey Tsyvarev's original test program. https://bugzilla.gnome.org/show_bug.cgi?id=581484
* ico: Fix uninitialised alpha valuesBastien Nocera2016-12-292-0/+0
| | | | | | | | | | As we always create a GdkPixbuf with alpha, even if the original file doesn't have an alpha channel, or a mask, make sure to set the alpha pixel value in all cases, if only to have it overridden if there is a mask present. This makes it possible to use the reference test without having differing alpha values.
* tests: Fix non-sensical error in reftestBastien Nocera2016-12-291-4/+4
| | | | | | | | | The debug output was always printing the very first pixel of the line as both the reference and test data, leading to "useful" output like: Image data at 1x1 is #B16C42FF, but should be #B16C42FF Read the reference and test pixel values from the correct offset in the line to fix this.
* tests: Add failing test for bug 575217Bastien Nocera2016-12-281-0/+0
| | | | | | It currently errors out with "TGA image was truncated or incomplete". https://bugzilla.gnome.org/show_bug.cgi?id=575217
* tests: Add unsupported JPEG2000 fileBastien Nocera2016-12-281-0/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=685543