mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-12-04 20:07:36 +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:
parent
7537e37d3b
commit
27d76cda7a
1 changed files with 20 additions and 9 deletions
|
@ -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'),
|
||||
|
|
Loading…
Reference in a new issue