1#! /bin/sh 2# Do not edit this file! 3# this file is generated by 'generate_test.pl'. 4 5# 6# Maaping test. 7# Combined map procedure name "tr46-processing-deviation". 8# The input name is U+0132 + U+0302 + U+3002 + U+00DF 9# (ligature IJ + circumflex + ideographic full stop + sharp S). 10# 11# api: encodename 12# local_encoding: U-escape 13# conf: map tr46-processing-deviation 14# from: \u{132}\u{302}\u{3002}\u{df} 15# actions: IDN_UNICODECONV IDN_MAP IDN_LOCALCONV 16# result: success 17# to: i\u{135}.ss 18 19################## setup ################## 20 21unset LC_ALL 22unset LC_CTYPE 23unset LC_MESSAGES 24unset LANG 25unset IDN_LOCAL_CODESET 26unset IDN_LOG_LEVEL 27 28SRCDIR=`dirname $0` 29SYSCONFDIR=${SYSCONFDIR-"/etc"} 30IGNORE=false 31export IDN_LOCAL_CODESET; IDN_LOCAL_CODESET=U-escape 32 33rm -f idn2.conf 34touch idn2.conf 35echo 'map tr46-processing-deviation' >> idn2.conf 36 37rm -f localmap1 38rm -f localmap2 39rm -f localmap3 40rm -f localmap4 41rm -f localset 42rm -f expect.txt 43rm -f output.txt 44 45################## test ################## 46 47echo 'from: \u{132}\u{302}\u{3002}\u{df}' >> expect.txt 48echo 'result: success' >> expect.txt 49echo 'to: i\u{135}.ss' >> expect.txt 50../common/test_encodename -conffile=idn2.conf -localcheckfile= -unicodeconv -map -localconv -- '\u{132}\u{302}\u{3002}\u{df}' > output.txt 51 52################## teardown ################## 53 54cmp expect.txt output.txt > /dev/null 2>&1 55RESULT=$? 56[ X$IGNORE = Xtrue ] && RESULT=77 57if [ X$QUIET != Xtrue ]; then 58 if [ $RESULT -eq 0 ]; then 59 echo "PASS: $0" 60 elif [ $RESULT -eq 77 ]; then 61 echo "SKIP: $0" 62 else 63 echo "FAIL: $0" 64 fi 65fi 66[ $RESULT -eq 0 -o $RESULT -eq 77 ] || exit $RESULT 67rm -f idn2.conf 68rm -f localmap1 69rm -f localmap2 70rm -f localmap3 71rm -f localmap4 72rm -f localset 73rm -f expect.txt 74rm -f output.txt 75exit $RESULT 76