From fd22341aab3b6396e980427e171c557dc9187422 Mon Sep 17 00:00:00 2001 From: Eric Mader Date: Thu, 12 Jun 2008 01:02:39 +0000 Subject: [PATCH] ICU-6337 Change scripits to supply separate test file names to iotest for testing locales and timezones. X-SVN-Rev: 24159 --- tools/release/c/allLocaleTest.sh | 2 +- tools/release/c/allTimezoneTest.sh | 2 +- tools/release/c/environmentTest.sh | 10 ++++++---- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/tools/release/c/allLocaleTest.sh b/tools/release/c/allLocaleTest.sh index fe1acade80b..e3a074f294a 100755 --- a/tools/release/c/allLocaleTest.sh +++ b/tools/release/c/allLocaleTest.sh @@ -7,7 +7,7 @@ outfile=$1-locale.txt echo "" > $outfile for loc in `locale -a`; do echo LC_ALL=$loc >> $outfile -LC_ALL=$loc make check >> $outfile 2>&1 +LC_ALL=$loc make check $2 >> $outfile 2>&1 done echo "Done testing $1 in all locales" diff --git a/tools/release/c/allTimezoneTest.sh b/tools/release/c/allTimezoneTest.sh index ff5a0e18c2f..923148e3a1f 100755 --- a/tools/release/c/allTimezoneTest.sh +++ b/tools/release/c/allTimezoneTest.sh @@ -8,7 +8,7 @@ echo "" > $outfile for timezone in `locate /usr/share/zoneinfo/|fgrep -v /right/|fgrep -v /posix/`; do timezone=${timezone#/usr/share/zoneinfo/} echo TZ=$timezone >> $outfile -TZ=$timezone make check >> $outfile 2>&1 +TZ=$timezone make check $2 >> $outfile 2>&1 done echo "Done testing $1 in all timezones" diff --git a/tools/release/c/environmentTest.sh b/tools/release/c/environmentTest.sh index 9546b61f6a2..f423e2db3f9 100755 --- a/tools/release/c/environmentTest.sh +++ b/tools/release/c/environmentTest.sh @@ -6,14 +6,16 @@ # machine (usually Linux), and runs the existing ICU4C tests to make sure that # the tests pass. Not everyone is using and testing ICU4C in the en_US locale # with the Pacific timezone. -top_icu_dir=../../../icu +#top_icu_dir=../../../icu +top_icu_dir=../../../build/release release_tools_dir=../../../../tools/release/c -cd $top_icu_dir/source/test/intltest +#cd $top_icu_dir/source/test/intltest +cd $top_icu_dir/test/intltest $release_tools_dir/allLocaleTest.sh intltest & $release_tools_dir/allTimezoneTest.sh intltest & cd ../iotest -# iotest uses a fixed filename for tests, so can't run in parallel -$release_tools_dir/allLocaleTest.sh iotest; $release_tools_dir/allTimezoneTest.sh iotest & +$release_tools_dir/allLocaleTest.sh iotest IOTEST_OPTS=iotest-c-loc.txt & +$release_tools_dir/allTimezoneTest.sh iotest IOTEST_OPTS=iotest-c-tz.txt & cd ../cintltst $release_tools_dir/allLocaleTest.sh cintltst & $release_tools_dir/allTimezoneTest.sh cintltst &