icu/internaltests/run_x-windows-949_test.csh
changeset 39 65491902381c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/icu/internaltests/run_x-windows-949_test.csh	Tue Nov 02 11:29:20 2010 +0100
@@ -0,0 +1,29 @@
+#!/bin/csh
+#   Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
+
+set path=( $path /usr/bin /usr/sbin /bin )
+
+set PROCESSOR='32 64'
+set tmpfile=/tmp/.hj$$.txt
+
+foreach j ($PROCESSOR)
+	/bin/rm -f x-windows-949_conv_test-$j-log.txt
+	/bin/rm -f $tmpfile
+	echo "uconv -f x-windows-949 -t UTF-8 ./x-windows-949.txt >! $tmpfile" \
+		|& tee -a x-windows-949_conv_test-$j-log.txt
+	uconv -f x-windows-949 -t UTF-8 ./x-windows-949.txt >! $tmpfile |& \
+		tee -a x-windows-949_conv_test-$j-log.txt
+	/usr/bin/diff $tmpfile ./UTF-8-converted-from-x-windows-949.txt >&! /dev/null
+	if ($status == 0) then
+		echo "Conversion successful." |& tee -a x-windows-949_conv_test-$j-log.txt
+	else
+		echo "Conversion failed." |& tee -a x-windows-949_conv_test-$j-log.txt
+	endif
+end
+
+echo "Log file(s), x-windows-949_conv_test-{32,64}-log.txt, can be "
+echo "found at the current directory."
+
+/bin/rm -f $tmpfile
+
+exit 0;