annotate tests/test-btowc2.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 5bfbc476aa57
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10896
5bfbc476aa57 Tests for module 'btowc'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 #!/bin/sh
5bfbc476aa57 Tests for module 'btowc'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
2
5bfbc476aa57 Tests for module 'btowc'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3 # Test whether a specific UTF-8 locale is installed.
5bfbc476aa57 Tests for module 'btowc'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 : ${LOCALE_FR_UTF8=fr_FR.UTF-8}
5bfbc476aa57 Tests for module 'btowc'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 if test $LOCALE_FR_UTF8 = none; then
5bfbc476aa57 Tests for module 'btowc'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 if test -f /usr/bin/localedef; then
5bfbc476aa57 Tests for module 'btowc'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 echo "Skipping test: no french Unicode locale is installed"
5bfbc476aa57 Tests for module 'btowc'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8 else
5bfbc476aa57 Tests for module 'btowc'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 echo "Skipping test: no french Unicode locale is supported"
5bfbc476aa57 Tests for module 'btowc'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 fi
5bfbc476aa57 Tests for module 'btowc'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 exit 77
5bfbc476aa57 Tests for module 'btowc'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 fi
5bfbc476aa57 Tests for module 'btowc'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13
5bfbc476aa57 Tests for module 'btowc'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14 LC_ALL=$LOCALE_FR_UTF8 \
40221
8c1a17df67e0 tests: Prepare for using valgrind.
Bruno Haible <bruno@clisp.org>
parents: 10896
diff changeset
15 ${CHECKER} ./test-btowc${EXEEXT} 2