tests: Depend on .plugin files to exist
When .plugin files are missing, the plugins will not be discoverable. These were only getting built when run with `meson compile`, but not for `meson test`. Helps: https://gitlab.gnome.org/GNOME/calls/-/issues/719 Signed-off-by: Evangelos Ribeiro Tzaras <devrtz@fortysixandtwo.eu> Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/798>
This commit is contained in:
committed by
Marge Bot
parent
93a5c1911d
commit
3184fa3af0
@@ -1,4 +1,7 @@
|
|||||||
calls_provider_plugin_libdir = join_paths(full_calls_plugin_libdir, 'provider')
|
calls_provider_plugin_libdir = join_paths(full_calls_plugin_libdir, 'provider')
|
||||||
|
|
||||||
|
plugins_test_depends = []
|
||||||
|
|
||||||
subdir('provider/mm')
|
subdir('provider/mm')
|
||||||
subdir('provider/dummy')
|
subdir('provider/dummy')
|
||||||
subdir('provider/ofono')
|
subdir('provider/ofono')
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ i18n_plugin = i18n.merge_file(
|
|||||||
install_dir: dummy_install_dir,
|
install_dir: dummy_install_dir,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
plugins_test_depends += [i18n_plugin]
|
||||||
|
|
||||||
dummy_deps = [
|
dummy_deps = [
|
||||||
dependency('gobject-2.0'),
|
dependency('gobject-2.0'),
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ i18n_plugin = i18n.merge_file(
|
|||||||
install_dir: mm_install_dir,
|
install_dir: mm_install_dir,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
plugins_test_depends += [i18n_plugin]
|
||||||
|
|
||||||
mm_deps = [
|
mm_deps = [
|
||||||
dependency('gobject-2.0'),
|
dependency('gobject-2.0'),
|
||||||
|
|||||||
@@ -41,6 +41,8 @@ i18n_plugin = i18n.merge_file(
|
|||||||
install_dir: ofono_install_dir,
|
install_dir: ofono_install_dir,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
plugins_test_depends += [i18n_plugin]
|
||||||
|
|
||||||
ofono_deps = [
|
ofono_deps = [
|
||||||
dependency('gobject-2.0'),
|
dependency('gobject-2.0'),
|
||||||
dependency('gtk4', version: '>= @0@'.format(gtk_version)),
|
dependency('gtk4', version: '>= @0@'.format(gtk_version)),
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ i18n_plugin = i18n.merge_file(
|
|||||||
install_dir: sip_install_dir,
|
install_dir: sip_install_dir,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
plugins_test_depends += [i18n_plugin]
|
||||||
|
|
||||||
sip_deps = [
|
sip_deps = [
|
||||||
dependency('gobject-2.0'),
|
dependency('gobject-2.0'),
|
||||||
|
|||||||
@@ -48,11 +48,15 @@ subdir('services')
|
|||||||
|
|
||||||
tests = [
|
tests = [
|
||||||
['emergency-call-types', ['test-emergency-call-types.c']],
|
['emergency-call-types', ['test-emergency-call-types.c']],
|
||||||
['manager', ['test-manager.c'], {'extra_test_deps' : [calls_plugins]}],
|
[
|
||||||
|
'manager',
|
||||||
|
['test-manager.c'],
|
||||||
|
{'extra_test_deps' : [calls_plugins, plugins_test_depends]},
|
||||||
|
],
|
||||||
[
|
[
|
||||||
'plugins',
|
'plugins',
|
||||||
['test-plugins.c', calls_sources],
|
['test-plugins.c', calls_sources],
|
||||||
{'extra_test_deps' : [calls_plugins]},
|
{'extra_test_deps' : [calls_plugins, plugins_test_depends]},
|
||||||
],
|
],
|
||||||
['util', ['test-util.c']],
|
['util', ['test-util.c']],
|
||||||
['ui-call', ['test-ui-call.c', 'mock-call.c']],
|
['ui-call', ['test-ui-call.c', 'mock-call.c']],
|
||||||
|
|||||||
Reference in New Issue
Block a user