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.
This commit is contained in:
Matthias Clasen 2022-10-30 08:42:08 -04:00
parent a36bf22134
commit 5cb84afaa9

View 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