summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gmail.com>2018-06-01 17:47:13 +0000
committerEmmanuele Bassi <ebassi@gmail.com>2018-06-01 17:47:13 +0000
commit5ec6746e86faa3ebdebd170e8edcc70978868556 (patch)
treef36dc7bbce57c747238465b8c0da391d1f968ff2 /tests
parent092ae114f2cf1f39759d59d0f5ea7c71cd0e4d30 (diff)
parent55bd2805833e510c8aada7a35af6ec125c819abb (diff)
downloadgdk-pixbuf-5ec6746e86faa3ebdebd170e8edcc70978868556.tar.gz
Merge branch 'ci-test' into 'master'
Run the test suite on the CI pipeline See merge request GNOME/gdk-pixbuf!7
Diffstat (limited to 'tests')
-rw-r--r--tests/meson.build55
1 files changed, 33 insertions, 22 deletions
diff --git a/tests/meson.build b/tests/meson.build
index e134c3290..6b0cb2b02 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -37,27 +37,36 @@ resources_h = custom_target('resources.h',
],
)
+# [ test name, [ test suites ], needs_resources (opt) ]
+#
+# test suites:
+# - conform: Behavior conformance test
+# - security: CVEs and the like
+# - slow: Needs special timeout value
+# - format: Per-format test
+# - io: Loading/saving
+# - ops: Pixel operations
installed_tests = [
- [ 'animation' ],
- [ 'cve-2015-4491', true ],
- [ 'pixbuf-fail' ],
- [ 'pixbuf-icon-serialize' ],
- [ 'pixbuf-randomly-modified' ],
- [ 'pixbuf-threads' ],
- [ 'pixbuf-icc' ],
- [ 'pixbuf-jpeg' ],
- [ 'pixbuf-dpi' ],
- [ 'pixbuf-pixdata', true ],
- [ 'pixbuf-stream' ],
- [ 'pixbuf-reftest' ],
- [ 'pixbuf-resource', true ],
- [ 'pixbuf-scale' ],
- [ 'pixbuf-scale-two-step' ],
- [ 'pixbuf-short-gif-write' ],
- [ 'pixbuf-save' ],
- [ 'pixbuf-readonly-to-mutable' ],
- [ 'pixbuf-composite' ],
- [ 'pixbuf-area-updated' ],
+ [ 'animation', ['format'], ],
+ [ 'cve-2015-4491', ['security'], true ],
+ [ 'pixbuf-fail', ['conform'], ],
+ [ 'pixbuf-icon-serialize', ['conform'], ],
+ [ 'pixbuf-randomly-modified', ['slow'], ],
+ [ 'pixbuf-threads', ['io'], ],
+ [ 'pixbuf-icc', ['io'], ],
+ [ 'pixbuf-jpeg', ['format'], ],
+ [ 'pixbuf-dpi', ['io'], ],
+ [ 'pixbuf-pixdata', ['format'], true ],
+ [ 'pixbuf-stream', ['io'], ],
+ [ 'pixbuf-reftest', ['conform'], ],
+ [ 'pixbuf-resource', ['io'], true ],
+ [ 'pixbuf-scale', ['ops'], ],
+ [ 'pixbuf-scale-two-step', ['ops'], ],
+ [ 'pixbuf-short-gif-write', ['format'], ],
+ [ 'pixbuf-save', ['io'] ],
+ [ 'pixbuf-readonly-to-mutable', ['conform'], ],
+ [ 'pixbuf-composite', ['ops'], ],
+ [ 'pixbuf-area-updated', ['slow'], ],
]
test_data = [
@@ -99,7 +108,8 @@ test_deps = gdk_pixbuf_deps + [ gdkpixbuf_dep ]
foreach t: installed_tests
test_name = t[0]
test_sources = [ test_name + '.c', 'test-common.c' ]
- needs_resources = t.get(1, false)
+ test_suites = t[1]
+ needs_resources = t.get(2, false)
if needs_resources
test_sources += [ resources_c, resources_h ]
endif
@@ -128,13 +138,14 @@ foreach t: installed_tests
)
# Two particularly slow tests
- if test_name == 'pixbuf-area-updated' or test_name == 'pixbuf-randomly-modified'
+ if test_suites.contains('slow')
timeout = 300
else
timeout = 30
endif
test(test_name, test_bin,
+ suite: test_suites,
args: [ '-k', '--tap' ],
env: [
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),