summaryrefslogtreecommitdiffstats
path: root/gettext-tools
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2015-06-24 10:53:22 +0900
committerDaiki Ueno <ueno@gnu.org>2015-06-24 10:53:22 +0900
commit656f1ee45975aa9a262232abc835ba118d0d98ae (patch)
treeffd5d41e0eb4298d7e8fa51b219d945b41eaab51 /gettext-tools
parent945abda2f0fe59bf8ad1871f4d82b69479c75515 (diff)
downloadexternal_gettext-656f1ee45975aa9a262232abc835ba118d0d98ae.zip
external_gettext-656f1ee45975aa9a262232abc835ba118d0d98ae.tar.gz
external_gettext-656f1ee45975aa9a262232abc835ba118d0d98ae.tar.bz2
tests: Skip CLDR tests when libexpat is missing
* gettext-tools/tests/cldr-plurals-1: Skip if XML is not supported. * gettext-tools/tests/msginit-4: Likewise.
Diffstat (limited to 'gettext-tools')
-rw-r--r--gettext-tools/tests/ChangeLog5
-rwxr-xr-xgettext-tools/tests/cldr-plurals-16
-rwxr-xr-xgettext-tools/tests/msginit-47
3 files changed, 18 insertions, 0 deletions
diff --git a/gettext-tools/tests/ChangeLog b/gettext-tools/tests/ChangeLog
index dc7aa3e..6c10a38 100644
--- a/gettext-tools/tests/ChangeLog
+++ b/gettext-tools/tests/ChangeLog
@@ -1,5 +1,10 @@
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.
* format-kde-kuit-2: Likewise.
Suggested by Chusslove Illich.
diff --git a/gettext-tools/tests/cldr-plurals-1 b/gettext-tools/tests/cldr-plurals-1
index 15f3909..e593812 100755
--- a/gettext-tools/tests/cldr-plurals-1
+++ b/gettext-tools/tests/cldr-plurals-1
@@ -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
diff --git a/gettext-tools/tests/msginit-4 b/gettext-tools/tests/msginit-4
index 161914e..369f152 100755
--- a/gettext-tools/tests/msginit-4
+++ b/gettext-tools/tests/msginit-4
@@ -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