Mercurial > gnulib
annotate tests/test-setlocale2.sh @ 40221:8c1a17df67e0
tests: Prepare for using valgrind.
tests/*.sh: Invoke all test programs through ${CHECKER}.
tests/*/*.sh: Likewise.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 10 Mar 2019 11:32:11 +0100 |
parents | fc8be28143d4 |
children |
rev | line source |
---|---|
14333
e58fa64818aa
setlocale: Workaround native Windows bug.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
1 #!/bin/sh |
e58fa64818aa
setlocale: Workaround native Windows bug.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
2 |
e58fa64818aa
setlocale: Workaround native Windows bug.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
3 # Test locale names with likely unsupported encoding in Unix syntax. |
e58fa64818aa
setlocale: Workaround native Windows bug.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
4 for name in ar_SA.ISO-8859-1 fr_FR.CP1251 zh_TW.GB18030 zh_CN.BIG5; do |
40221
8c1a17df67e0
tests: Prepare for using valgrind.
Bruno Haible <bruno@clisp.org>
parents:
19241
diff
changeset
|
5 env LC_ALL=$name ${CHECKER} ./test-setlocale2${EXEEXT} 1 || exit 1 |
14333
e58fa64818aa
setlocale: Workaround native Windows bug.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
6 done |
e58fa64818aa
setlocale: Workaround native Windows bug.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
7 |
e58fa64818aa
setlocale: Workaround native Windows bug.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
8 # Test locale names with likely unsupported encoding in native Windows syntax. |
e58fa64818aa
setlocale: Workaround native Windows bug.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
9 for name in "Arabic_Saudi Arabia.1252" "Arabic_Saudi Arabia.65001" \ |
e58fa64818aa
setlocale: Workaround native Windows bug.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
10 French_France.65001 Japanese_Japan.65001 Turkish_Turkey.65001 \ |
e58fa64818aa
setlocale: Workaround native Windows bug.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
11 Chinese_Taiwan.65001 Chinese_China.54936 Chinese_China.65001; do |
16258
51e5394036c6
setlocale tests: Avoid test failure on Solaris 11 2011-11.
Bruno Haible <bruno@clisp.org>
parents:
14333
diff
changeset
|
12 # Here we use 'env' to set the LC_ALL environment variable, because on |
19241
fc8be28143d4
all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
Bruno Haible <bruno@clisp.org>
parents:
16258
diff
changeset
|
13 # Solaris 11.0, the /bin/sh refuses to do it for Turkish_Turkey.65001. |
40221
8c1a17df67e0
tests: Prepare for using valgrind.
Bruno Haible <bruno@clisp.org>
parents:
19241
diff
changeset
|
14 env LC_ALL="$name" ${CHECKER} ./test-setlocale2${EXEEXT} 1 || exit 1 |
14333
e58fa64818aa
setlocale: Workaround native Windows bug.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
15 done |
e58fa64818aa
setlocale: Workaround native Windows bug.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
16 |
e58fa64818aa
setlocale: Workaround native Windows bug.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
17 exit 0 |