summaryrefslogtreecommitdiffstats
path: root/gettext-tools/tests/lang-php
diff options
context:
space:
mode:
Diffstat (limited to 'gettext-tools/tests/lang-php')
-rwxr-xr-xgettext-tools/tests/lang-php7
1 files changed, 6 insertions, 1 deletions
diff --git a/gettext-tools/tests/lang-php b/gettext-tools/tests/lang-php
index 77de6ce..987274c 100755
--- a/gettext-tools/tests/lang-php
+++ b/gettext-tools/tests/lang-php
@@ -68,7 +68,7 @@ ${MSGFMT} -o fr/LC_MESSAGES/prog.mo fr.po
# Test for presence of php version 4.0 or newer.
case `(php -v) 2>/dev/null` in
[4-9].*) ;;
- *) rm -fr $tmpfiles; exit 77;;
+ *) echo "Skipping test: php not found or too old"; rm -fr $tmpfiles; exit 77;;
esac
# Test which of the fr_FR locales are installed.
@@ -91,6 +91,11 @@ if test $LOCALE_FR_UTF8 != none; then
esac
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