icu/internaltests/run_ucnv_toUChars.csh
author Pavel Heimlich <pavel.heimlich@oracle.com>
Mon, 08 Nov 2010 11:35:41 +0100
changeset 41 fb57b25feaf0
parent 39 65491902381c
child 58 de913f9e3e2b
permissions -rw-r--r--
fix failing internal tests

#!/bin/csh
#   Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.

set path=( $path /usr/bin /usr/sbin /bin )

set LOCALES='C en_US.UTF-8 en_US.ISO8859-1 ja_JP.PCK de_DE.ISO8859-15 ko_KR.EUC zh_CN.EUC zh_TW.EUC en_US de_DE.ISO8859-1'
set PROCESSOR='32 64'

foreach j ($PROCESSOR)
	/bin/rm -f ucnv_toUChars-$j-log.txt
	foreach i ($LOCALES)
		/bin/rm -f ./core
		echo "env LANG=$i ./ucnv_toUChars-$j" |& \
			tee -a ucnv_toUChars-$j-log.txt
		env LANG=$i ./ucnv_toUChars-$j |& \
			tee -a ucnv_toUChars-$j-log.txt
		if ( -f ./core ) echo "ERROR: core file found."
	end
end

echo "Log file(s), ucnv_toUChars-{32,64}-log.txt, can be "
echo "found at the current directory."

exit 0;