1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-06-25 05:09:30 +00:00

tests: Ensure that desktop files are built before testing them

This also makes use of `.full_path()` since we don't need to reconstruct
the file name.
This commit is contained in:
Julian Sparber 2022-11-21 12:35:03 +01:00
parent 7537e37d3b
commit 27d76cda7a

View file

@ -11,7 +11,7 @@ desktop_file = i18n.merge_file(
install_dir : join_paths(datadir, 'applications')
)
desktop_file = i18n.merge_file(
desktop_daemon_file = i18n.merge_file(
input : 'org.gnome.Calls-daemon.desktop.in',
output : 'org.gnome.Calls-daemon.desktop',
type : 'desktop',
@ -35,16 +35,27 @@ configure_file(
desktop_utils = find_program('desktop-file-validate', required: false)
if desktop_utils.found()
test('Validate desktop file', desktop_utils,
args: [join_paths(meson.current_build_dir(),
'org.gnome.Calls.desktop')
])
test('Validate daemon desktop file', desktop_utils,
args: [join_paths(meson.current_build_dir(),
'org.gnome.Calls-daemon.desktop')
])
test('Validate desktop file',
desktop_utils,
args: [
desktop_file.full_path()
],
depends: [
desktop_file,
],
)
test('Validate daemon desktop file',
desktop_utils,
args: [
desktop_daemon_file.full_path()
],
depends: [
desktop_daemon_file,
],
)
endif
# Metainfo file
install_data('org.gnome.Calls.metainfo.xml',
install_dir: join_paths(datadir, 'metainfo'),