mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-09 05:15:31 +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
996732944b
commit
56821857b7
1 changed files with 20 additions and 9 deletions
|
@ -11,7 +11,7 @@ desktop_file = i18n.merge_file(
|
||||||
install_dir : join_paths(datadir, 'applications')
|
install_dir : join_paths(datadir, 'applications')
|
||||||
)
|
)
|
||||||
|
|
||||||
desktop_file = i18n.merge_file(
|
desktop_daemon_file = i18n.merge_file(
|
||||||
input : 'org.gnome.Calls-daemon.desktop.in',
|
input : 'org.gnome.Calls-daemon.desktop.in',
|
||||||
output : 'org.gnome.Calls-daemon.desktop',
|
output : 'org.gnome.Calls-daemon.desktop',
|
||||||
type : 'desktop',
|
type : 'desktop',
|
||||||
|
@ -35,16 +35,27 @@ configure_file(
|
||||||
|
|
||||||
desktop_utils = find_program('desktop-file-validate', required: false)
|
desktop_utils = find_program('desktop-file-validate', required: false)
|
||||||
if desktop_utils.found()
|
if desktop_utils.found()
|
||||||
test('Validate desktop file', desktop_utils,
|
test('Validate desktop file',
|
||||||
args: [join_paths(meson.current_build_dir(),
|
desktop_utils,
|
||||||
'org.gnome.Calls.desktop')
|
args: [
|
||||||
])
|
desktop_file.full_path()
|
||||||
test('Validate daemon desktop file', desktop_utils,
|
],
|
||||||
args: [join_paths(meson.current_build_dir(),
|
depends: [
|
||||||
'org.gnome.Calls-daemon.desktop')
|
desktop_file,
|
||||||
])
|
],
|
||||||
|
)
|
||||||
|
test('Validate daemon desktop file',
|
||||||
|
desktop_utils,
|
||||||
|
args: [
|
||||||
|
desktop_daemon_file.full_path()
|
||||||
|
],
|
||||||
|
depends: [
|
||||||
|
desktop_daemon_file,
|
||||||
|
],
|
||||||
|
)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
# Metainfo file
|
# Metainfo file
|
||||||
install_data('org.gnome.Calls.metainfo.xml',
|
install_data('org.gnome.Calls.metainfo.xml',
|
||||||
install_dir: join_paths(datadir, 'metainfo'),
|
install_dir: join_paths(datadir, 'metainfo'),
|
||||||
|
|
Loading…
Reference in a new issue