diff options
Diffstat (limited to 'tests/meson.build')
-rw-r--r-- | tests/meson.build | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/tests/meson.build b/tests/meson.build index a60cf46..92add69 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -8,11 +8,14 @@ gtkdoc_unit_tests = [ 'scan', ] +test_env = environment() +test_env.append('PYTHONPATH', srcdir, builddir) + foreach test_name: gtkdoc_unit_tests test( 'test-unit-@0@'.format(test_name), python_prg, - env: ['PYTHONPATH=@0@'.format(builddir)], + env: test_env, args: [ join_paths( srcdir, @@ -25,20 +28,18 @@ endforeach subdir('helpers') -if get_option('tests') == true - glib_dep = dependency('glib-2.0', version: glib_req) - gobject_dep = dependency('gobject-2.0', version: glib_req) +glib_dep = dependency('glib-2.0', version: glib_req) +gobject_dep = dependency('gobject-2.0', version: glib_req) - glib_prefix = glib_dep.get_pkgconfig_variable('prefix') - glib_docpath = join_paths(glib_prefix, 'share', 'gtk-doc', 'html') +glib_prefix = glib_dep.get_pkgconfig_variable('prefix') +glib_docpath = join_paths(glib_prefix, 'share', 'gtk-doc', 'html') - gobject_prefix = gobject_dep.get_pkgconfig_variable('prefix') - gobject_docpath = join_paths(gobject_prefix, 'share', 'gtk-doc', 'html') +gobject_prefix = gobject_dep.get_pkgconfig_variable('prefix') +gobject_docpath = join_paths(gobject_prefix, 'share', 'gtk-doc', 'html') - subdir('annotations') - subdir('bugs') - subdir('empty') - subdir('fail') - subdir('gobject') - subdir('program') -endif +subdir('annotations') +subdir('bugs') +subdir('empty') +subdir('fail') +subdir('gobject') +subdir('program') |