meson/test cases
Eli Schwartz e67fd1f551
i18n module: fix bug that made msgfmthelper die on combinations of args
Due to misuse of argparse in commit 82492f5d76
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-03-06 10:48:34 -05:00
..
cmake cmake: configure_package_config_file can now take a dict 2022-02-27 11:45:26 -05:00
common test cases: rename shared library('c') avoid libc collision 2022-02-17 14:48:28 -05:00
csharp test: merge installed_files.txt into test.json 2020-02-25 21:47:42 +01:00
cuda Fix crash when getting cuda options 2021-10-27 15:29:44 -04:00
cython various python neatness cleanups 2021-10-04 16:29:30 -04:00
d ignore dub.json in test "d/11 dub" 2022-03-03 08:42:56 -08:00
failing meson: Allow directory options outside of prefix 2022-02-09 11:04:59 -05:00
failing build cmake: ci: Skip tests on Ubuntu Bionic where CMake is stuck on 3.10 2022-02-03 11:25:59 -05:00
failing test [TAP] Fix TAP parser when test exits with status 2021-02-19 17:17:20 +02:00
fortran Added warning if run_command is called without the check kwarg 2021-10-30 22:26:28 -04:00
fpga/1 simple editorconfig: add setting to trim trailing whitespace 2021-08-15 09:36:18 -04:00
frameworks i18n module: fix bug that made msgfmthelper die on combinations of args 2022-03-06 10:48:34 -05:00
java Add modules kwarg to JNI system dep 2022-03-04 13:52:21 -05:00
keyval editorconfig: add setting to trim trailing whitespace 2021-08-15 09:36:18 -04:00
linuxlike tests: do not use a GNU bash script to check the minimum version of programs 2022-02-17 14:48:27 -05:00
nasm/1 configure file extract_all_sources: Also include generated object files 2018-11-02 21:40:04 +02:00
native holders: Fix the remaining code to respect the holder changes 2021-06-18 23:48:33 +02:00
objc editorconfig: add setting to trim trailing whitespace 2021-08-15 09:36:18 -04:00
objcpp editorconfig: add setting to trim trailing whitespace 2021-08-15 09:36:18 -04:00
osx tests: remove extraframework test for python 2021-11-18 16:55:14 -05:00
python python: Add platlibdir and purelibdir options 2021-10-08 17:47:35 -04:00
python3 tests: take into account Debian Python paths 2021-09-29 08:54:05 -04:00
rewrite rewriter: create {add,rm}_extra_files commands 2021-12-15 21:21:29 +01:00
rust ninjabackend: fix rust program names with dashes 2022-02-10 15:05:37 -08:00
swift Xcode: make Swift projects work. 2021-04-25 15:35:13 +03:00
unit Allow setting method/separator in environment() and meson.add_devenv() 2022-02-28 09:03:27 -05:00
vala test cases/vala: Fix test 14 2022-02-27 14:33:33 -05:00
warning cmake: ci: Skip tests on Ubuntu Bionic where CMake is stuck on 3.10 2022-02-03 11:25:59 -05:00
wasm editorconfig: add setting to trim trailing whitespace 2021-08-15 09:36:18 -04:00
wayland/1 client wayland module: Allow building both client and server sides 2022-03-06 06:31:43 -05:00
windows backend/vs: process link dependencies. 2021-10-04 22:34:57 -04:00