diff --git a/tools/release/c/allLocaleTest.sh b/tools/release/c/allLocaleTest.sh new file mode 100755 index 00000000000..cb705a5c649 --- /dev/null +++ b/tools/release/c/allLocaleTest.sh @@ -0,0 +1,11 @@ +#!/bin/sh +echo "Testing $1 in all locales" +outfile=$1-locale.txt +echo "" > $outfile +for loc in `locale -a`; do +echo LC_ALL=$loc >> $outfile +LC_ALL=$loc make check >> $outfile +done + +echo "Done testing $1 in all locales" + diff --git a/tools/release/c/allTimezoneTest.sh b/tools/release/c/allTimezoneTest.sh new file mode 100755 index 00000000000..3878453178c --- /dev/null +++ b/tools/release/c/allTimezoneTest.sh @@ -0,0 +1,12 @@ +#!/bin/bash +echo "Testing $1 in all timezones" +outfile=$1-timezone.txt +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 +done + +echo "Done testing $1 in all timezones" + diff --git a/tools/release/c/environmentTest.sh b/tools/release/c/environmentTest.sh new file mode 100755 index 00000000000..5fa82be6831 --- /dev/null +++ b/tools/release/c/environmentTest.sh @@ -0,0 +1,20 @@ +#!/bin/sh +# +# This test script enumerates all locales and all timezones installed on a +# 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 +release_tools_dir=../../../../tools/release/c +cd $top_icu_dir/source/test/intltest +$release_tools_dir/allLocaleTest.sh intltest & +$release_tools_dir/allTimezoneTest.sh intltest & +cd ../iotest +$release_tools_dir/allLocaleTest.sh iotest & +$release_tools_dir/allTimezoneTest.sh iotest & +cd ../cintltst +$release_tools_dir/allLocaleTest.sh cintltst & +$release_tools_dir/allTimezoneTest.sh cintltst & + +echo "All tests have been spawned." +echo "Please wait while the tests run. This may take a while."