summaryrefslogtreecommitdiff
path: root/jni/iconv/tests/check-translitfailure
diff options
context:
space:
mode:
authorJari Vetoniemi <jari.vetoniemi@indooratlas.com>2020-03-16 18:49:26 +0900
committerJari Vetoniemi <jari.vetoniemi@indooratlas.com>2020-03-30 00:39:06 +0900
commitfcbf63e62c627deae76c1b8cb8c0876c536ed811 (patch)
tree64cb17de3f41a2b6fef2368028fbd00349946994 /jni/iconv/tests/check-translitfailure
Fresh start
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 $?