[totem/bilelmoussaoui/meson-tests: 3/3] build: Add tests to validate schema file



commit e97c4e45f4bd16d47b043310d05cedf276e6215d
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]