Add a test for POTFILES.in
authorMatthias Clasen <mclasen@redhat.com>
Sun, 30 Oct 2022 12:42:08 +0000 (08:42 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 30 Oct 2022 12:52:02 +0000 (08:52 -0400)
Add a test that runs make-pot. This will only pass
if you've updated po/POTFILES.in and .skip after
moving source files around.

Unfortunately, it won't catch new source files that
are missing.

testsuite/gtk/meson.build

index b9f039627a1c993d90ad75104fe3330dd6b252da..34237458da77222ebee446f85e033d5d227ecfc7 100644 (file)
@@ -299,6 +299,13 @@ foreach test : focus_chain_tests
   )
 endforeach
 
+# Test that po/POTFILES.in and po/POTFILES.skip are up-to-date
+
+make_pot = find_program ('make-pot', dirs: meson.project_source_root())
+
+test('potfiles', make_pot,
+     workdir: meson.project_source_root(),
+     suite: ['gtk', 'translations' ])
 
 if get_option('install-tests')
   foreach t : tests