From: Bruno Haible Date: Thu, 15 Dec 2016 23:25:18 +0000 (+0100) Subject: Add comments about test failures with --disable-nls. X-Git-Tag: v0.20~477 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e1b7955c1f95428a974b6f335c62e20dcbca84b;p=thirdparty%2Fgettext.git Add comments about test failures with --disable-nls. * gettext-tools/tests/lang-bash: Add comment. * gettext-tools/tests/lang-sh: Likewise. * gettext-tools/tests/lang-c: Likewise. * gettext-tools/tests/lang-c++: Likewise. * gettext-tools/tests/lang-objc: Likewise. --- diff --git a/gettext-tools/tests/lang-bash b/gettext-tools/tests/lang-bash index a5ec2b044..6c68a8bdc 100755 --- a/gettext-tools/tests/lang-bash +++ b/gettext-tools/tests/lang-bash @@ -10,6 +10,10 @@ # output when accessing any .mo file not generated from a .po file in UTF-8 # encoding. +# This test fails if the gettext package was configured with --disable-nls, +# because in this case the gettext-runtime/src/gettext program does not do +# any message catalog lookups. + cat <<\EOF > prog.bash #! /bin/bash diff --git a/gettext-tools/tests/lang-c b/gettext-tools/tests/lang-c index 2babb08ae..ad6be73f7 100755 --- a/gettext-tools/tests/lang-c +++ b/gettext-tools/tests/lang-c @@ -5,6 +5,10 @@ # Assumes an fr_FR locale is installed. # Assumes the following packages are installed: gcc. +# This test fails if the gettext package was configured with --disable-nls, +# because in this case the gettext-runtime/intl/ directory does not produce +# a header file. + cat <<\EOF > prog.c #include "config.h" #include diff --git a/gettext-tools/tests/lang-c++ b/gettext-tools/tests/lang-c++ index 105e70e25..cad6af8bb 100755 --- a/gettext-tools/tests/lang-c++ +++ b/gettext-tools/tests/lang-c++ @@ -5,6 +5,10 @@ # Assumes an fr_FR locale is installed. # Assumes the following packages are installed: gcc g++. +# This test fails if the gettext package was configured with --disable-nls, +# because in this case the gettext-runtime/intl/ directory does not produce +# a header file. + # Test whether a C++ compiler is found and libasprintf is built. test "${CXX}" != "no" || { echo "Skipping test: no C++ compiler found" diff --git a/gettext-tools/tests/lang-objc b/gettext-tools/tests/lang-objc index 25ca2119d..bc2578cc1 100755 --- a/gettext-tools/tests/lang-objc +++ b/gettext-tools/tests/lang-objc @@ -5,6 +5,10 @@ # Assumes an fr_FR locale is installed. # Assumes the following packages are installed: gcc. +# This test fails if the gettext package was configured with --disable-nls, +# because in this case the gettext-runtime/intl/ directory does not produce +# a header file. + # Test whether an ObjectiveC compiler is found. cat <<\EOF > hello.m #include diff --git a/gettext-tools/tests/lang-sh b/gettext-tools/tests/lang-sh index 2737f3acc..5f0173264 100755 --- a/gettext-tools/tests/lang-sh +++ b/gettext-tools/tests/lang-sh @@ -8,6 +8,10 @@ # Note: This test fails on BeOS because there all locales use the UTF-8 # encoding, even the locale fr_FR, thus the output comes out in UTF-8. +# This test fails if the gettext package was configured with --disable-nls, +# because in this case the gettext-runtime/src/gettext program does not do +# any message catalog lookups. + cat <<\EOF > prog.sh #! /bin/sh