[libgweather] Restore tests for Locations.xml
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgweather] Restore tests for Locations.xml
- Date: Thu, 30 Nov 2017 12:02:47 +0000 (UTC)
commit 3f5f98f4adf61bf31c12f2d8d2641ebe97f82d8d
Author: Emmanuele Bassi <ebassi gnome org>
Date: Mon Nov 27 17:17:16 2017 +0000
Restore tests for Locations.xml
Like the old Autotools build, we want to check that the Locations.xml
file is valid and contains the appropriate timezone data.
data/meson.build | 18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/data/meson.build b/data/meson.build
index dafe889..2a2c159 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -22,10 +22,26 @@ if enable_glade_catalog
)
endif
-# FIXME check syntax of Locations.xml
+xmllint = find_program('xmllint', required: false)
+if xmllint.found()
+ test('Valid Locations file',
+ xmllint,
+ args: [
+ '--path', '@0@'.format(meson.current_source_dir()),
+ '--noout',
+ 'Locations.xml',
+ ])
+
+ check_timezones = find_program('check-timezones.sh')
+ test('Timezones check',
+ check_timezones,
+ args: ['Locations.xml'])
+endif
+
install_data('Locations.xml',
install_dir: pkgdatadir,
)
+
install_data('locations.dtd',
install_dir: pkgdatadir,
)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]