From: Daiki Ueno Date: Wed, 24 Jun 2015 08:27:16 +0000 (+0900) Subject: tests: Skip lang-bash test for Mac OS X's bash X-Git-Tag: v0.19.5~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=362707b104c471366431a961d1fe7547bfc2ae07;p=thirdparty%2Fgettext.git tests: Skip lang-bash test for Mac OS X's bash * lang-bash: Skip if "bash --help" isn't localized on Mac OS X. --- diff --git a/gettext-tools/tests/ChangeLog b/gettext-tools/tests/ChangeLog index 59db27828..b61ebccba 100644 --- a/gettext-tools/tests/ChangeLog +++ b/gettext-tools/tests/ChangeLog @@ -1,3 +1,7 @@ +2015-06-24 Daiki Ueno + + * lang-bash: Skip if "bash --help" isn't localized on Mac OS X. + 2015-06-24 Daiki Ueno * msgfilter-8: Port the "echo -n" equivalent from gettext-2. diff --git a/gettext-tools/tests/lang-bash b/gettext-tools/tests/lang-bash index f2e0e3bb0..7c74651e5 100755 --- a/gettext-tools/tests/lang-bash +++ b/gettext-tools/tests/lang-bash @@ -116,6 +116,19 @@ if test $LOCALE_FR = none && test $LOCALE_FR_UTF8 = none; then exit 77 fi +case "$host_os" in + darwin*) + if test $LOCALE_FR != none; then + LC_ALL=$LOCALE_FR bash --help \ + | grep '^Utilisation' > /dev/null 2>&1 || exit 77 + fi + if test $LOCALE_FR_UTF8 != none; then + LC_ALL=$LOCALE_FR_UTF8 bash --help \ + | grep '^Utilisation' > /dev/null 2>&1 || exit 77 + fi + ;; +esac + # Expected result when bash is built without i18n support. cat <<\EOF > prog.nok 'Your command, please?', asked the waiter.