]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
tests: Skip CLDR tests when libexpat is missing
authorDaiki Ueno <ueno@gnu.org>
Wed, 24 Jun 2015 01:53:22 +0000 (10:53 +0900)
committerDaiki Ueno <ueno@gnu.org>
Wed, 24 Jun 2015 01:53:22 +0000 (10:53 +0900)
* gettext-tools/tests/cldr-plurals-1: Skip if XML is not supported.
* gettext-tools/tests/msginit-4: Likewise.

gettext-tools/tests/ChangeLog
gettext-tools/tests/cldr-plurals-1
gettext-tools/tests/msginit-4

index dc7aa3e77f7a09db0db880189fee838dc2280fd3..6c10a382b83cf47e32318cb592a3a26a0becc38c 100644 (file)
@@ -1,3 +1,8 @@
+2015-06-24  Daiki Ueno  <ueno@gnu.org>
+
+       * cldr-plurals-1: Skip if XML is not supported.
+       * msginit-4: Likewise.
+
 2015-06-24  Daiki Ueno  <ueno@gnu.org>
 
        * format-kde-kuit-1: Skip if KDE KUIT format is not supported.
index 15f390968bd04f2fd794795cb6a31e06919c7160..e593812ae26ff76c87320b0f1d34c504f9a7a2a6 100755 (executable)
@@ -5,6 +5,12 @@
 
 # Test conversion from CLDR to gettext, for Arabic and Russian
 
+LC_ALL=C "$top_builddir/src/cldr-plurals" ru /dev/null 2>&1 | grep 'extraction is not supported' > /dev/null 2>&1
+test $? = 0 && {
+  echo "Skipping test: cldr-plurals was built without XML support"
+  exit 77
+}
+
 cat > ar.ok <<\EOF
 nplurals=6; plural=(n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5);
 EOF
index 161914ec089106e03ef941d2022fe4c129e101b2..369f1520278ceacd0681396769985ff941a7c86c 100755 (executable)
@@ -2,6 +2,13 @@
 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
 
 # Test filling Plural-Forms: with Unicode CLDR
+
+LC_ALL=C "$top_builddir/src/cldr-plurals" ru /dev/null 2>&1 | grep 'extraction is not supported' > /dev/null 2>&1
+test $? = 0 && {
+  echo "Skipping test: cldr-plurals was built without XML support"
+  exit 77
+}
+
 cat <<\EOF > mi-test4.pot
 # SOME DESCRIPTIVE TITLE.
 # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER