summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2021-12-05 18:50:21 +0100
committerBenjamin Otte <otte@redhat.com>2023-04-15 06:11:54 +0200
commita147da11204b58e05c3bd58e91a2e37e71b3795a (patch)
treea3e9d651e35a509237628cfc098e4da04a553bb9
parentf953673edb90d585d17e70c1e76250415afbc1a5 (diff)
downloadgtk+-a147da11204b58e05c3bd58e91a2e37e71b3795a.tar.gz
testsuite: Run json parser as a single test
Much faster.
-rw-r--r--testsuite/json/meson.build23
1 files changed, 12 insertions, 11 deletions
diff --git a/testsuite/json/meson.build b/testsuite/json/meson.build
index efac6052e0..ff66006151 100644
--- a/testsuite/json/meson.build
+++ b/testsuite/json/meson.build
@@ -538,19 +538,20 @@ test_data = [
'JSONTestSuite/y_structure_whitespace_array.json',
]
+test_files = []
foreach testname : test_data
if testname.endswith('.json') and not testname.endswith('.ref.json')
- test('json ' + testname, test_parser,
- args: [ '--tap',
- '-k',
- join_paths(meson.current_source_dir(), testname),
- ],
- protocol: 'tap',
- env: [
- 'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
- 'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir())
- ],
- suite: 'json')
+ test_files += join_paths(meson.current_source_dir(), testname)
endif
endforeach
+test('json', test_parser,
+ args: [ '--tap',
+ '-k',
+ ] + test_files,
+ protocol: 'tap',
+ env: [
+ 'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
+ 'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir())
+ ],
+ suite: 'json')