]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
tests: Skip lang-bash test for Mac OS X's bash
authorDaiki Ueno <ueno@gnu.org>
Wed, 24 Jun 2015 08:27:16 +0000 (17:27 +0900)
committerDaiki Ueno <ueno@gnu.org>
Wed, 24 Jun 2015 09:14:58 +0000 (18:14 +0900)
* lang-bash: Skip if "bash --help" isn't localized on Mac OS X.

gettext-tools/tests/ChangeLog
gettext-tools/tests/lang-bash

index 59db278285807726cd63f5b2634b4f5960af18de..b61ebccba33b8f129fadd2abb2c3df91dea8e6c5 100644 (file)
@@ -1,3 +1,7 @@
+2015-06-24  Daiki Ueno  <ueno@gnu.org>
+
+       * lang-bash: Skip if "bash --help" isn't localized on Mac OS X.
+
 2015-06-24  Daiki Ueno  <ueno@gnu.org>
 
        * msgfilter-8: Port the "echo -n" equivalent from gettext-2.
index f2e0e3bb08b49c0b5db677e5c63a64d1db461256..7c74651e538317f6c09155ffbdf8e5f61f299006 100755 (executable)
@@ -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.