Mercurial > gnulib
comparison 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 |
comparison
equal
deleted
inserted
replaced
40220:2796695e9216 | 40221:8c1a17df67e0 |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 | 2 |
3 # Test locale names with likely unsupported encoding in Unix syntax. | 3 # Test locale names with likely unsupported encoding in Unix syntax. |
4 for name in ar_SA.ISO-8859-1 fr_FR.CP1251 zh_TW.GB18030 zh_CN.BIG5; do | 4 for name in ar_SA.ISO-8859-1 fr_FR.CP1251 zh_TW.GB18030 zh_CN.BIG5; do |
5 env LC_ALL=$name ./test-setlocale2${EXEEXT} 1 || exit 1 | 5 env LC_ALL=$name ${CHECKER} ./test-setlocale2${EXEEXT} 1 || exit 1 |
6 done | 6 done |
7 | 7 |
8 # Test locale names with likely unsupported encoding in native Windows syntax. | 8 # Test locale names with likely unsupported encoding in native Windows syntax. |
9 for name in "Arabic_Saudi Arabia.1252" "Arabic_Saudi Arabia.65001" \ | 9 for name in "Arabic_Saudi Arabia.1252" "Arabic_Saudi Arabia.65001" \ |
10 French_France.65001 Japanese_Japan.65001 Turkish_Turkey.65001 \ | 10 French_France.65001 Japanese_Japan.65001 Turkish_Turkey.65001 \ |
11 Chinese_Taiwan.65001 Chinese_China.54936 Chinese_China.65001; do | 11 Chinese_Taiwan.65001 Chinese_China.54936 Chinese_China.65001; do |
12 # Here we use 'env' to set the LC_ALL environment variable, because on | 12 # Here we use 'env' to set the LC_ALL environment variable, because on |
13 # Solaris 11.0, the /bin/sh refuses to do it for Turkish_Turkey.65001. | 13 # Solaris 11.0, the /bin/sh refuses to do it for Turkish_Turkey.65001. |
14 env LC_ALL="$name" ./test-setlocale2${EXEEXT} 1 || exit 1 | 14 env LC_ALL="$name" ${CHECKER} ./test-setlocale2${EXEEXT} 1 || exit 1 |
15 done | 15 done |
16 | 16 |
17 exit 0 | 17 exit 0 |