diff options
-rwxr-xr-x | run_project_tests.py | 4 | ||||
-rw-r--r-- | test cases/frameworks/10 gtk-doc/meson.build | 13 |
2 files changed, 12 insertions, 5 deletions
diff --git a/run_project_tests.py b/run_project_tests.py index f9d4dbd..e9afa81 100755 --- a/run_project_tests.py +++ b/run_project_tests.py @@ -445,8 +445,8 @@ def skippable(suite, test): if not suite.endswith('frameworks'): return True - # gtk-doc test is always skipped pending upstream fixes for spaces in - # filenames landing in distros + # gtk-doc test may be skipped, pending upstream fixes for spaces in + # filenames landing in the distro used for CI if test.endswith('10 gtk-doc'): return True diff --git a/test cases/frameworks/10 gtk-doc/meson.build b/test cases/frameworks/10 gtk-doc/meson.build index 71f341c..5c22ad0 100644 --- a/test cases/frameworks/10 gtk-doc/meson.build +++ b/test cases/frameworks/10 gtk-doc/meson.build @@ -13,8 +13,15 @@ inc = include_directories('include') subdir('include') -# We have to disable this test until this bug fix has landed to -# distros https://bugzilla.gnome.org/show_bug.cgi?id=753145 -error('MESON_SKIP_TEST can not enable gtk-doc test until upstream fixes have landed.') +# disable this test unless a bug fix for spaces in pathnames is present +# https://bugzilla.gnome.org/show_bug.cgi?id=753145 +result = run_command(gtkdoc, ['--version']) +gtkdoc_ver = result.stdout().strip() +if gtkdoc_ver == '' + gtkdoc_ver = result.stderr().strip() +endif +if gtkdoc_ver.version_compare('<1.26') + error('MESON_SKIP_TEST gtk-doc test requires gtkdoc >= 1.26.') +endif subdir('doc') |