[gtk/wip/otte/json: 2/2] testsuite: Run json parser as a single test
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/json: 2/2] testsuite: Run json parser as a single test
- Date: Sun, 5 Dec 2021 19:05:05 +0000 (UTC)
commit b660f8cfef2d9d6cc12e8aca1a8c284361fae3b5
Author: Benjamin Otte <otte redhat com>
Date: Sun Dec 5 18:50:21 2021 +0100
testsuite: Run json parser as a single test
Much faster.
testsuite/json/meson.build | 24 +++++++++++++-----------
1 file changed, 13 insertions(+), 11 deletions(-)
---
diff --git a/testsuite/json/meson.build b/testsuite/json/meson.build
index 9e97e79004..9965798374 100644
--- a/testsuite/json/meson.build
+++ b/testsuite/json/meson.build
@@ -543,22 +543,24 @@ 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')
+
if get_option('install-tests')
conf = configuration_data()
conf.set('libexecdir', gtk_libexecdir)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]