summaryrefslogtreecommitdiff
path: root/jni/iconv/tests/check-translitfailure
diff options
context:
space:
mode:
Diffstat (limited to 'jni/iconv/tests/check-translitfailure')
-rwxr-xr-xjni/iconv/tests/check-translitfailure10
1 files changed, 10 insertions, 0 deletions
diff --git a/jni/iconv/tests/check-translitfailure b/jni/iconv/tests/check-translitfailure
new file mode 100755
index 0000000..37dd86e
--- /dev/null
+++ b/jni/iconv/tests/check-translitfailure
@@ -0,0 +1,10 @@
+#!/bin/sh
+# Simple check of transliteration failure.
+# Usage: check-translitfailure SRCDIR FILE FROMCODE TOCODE
+srcdir="$1"
+file="$2"
+fromcode="$3"
+tocode="$4"
+../src/iconv_no_i18n -f "$fromcode" -t "$tocode"//TRANSLIT < "${srcdir}"/"$file"."$fromcode" >/dev/null 2>/dev/null
+test $? = 1
+exit $?