diff options
author | Bilal Elmoussaoui <bil.elmoussaoui@gmail.com> | 2019-09-26 11:45:10 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2019-09-26 11:58:47 +0200 |
commit | 66107602ee5a17d27f73da0c767ecb4d835a544b (patch) | |
tree | 4eb2e62a990ab2c62bffce402049fe9829a69594 /data | |
parent | 0bb40981a737db68640247ddec9585d5ceb5ab1a (diff) | |
download | totem-66107602ee5a17d27f73da0c767ecb4d835a544b.tar.gz |
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.
Diffstat (limited to 'data')
-rw-r--r-- | data/meson.build | 8 |
1 files changed, 8 insertions, 0 deletions
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', |