summaryrefslogtreecommitdiff
path: root/test cases/frameworks/6 gettext
AgeCommit message (Collapse)Author
2024-03-17tests: rename skip_on_jobname to expect_skip_on_jobname and skip_on_os to ↵Christoph Reiter
expect_skip_on_os The test.json format currently has three keys related to skipping tests: * `skip_on_jobname` * `skip_on_os` * `skip_on_env` While `skip_on_env` marks the test itself as skipped, i.e. they don't get run when the conditions are met, the other two skip options are just marking the test as "expected to be skipped" if the conditions apply, i.e. they want to see `MESON_SKIP_TEST` in the output and things will fail if that doesn't happen. They don't actually skip the tests as the names imply. To make this clearer rename the keys: * `skip_on_jobname` -> `expect_skip_on_jobname` * `skip_on_os` -> `expect_skip_on_os` `skip_on_env` stays the same, since that actually skips. The docs were also confused about this, so adjust that too.
2022-03-06i18n module: fix bug that made msgfmthelper die on combinations of argsEli Schwartz
Due to misuse of argparse in commit 82492f5d765b70cc87385fb887008df89fac878e it was impossible to use both --datadirs and extra args passed directly to msgfmt at the same time. I'm not sure anyone actually knows how argparse works, so misusing it is easy. What is definitely known is that argparse is NOT a POSIX compliant parser and doesn't behave the way you'd expect a standards based parser to handle options. Instead it caters to the easy use case, and hopes and prays you don't need to do anything too complicated "with the wrong kind of complicated". Apparently, this particular type of complicated is when you have mixed option_arguments and operands while simultaneously passing some operands as nargs after a --. It totally breaks, and interprets --datadirs, which is supposed to be an option_argument, as an operand, eats it up as a msgfmt wrapped argument, and breaks. But if you don't pass additional arguments with -- then it interprets --datadirs after operands as an option_argument. This is what we were doing. Instead pass option_arguments before all operands (including the ones specified via `-- ...`). Add test case to pass meaningless datadirs (we don't actually care if $GETTEXTDATADIRS is set to something that doesn't contain gettext data).
2022-01-21i18n: Add support for joining XML localization via itstoolMatthias Klumpp
2021-08-15editorconfig: add setting to trim trailing whitespaceEli Schwartz
and clean up all outstanding issues Skip 'test cases/common/141 special characters/meson.build' since it intentionally uses trailing newlines.
2021-08-09Fix i18n target name when using @BASENAME@ and configure_file() inputXavier Claessens
Fixes: #9022
2021-07-28expand tests to check both static and shared intl dependencyEli Schwartz
2021-07-13Add expected skip annotations for non-linux CI runs to framework testsJon Turney
2021-06-17update gettext test to use new intl dependencyEli Schwartz
Tests that we find something sensible for intl, capable of producing binaries using gettext() to translate stuff. No more need to manually check headers and *maybe* include the intl library, which we were doing before; the new dependency actually simplifies the existing test, and should simplify users' build files too...
2020-02-25test: merge installed_files.txt into test.jsonDaniel Mensinger
2020-01-24tests: Fix some test failures on Ubuntun 16.04 CINirbheek Chauhan
* xenial doesn't ship many dependencies, so make them all optional since we don't guarantee that everything will work * cmake/{5,6}: needs stdlib.h for EXIT_SUCCESS on GCC 5 * common/222: needs C++11, and GCC 5 doesn't understand `auto` correctly unless we explicitly enable it. * frameworks/1 boost: xenial doesn't ship boost_python3, so make it properly optional * frameworks/6 gettext: gettext can be installed without xgettext, which doesn't cause the project to fail, but the installed files list is different which causes the test to fail. * frameworks/7 gnome: gobject-introspection can't be enabled because the sanitizer unit test detects leaks in glib and fails
2019-04-22i18n: add args keyword to merge_fileKonstantin
* i18n: add args keyword to merge_file * i18n: add testcase to msgfmt args
2018-11-04Install files from the test added in 2ff69b20 to make sure it runsJon Turney
and make the test runnable :)
2018-10-29Fix merge file using an array. Closes #4424.Jussi Pakkanen
2018-10-24Fix remaining flake8 reportJon Turney
$ flake8 ./test cases/frameworks/6 gettext/generated/desktopgenerator.py:8:1: F821 undefined name 'os' How is this working?
2018-10-06Fix a comment in "test cases/frameworks/6 gettext"Masanori Kakura
File "data/data3/meson.build" makes Meson create a target that contains a path separator.
2018-10-06i18n: replace path separator with @Marty E. Plummer
using state.subdir will cause / or \ to be inserted into the target name. Replace them with @ to future-proof it. Signed-off-by: Marty E. Plummer <hanetzer@startmail.com>
2018-10-05Fix handling generated .desktop files. Closes #4304.Jussi Pakkanen
2018-09-16i18n: allow custom target names for merge_fileMarty E. Plummer
As it currently stands, if for whatever reason you have two files you want to merge with the same output name, it will fail due to multiple targets with the same name due to the target name being autogenerated from the output kwarg. Signed-off-by: Marty E. Plummer <hanetzer@startmail.com>
2018-09-03i18n: respect variable substitution for the target name when merging ↵Corentin Noël
translations Previously it wasn't possible to use twice @BASENAME@ as the targets would then be named @BASENAME@_merge
2018-02-21Fix test cases/frameworks/6 gettext for windowsJon Turney
Allow installed file 'intlprog' to have .exe extension
2018-02-21Skip test cases/frameworks/6 gettext if prereqs not foundJon Turney
Skip test cases/frameworks/6 gettext if gettext or libintl not found
2017-06-03Use correct gettext input file in testRene Lopez
2016-12-03i18n: Add merge_file functionPatrick Griffis
This is a repeated task that we can simplify Closes #1120
2016-09-04Some platforms require linking against libintl explicitly.Jussi Pakkanen
2016-03-28Moved gettext into i18n module.Jussi Pakkanen
2015-02-04Rework installation logic so we can go outside the install prefix.Jussi Pakkanen
2013-09-13Added installed_files.txt files to all places that needed them.Jussi Pakkanen
2013-09-12Now can generate mo files from po files and install them.Jussi Pakkanen
2013-09-12Text clarification.Jussi Pakkanen
2013-09-12Added a few translations.Jussi Pakkanen
2013-09-12Can generate pot files on command.Jussi Pakkanen
2013-09-12Parse gettext command and generate rule.Jussi Pakkanen
2013-09-12Some work on gettext.Jussi Pakkanen
2013-09-11Basic test case for gettext.Jussi Pakkanen