summaryrefslogtreecommitdiff
path: root/tests/test-common.h
Commit message (Collapse)AuthorAgeFilesLines
* tests: Don't depend on mime type detection without GDK_PIXBUF_USE_GIO_MIMEChristoph Reiter2018-12-111-0/+1
| | | | | | | When building without GDK_PIXBUF_USE_GIO_MIME detect the format based on the fill extension and not the mime type. This makes these tests pass on Windows.
* tests: Move pixbuf creation helpers to test-common.[ch]Bastien Nocera2017-02-031-0/+2
| | | | | | Those will be used in the 2-step scaler tests. https://bugzilla.gnome.org/show_bug.cgi?id=80925
* tests: Skip reftests for unsupported formatsBenjamin Otte2015-10-131-0/+1
|
* tests: Make add_test_for_all_images() GFile basedBenjamin Otte2015-10-131-2/+3
| | | | | Use that to make pixbuf-reftest accept arguments on the command line to specify a file to test.
* tests: Allow passing a filter function when adding all filesBenjamin Otte2015-10-131-1/+4
| | | | ... and use it to not add reference images.
* test-common: Rename function argumentsBenjamin Otte2015-10-131-1/+1
| | | | | Instead of p1 and p2, name the arguments "test" and "ref". This makes the arguments more meaningful and easier to distinguish.
* Add a helper to run tests over directoriesMatthias Clasen2015-10-131-0/+4
| | | | | This helper function recursively runs over a directory and adds a test function for each file in the tree.
* Skip tests when we can't run them due to lack of memoryIain Lane2015-09-221-0/+1
| | | | | | | Check if we have failed due to insufficient memory and skip if so. https://bugzilla.gnome.org/show_bug.cgi?id=754387
* tests: Add error reporting to pixdata_equal()Bastien Nocera2014-11-181-1/+1
|
* tests: Move pixdata_equal() to helpersBastien Nocera2014-11-181-0/+2
|
* Make testsuite robust against disabled formatsMatthias Clasen2014-01-251-0/+33
Skip tests if their file format is not supported by the available loaders. https://bugzilla.gnome.org/show_bug.cgi?id=722651