summaryrefslogtreecommitdiffstats
path: root/gettext-tools/tests/lang-perl-1
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2006-06-09 20:22:17 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:13:22 +0200
commitb83b91e1eef5d017dde3b37f26c1e75ed9652f53 (patch)
treeebacb7df968afdc252e5e23c5e98db95cc78104b /gettext-tools/tests/lang-perl-1
parentccd9227fe12e0bc51451ffdcbf18b19fe11eb927 (diff)
downloadexternal_gettext-b83b91e1eef5d017dde3b37f26c1e75ed9652f53.zip
external_gettext-b83b91e1eef5d017dde3b37f26c1e75ed9652f53.tar.gz
external_gettext-b83b91e1eef5d017dde3b37f26c1e75ed9652f53.tar.bz2
Explain why tests are skipped.
Diffstat (limited to 'gettext-tools/tests/lang-perl-1')
-rwxr-xr-xgettext-tools/tests/lang-perl-19
1 files changed, 8 insertions, 1 deletions
diff --git a/gettext-tools/tests/lang-perl-1 b/gettext-tools/tests/lang-perl-1
index ccd2d85..fc3ed89 100755
--- a/gettext-tools/tests/lang-perl-1
+++ b/gettext-tools/tests/lang-perl-1
@@ -101,7 +101,9 @@ EOF
# Test for perl with Locale::Messages package.
perl -e 'use Locale::Messages;' 2>/dev/null \
- || { rm -fr $tmpfiles; exit 77; }
+ || { echo "Skipping test: perl package Locale::Messages is not installed"
+ rm -fr $tmpfiles; exit 77
+ }
: ${LOCALE_FR=fr_FR}
: ${LOCALE_FR_UTF8=fr_FR.UTF-8}
@@ -114,6 +116,11 @@ if test $LOCALE_FR_UTF8 != none; then
${DIFF} prog.oku prog.out || exit 1
fi
if test $LOCALE_FR = none && test $LOCALE_FR_UTF8 = none; then
+ if test -f /usr/bin/localedef; then
+ echo "Skipping test: no french locale is installed"
+ else
+ echo "Skipping test: no french locale is supported"
+ fi
rm -fr $tmpfiles; exit 77
fi