]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Provide better SKIP explanations.
authorBruno Haible <bruno@clisp.org>
Fri, 9 Jun 2006 20:24:52 +0000 (20:24 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:13:22 +0000 (12:13 +0200)
gettext-tools/tests/ChangeLog
gettext-tools/tests/lang-pascal
gettext-tools/tests/lang-python-1
gettext-tools/tests/lang-python-2

index c3f5833e6b77f1ed113e07cee09ef198804c259f..7976eb81bca9aeb0f6acf4c8d7a115c3655ee562 100644 (file)
@@ -1,3 +1,10 @@
+2006-06-04  Bruno Haible  <bruno@clisp.org>
+
+       Provide better SKIP explanations.
+       * lang-pascal (UTF8_LOCALE_UNSUPPORTED): New variable.
+       * lang-python-1: Likewise.
+       * lang-python-2: Likewise.
+
 2006-06-03  Bruno Haible  <bruno@clisp.org>
 
        * lang-php: Fix version recognition for PHP 4.
index 4c58581411dbff828280b20e9e4eb4753b4c2155..a1af057211b506baa33fc79a774b5cde284592be 100755 (executable)
@@ -6,7 +6,7 @@
 # Note: This test fails with fpk 1.0.10 when an UTF-8 locale is present,
 # because fpk ignores the locale's encoding. It supports only unibyte locales.
 # This here is a quick workaround:
-LOCALE_FR_UTF8=none
+UTF8_LOCALE_UNSUPPORTED=yes
 
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
@@ -102,18 +102,29 @@ if test $LOCALE_FR != none; then
   : ${DIFF=diff}
   ${DIFF} prog.ok prog.out || exit 1
 fi
-if test $LOCALE_FR_UTF8 != none; then
-  LANGUAGE= LC_ALL= LC_MESSAGES= LC_CTYPE= LANG=$LOCALE_FR_UTF8 ./prog > prog.out || exit 1
-  : ${DIFF=diff}
-  ${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"
+if test -z "$UTF8_LOCALE_UNSUPPORTED"; then
+  if test $LOCALE_FR_UTF8 != none; then
+    LANGUAGE= LC_ALL= LC_MESSAGES= LC_CTYPE= LANG=$LOCALE_FR_UTF8 ./prog > prog.out || exit 1
+    : ${DIFF=diff}
+    ${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
+else
+  if test $LOCALE_FR = none; then
+    if test -f /usr/bin/localedef; then
+      echo "Skipping test: no traditional french locale is installed"
+    else
+      echo "Skipping test: no traditional french locale is supported"
+    fi
+    rm -fr $tmpfiles; exit 77
   fi
-  rm -fr $tmpfiles; exit 77
 fi
 
 rm -fr $tmpfiles
index 7d38235d5b3e6cf7d079d9df54cf6dea4d508240..53dc8226db42720da6c2b542cebfdc8e29a9982e 100755 (executable)
@@ -4,7 +4,7 @@
 
 # Note: This test fails with Python 2.3, 2.4 when an UTF-8 locale is present.
 # It looks like a bug in Python's gettext.py. This here is a quick workaround:
-LOCALE_FR_UTF8=none
+UTF8_LOCALE_UNSUPPORTED=yes
 
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
@@ -93,17 +93,28 @@ if test $LOCALE_FR != none; then
   LANGUAGE= LC_ALL=$LOCALE_FR python prog.py > prog.out || exit 1
   ${DIFF} prog.ok prog.out || exit 1
 fi
-if test $LOCALE_FR_UTF8 != none; then
-  LANGUAGE= LC_ALL=$LOCALE_FR_UTF8 python prog.py > prog.out || exit 1
-  ${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"
+if test -z "$UTF8_LOCALE_UNSUPPORTED"; then
+  if test $LOCALE_FR_UTF8 != none; then
+    LANGUAGE= LC_ALL=$LOCALE_FR_UTF8 python prog.py > prog.out || exit 1
+    ${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
+else
+  if test $LOCALE_FR = none; then
+    if test -f /usr/bin/localedef; then
+      echo "Skipping test: no traditional french locale is installed"
+    else
+      echo "Skipping test: no traditional french locale is supported"
+    fi
+    rm -fr $tmpfiles; exit 77
   fi
-  rm -fr $tmpfiles; exit 77
 fi
 
 rm -fr $tmpfiles
index b1e10c7b91bc5f22ec0ae66dff4d759d02533ff8..3371eee55df68afe5d7a6bc0d7b2f2508e6eebde 100755 (executable)
@@ -5,7 +5,7 @@
 
 # Note: This test fails with Python 2.3, 2.4 when an UTF-8 locale is present.
 # It looks like a bug in Python's gettext.py. This here is a quick workaround:
-LOCALE_FR_UTF8=none
+UTF8_LOCALE_UNSUPPORTED=yes
 
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
@@ -114,17 +114,28 @@ if test $LOCALE_FR != none; then
   LANGUAGE= LC_ALL=$LOCALE_FR python prog.py 2 > prog.out || exit 1
   ${DIFF} prog.ok prog.out || exit 1
 fi
-if test $LOCALE_FR_UTF8 != none; then
-  LANGUAGE= LC_ALL=$LOCALE_FR_UTF8 python prog.py 2 > prog.out || exit 1
-  ${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"
+if test -z "$UTF8_LOCALE_UNSUPPORTED"; then
+  if test $LOCALE_FR_UTF8 != none; then
+    LANGUAGE= LC_ALL=$LOCALE_FR_UTF8 python prog.py 2 > prog.out || exit 1
+    ${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
+else
+  if test $LOCALE_FR = none; then
+    if test -f /usr/bin/localedef; then
+      echo "Skipping test: no traditional french locale is installed"
+    else
+      echo "Skipping test: no traditional french locale is supported"
+    fi
+    rm -fr $tmpfiles; exit 77
   fi
-  rm -fr $tmpfiles; exit 77
 fi
 
 rm -fr $tmpfiles