[totem/bilelmoussaoui/meson-tests: 4/4] build: Add tests to validate schema file
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/bilelmoussaoui/meson-tests: 4/4] build: Add tests to validate schema file
- Date: Thu, 26 Sep 2019 09:47:21 +0000 (UTC)
commit f095c7f2321d335272457d9c469c69b71ff6e410
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date: Thu Sep 26 11:45:10 2019 +0200
build: Add tests to validate schema file
The flatpak CI template already runs ninja tests for us.
Let's use that to ensure the schema file is always valid.
data/meson.build | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/data/meson.build b/data/meson.build
index 2f1202354..32f2f8450 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -167,6 +167,14 @@ configure_file(
install_dir: totem_schemadir,
configuration: schema_conf
)
+# Validata GSchema
+glib_compile_schemas = find_program('glib-compile-schemas', required: false)
+if glib_compile_schemas.found()
+ test(
+ 'validate-gschema', glib_compile_schemas,
+ args: ['--strict', '--dry-run', meson.current_source_dir()]
+ )
+endif
install_data(
'totem.convert',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]