Bruno Haible
0c0bf3abb2
tests: Fix a lang-java failure on native Windows with MSVC.
...
* gettext-tools/tests/lang-java: On native Windows, don't test the UTF-8 locale.
2025-07-30 16:22:32 +02:00
Bruno Haible
101f7026ad
tests: Fix a lang-java failure on native Windows.
...
* gettext-tools/tests/lang-java: On native Windows, convert newlines in the
output before comparing.
2025-07-22 12:40:35 +02:00
Bruno Haible
ef13e87973
tests: Fix a lang-java failure on native Windows.
...
* gettext-tools/tests/init-env.in (CLASSPATH_SEPARATOR): New variable.
* gettext-tools/tests/lang-java: Use it instead of hardcoding ':'.
2025-07-21 22:08:41 +02:00
Bruno Haible
f405ab69d9
tests: Strengthen tests.
...
* gettext-tools/tests/lang-bash: Invoke msgfmt with option '-c'.
* gettext-tools/tests/lang-c: Likewise.
* gettext-tools/tests/lang-c++: Likewise.
* gettext-tools/tests/lang-c++20: Likewise.
* gettext-tools/tests/lang-c++26: Likewise.
* gettext-tools/tests/lang-c++-boost: Likewise.
* gettext-tools/tests/lang-clisp: Likewise.
* gettext-tools/tests/lang-csharp: Likewise.
* gettext-tools/tests/lang-d: Likewise.
* gettext-tools/tests/lang-elisp: Likewise.
* gettext-tools/tests/lang-gawk: Likewise.
* gettext-tools/tests/lang-go: Likewise.
* gettext-tools/tests/lang-guile: Likewise.
* gettext-tools/tests/lang-java: Likewise.
* gettext-tools/tests/lang-javascript: Likewise.
* gettext-tools/tests/lang-librep: Likewise.
* gettext-tools/tests/lang-lua: Likewise.
* gettext-tools/tests/lang-modula2: Likewise.
* gettext-tools/tests/lang-objc: Likewise.
* gettext-tools/tests/lang-pascal: Likewise.
* gettext-tools/tests/lang-perl-1: Likewise.
* gettext-tools/tests/lang-perl-2: Likewise.
* gettext-tools/tests/lang-php: Likewise.
* gettext-tools/tests/lang-python-1: Likewise.
* gettext-tools/tests/lang-python-2: Likewise.
* gettext-tools/tests/lang-ruby: Likewise.
* gettext-tools/tests/lang-rust: Likewise.
* gettext-tools/tests/lang-sh-1: Likewise.
* gettext-tools/tests/lang-sh-2: Likewise.
* gettext-tools/tests/lang-sh-3: Likewise.
* gettext-tools/tests/lang-smalltalk: Likewise.
* gettext-tools/tests/lang-tcl: Likewise.
* gettext-tools/tests/lang-vala: Likewise.
2025-07-03 17:41:15 +02:00
Bruno Haible
ec07a48b8f
Reject the dysfunctional gettext in Solaris libc, other than Solaris 11.4.
...
This fixes a 'make installcheck' failure.
<https://www.illumos.org/issues/13423 > has been reported more than 4 years ago.
I don't have hope that they will fix it, ever.
* gettext-runtime/m4/gettext.m4 (AM_GNU_GETTEXT): On Solaris other than
Solaris 11.4, don't use the gettext() function in libc.
* gettext-tools/tests/init.cfg (prepare_locale_): Remove function.
* gettext-tools/tests/format-c-3: Remove prepare_locale_ invocations.
* gettext-tools/tests/format-c-4: Likewise.
* gettext-tools/tests/format-c-5: Likewise.
* gettext-tools/tests/intl-0: Likewise.
* gettext-tools/tests/intl-1: Likewise.
* gettext-tools/tests/intl-2: Likewise.
* gettext-tools/tests/intl-3: Likewise.
* gettext-tools/tests/intl-4: Likewise.
* gettext-tools/tests/intl-6: Likewise.
* gettext-tools/tests/intl-7: Likewise.
* gettext-tools/tests/intl-thread-1: Likewise.
* gettext-tools/tests/intl-thread-2: Likewise.
* gettext-tools/tests/intl-thread-3: Likewise.
* gettext-tools/tests/lang-bash: Likewise.
* gettext-tools/tests/lang-c: Likewise.
* gettext-tools/tests/lang-c++: Likewise.
* gettext-tools/tests/lang-c++20: Likewise.
* gettext-tools/tests/lang-c++26: Likewise.
* gettext-tools/tests/lang-clisp: Likewise.
* gettext-tools/tests/lang-csharp: Likewise.
* gettext-tools/tests/lang-d: Likewise.
* gettext-tools/tests/lang-gawk: Likewise.
* gettext-tools/tests/lang-go: Likewise.
* gettext-tools/tests/lang-guile: Likewise.
* gettext-tools/tests/lang-java: Likewise.
* gettext-tools/tests/lang-javascript: Likewise.
* gettext-tools/tests/lang-librep: Likewise.
* gettext-tools/tests/lang-lua: Likewise.
* gettext-tools/tests/lang-modula2: Likewise.
* gettext-tools/tests/lang-objc: Likewise.
* gettext-tools/tests/lang-pascal: Likewise.
* gettext-tools/tests/lang-perl-1: Likewise.
* gettext-tools/tests/lang-perl-2: Likewise.
* gettext-tools/tests/lang-php: Likewise.
* gettext-tools/tests/lang-python-1: Likewise.
* gettext-tools/tests/lang-python-2: Likewise.
* gettext-tools/tests/lang-ruby: Likewise.
* gettext-tools/tests/lang-rust: Likewise.
* gettext-tools/tests/lang-sh: Likewise.
* gettext-tools/tests/lang-smalltalk: Likewise.
* gettext-tools/tests/lang-tcl: Likewise.
* gettext-tools/tests/lang-vala: Likewise.
* gettext-tools/tests/msgfmt-20: Likewise.
* gettext-tools/tests/plural-1: Likewise.
* NEWS: Mention the change.
2025-06-19 22:35:17 +02:00
Bruno Haible
d1d131a036
tests: Prefer 'cat <<\EOF' to 'cat <<EOF' whenever possible.
...
Rationale: Not interpreting $ and \ in the here documents is a better default
than interpreting them.
* gettext-tools/tests/*: Write 'cat <<\EOF' instead of 'cat <<EOF', when no
shell dollar-substitution and backslash-interpretation is needed.
2024-08-16 10:36:58 +02:00
Bruno Haible
c2758ebe0a
Add support for Java format strings in the Formatter syntax.
...
* gettext-tools/src/message.h (format_type): Add format_java_printf.
(NFORMATS): Increment.
* gettext-tools/src/message.c (format_language, format_language_pretty): Add
entry for format_java_printf.
* gettext-tools/src/format.h (formatstring_java_printf): New declaration.
* gettext-tools/src/format-java.c: Update comments.
* gettext-tools/src/format-java-printf.c: New file.
* gettext-tools/src/format.c (formatstring_parsers): Add entry for
format_java_printf.
* gettext-tools/src/x-java.h (SCANNERS_JAVA): Use formatstring_java_printf.
* gettext-tools/src/x-java.c (init_flag_table_java): Add entries relevant to
format strings in Formatter syntax.
* gettext-tools/src/xgettext.c (xgettext_record_flag): Add support for
format_java_printf.
* gettext-tools/src/FILES: Add format-java-printf.c.
* gettext-tools/src/Makefile.am (FORMAT_SOURCE): Add format-java-printf.c.
* gettext-tools/woe32dll/gettextsrc-exports.c: Export formatstring_java_printf.
* gettext-tools/libgettextpo/Makefile.am (libgettextpo_la_AUXSOURCES): Likewise.
* gettext-tools/tests/xgettext-6 (xg-test6.java): Add test for recognition of
format strings in Formatter syntax.
* gettext-tools/tests/format-java-printf-1: New file.
* gettext-tools/tests/format-java-printf-2: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add them.
* gettext-tools/tests/lang-java: Add two uses of String.format to the program.
* gettext-tools/doc/gettext.texi (PO Files): Document java-printf-format and
no-java-printf-format.
(java-format): Describe both kinds of format strings. Update URLs.
(Java): Mention the second kind of format string as well.
* NEWS: Mention the improvement.
2019-08-25 19:17:21 +02:00
Bruno Haible
a55b0194e3
tests: Remove comments about GCJ.
...
We don't support GCJ any more since 2017-05-04.
* gettext-tools/tests/lang-java: Remove comment about failure with GCJ.
* gettext-tools/tests/msgunfmt-java-1: Likewise.
2019-08-25 19:00:26 +02:00
Daiki Ueno
59d9b55bb2
tests: Use Exit instead of exit if init.sh is used
...
* gettext-tools/tests/*: Use Exit instead of exit, as suggested by
init.sh.
2016-06-08 15:28:49 +09:00
Daiki Ueno
7ebb32f1b9
tests: Adjust textdomain directory for Solaris 11
...
Solaris 11 doesn't strip the CODESET part from the locale name,
when looking for a message catalog. Create a directory link with
CODESET, to work around this.
2014-10-01 14:40:42 +09:00
Daiki Ueno
e860dc2849
tests: Stop redundant textdomain directory creation
...
This was introduced by commit 3533f6cc when we didn't use separate
test directory for each test. Now that we switched to init.sh, we
don't need to worry about filename conflicts.
2014-10-01 14:35:51 +09:00
Daiki Ueno
ec84e32c72
tests: Undo the previous unintended file mode changes
2014-03-10 21:10:01 +09:00
Daiki Ueno
d66197a3ca
tests: Remove unnecessary tempfile cleanup code
...
Cleanup code like "rm -fr $tmpfiles" are no longer needed, since
'init.sh' takes care of that.
2014-03-10 18:24:15 +09:00
Daiki Ueno
6c0abd26de
gettext-tools: convert tests to use init.sh from Gnulib
2013-07-10 18:34:09 +09:00
Daiki Ueno
3533f6cc35
Use distinct temporary file names in tests.
2013-05-30 13:07:31 +09:00
Bruno Haible
9195887326
Avoid a test failure on MacOS X 10.5.
2009-12-13 12:11:18 +01:00
Bruno Haible
cec3abadd6
Avoid testsuite failures on MacOS X 10.5.
2009-06-23 12:15:38 +02:00
Bruno Haible
2f0998ce84
Implement msgctxt for Java ResourceBundles.
2009-06-23 12:15:02 +02:00
Bruno Haible
ea6f5e58fc
Convert CR/LF to LF.
2009-06-23 12:14:48 +02:00
Bruno Haible
67af6febda
Hide compiler warnings. Needed because gcj-4.3 gives many warnings.
2009-06-23 12:14:39 +02:00
Bruno Haible
73c191af96
Start using gnulib.
2009-06-23 12:13:50 +02:00
Bruno Haible
b83b91e1ee
Explain why tests are skipped.
2009-06-23 12:13:22 +02:00
Bruno Haible
17bcd9a0f3
Fix to avoid test failure with fr_FR locale on MacOS X.
2009-06-23 12:12:17 +02:00
Bruno Haible
5757f7f4d8
Perform the lang-* tests both in a traditional locale and in a UTF-8 locale,
...
as far as provided by the system.
2009-06-23 12:12:16 +02:00
Bruno Haible
041c02babe
Don't require Java 1.4.
2009-06-23 12:11:55 +02:00
Bruno Haible
d0dd732774
Fix test failures on MacOS X.
2009-06-23 12:11:53 +02:00
Bruno Haible
c625209bdd
Test whether the locale is usable. If not, skip the tests.
2009-06-23 12:11:27 +02:00
Bruno Haible
af9229b55c
Use the system's french locale, even if it's called "fr_FR.ISO8859-1" instead
...
of just plain "fr_FR".
2009-06-23 12:10:42 +02:00
Bruno Haible
da8d69b4ac
Add a note about this test's failure.
2009-06-23 12:10:35 +02:00
Bruno Haible
b90432f0ab
Remove SKIP: messages, now that automake emits them from the Makefile.
2009-06-23 12:10:13 +02:00
Bruno Haible
2f619eafe7
Adapt to changed directory structure.
2009-06-23 12:10:05 +02:00
Bruno Haible
3fdae66254
Move tests/lang-java to gettext-tools/tests/lang-java.
2009-06-23 12:09:44 +02:00