diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2019-12-23 11:15:57 +0000 |
---|---|---|
committer | Stefan Sauer <ensonic@hora-obscura.de> | 2019-12-23 11:15:57 +0000 |
commit | c11728a9483f907db304d2c3a25afb7720d8d35a (patch) | |
tree | 66727014ac3e2147ca37ce7a3540472391e33b5f /tests | |
parent | b84b964327019b946534a4cd7838b591c1f69a60 (diff) | |
download | gtk-doc-c11728a9483f907db304d2c3a25afb7720d8d35a.tar.gz |
meson: Fix running tests
Diffstat (limited to 'tests')
-rwxr-xr-x[-rw-r--r--] | tests/highlight.py | 0 | ||||
-rw-r--r-- | tests/meson.build | 31 |
2 files changed, 16 insertions, 15 deletions
diff --git a/tests/highlight.py b/tests/highlight.py index 7c88049..7c88049 100644..100755 --- a/tests/highlight.py +++ b/tests/highlight.py 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') |