summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2016-12-16 00:25:18 +0100
committerBruno Haible <bruno@clisp.org>2016-12-16 00:25:18 +0100
commit3e1b7955c1f95428a974b6f335c62e20dcbca84b (patch)
treec9c6c1c2d68887cd2c1cfdf43f5ac10111e99ed0
parentdea676293993e16ae50119ce1edfcc18e586c3f7 (diff)
downloadgettext-3e1b7955c1f95428a974b6f335c62e20dcbca84b.tar.gz
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.
-rwxr-xr-xgettext-tools/tests/lang-bash4
-rwxr-xr-xgettext-tools/tests/lang-c4
-rwxr-xr-xgettext-tools/tests/lang-c++4
-rwxr-xr-xgettext-tools/tests/lang-objc4
-rwxr-xr-xgettext-tools/tests/lang-sh4
5 files changed, 20 insertions, 0 deletions
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 <libintl.h> header file.
+
cat <<\EOF > prog.c
#include "config.h"
#include <libintl.h>
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 <libintl.h> 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 <libintl.h> header file.
+
# Test whether an ObjectiveC compiler is found.
cat <<\EOF > hello.m
#include <stdio.h>
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