summaryrefslogtreecommitdiff
path: root/jni/iconv/tests/check-translit
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-translit
Fresh start
Diffstat (limited to 'jni/iconv/tests/check-translit')
-rwxr-xr-xjni/iconv/tests/check-translit12
1 files changed, 12 insertions, 0 deletions
diff --git a/jni/iconv/tests/check-translit b/jni/iconv/tests/check-translit
new file mode 100755
index 0000000..babc91e
--- /dev/null
+++ b/jni/iconv/tests/check-translit
@@ -0,0 +1,12 @@
+#!/bin/sh
+# Simple check of transliteration facilities.
+# Usage: check-translit SRCDIR FILE FROMCODE TOCODE
+srcdir="$1"
+file="$2"
+fromcode="$3"
+tocode="$4"
+set -e
+../src/iconv_no_i18n -f "$fromcode" -t "$tocode"//TRANSLIT < "${srcdir}"/"$file"."$fromcode" > tmp
+cmp "${srcdir}"/"$file"."$tocode" tmp
+rm -f tmp
+exit 0