test-framework-sh: Don't leave temporary directories on NetBSD.
[gnulib.git] / tests / test-c32toupper.sh
blob6eed37d908a1e03dafda1015f0e39388e042f999
1 #!/bin/sh
3 # Allow distinguishing the various invocations in the .log file.
4 set -x
6 # Test in the POSIX locale.
7 LC_ALL=C ${CHECKER} ./test-c32toupper${EXEEXT} 0 || exit 1
8 LC_ALL=POSIX ${CHECKER} ./test-c32toupper${EXEEXT} 0 || exit 1
10 # Test in an ISO-8859-1 or ISO-8859-15 locale.
11 : "${LOCALE_FR=fr_FR}"
12 if test $LOCALE_FR != none; then
13 LC_ALL=$LOCALE_FR \
14 ${CHECKER} ./test-c32toupper${EXEEXT} 1 \
15 || exit 1
18 # Test whether a specific EUC-JP locale is installed.
19 : "${LOCALE_JA=ja_JP}"
20 if test $LOCALE_JA != none; then
21 LC_ALL=$LOCALE_JA \
22 ${CHECKER} ./test-c32toupper${EXEEXT} 2 \
23 || exit 1
26 # Test whether a specific UTF-8 locale is installed.
27 : "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
28 if test $LOCALE_FR_UTF8 != none; then
29 LC_ALL=$LOCALE_FR_UTF8 \
30 ${CHECKER} ./test-c32toupper${EXEEXT} 3 \
31 || exit 1
34 # Test whether a specific GB18030 locale is installed.
35 : "${LOCALE_ZH_CN=zh_CN.GB18030}"
36 if test $LOCALE_ZH_CN != none; then
37 LC_ALL=$LOCALE_ZH_CN \
38 ${CHECKER} ./test-c32toupper${EXEEXT} 4
39 case $? in
40 0 | 77) ;;
41 *) exit 1 ;;
42 esac
45 exit 0