Skip test cases/frameworks/7 gnome if prereqs not found

Skip test cases/frameworks/7 gnome if glib or python3-gi not found
pull/3060/head
Jon Turney 7 years ago
parent 5ff84e4f50
commit 68a5b8d9fc
  1. 11
      test cases/frameworks/7 gnome/meson.build

@ -1,5 +1,16 @@
project('gobject-introspection', 'c') project('gobject-introspection', 'c')
glib = dependency('glib-2.0', required: false)
if not glib.found()
error('MESON_SKIP_TEST glib not found.')
endif
python3 = import('python3')
py3 = python3.find_python()
if run_command(py3, '-c', 'import gi;').returncode() != 0
error('MESON_SKIP_TEST python3-gi not found')
endif
cc = meson.get_compiler('c') cc = meson.get_compiler('c')
add_global_arguments('-DMESON_TEST', language : 'c') add_global_arguments('-DMESON_TEST', language : 'c')

Loading…
Cancel
Save