From 5cb84afaa9897998a7fe7ca3c834ca6604ffe0fa Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 30 Oct 2022 08:42:08 -0400 Subject: [PATCH] Add a test for POTFILES.in 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 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/testsuite/gtk/meson.build b/testsuite/gtk/meson.build index b9f039627a..34237458da 100644 --- a/testsuite/gtk/meson.build +++ b/testsuite/gtk/meson.build @@ -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