Issue 1102: Fixup test suite, fix broken tests

A recent PR broken the JsonChecker tests by adding support for trailing
commas. This didn't end up breaking the build, because those tests
aren't run, except locally and only using CMake.

This patch fixes the tests by adding exclusions for trailing comma
tests, as well as updates Meson to run these tests as part of `ninja
test`.

See issue #1102.
This commit is contained in:
Jordan Bayles
2019-11-14 10:41:25 -08:00
committed by Christopher Dunn
parent 411d88fae8
commit 9e23f66f61
2 changed files with 27 additions and 36 deletions

View File

@@ -105,3 +105,13 @@ test(
jsontestrunner,
join_paths(meson.current_source_dir(), 'test/data')]
)
test(
'jsonchecker_jsontestrunner',
python,
args : [
'-B',
join_paths(meson.current_source_dir(), 'test/runjsontests.py'),
'--with-json-checker',
jsontestrunner,
join_paths(meson.current_source_dir(), 'test/data')]
)