1#!/bin/sh 2set -x 3case `uname -p` in 4 i586) 5 SIZES="-DJVM_EXTRA_OPTIONS=-Xmx2100m" 6 ;; 7 8 powerpc) 9 SIZES="-DJVM_EXTRA_OPTIONS=-Xmx5000m" 10 ;; 11 12 x86_64) 13 SIZES="-DJVM_EXTRA_OPTIONS=-Xmx4500m" 14 ;; 15 16 *) 17 SIZES="-DJVM_EXTRA_OPTIONS=-Xmx2000m" 18 ;; 19esac 20if [ -d tools/cldr-unittest ]; 21then 22 # from r10119 unittests are in tools/cldr-unittest 23 cd tools/cldr-unittest 24elif [ -d tools/java ]; 25then 26 cd tools/java 27else 28 echo Cant find test dir 29 pwd 30 exit 1 31fi 32exec ant -f build.xml -DCLDR_DIR=../.. ${SIZES} check 33 34