diff options
author | Bruno Haible <bruno@clisp.org> | 2020-01-09 16:21:53 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2020-01-09 16:21:53 +0100 |
commit | f5eb8cea72469348b423ae22068eeb9e1399011b (patch) | |
tree | 0c12ee6ddf2bdb02a77ee1009de6939cbc491ace /tests/test-c32srtombs-2.sh | |
parent | ef3398710f4b3cff37dcbdb4fdb267f3dcdb9fbe (diff) | |
download | gnulib-f5eb8cea72469348b423ae22068eeb9e1399011b.tar.gz |
c32srtombs: Add tests.
* tests/test-c32srtombs.c: New file, based on tests/test-wcsrtombs.c.
* tests/test-c32srtombs-1.sh: New file, based on
tests/test-wcsrtombs1.sh.
* tests/test-c32srtombs-2.sh: New file, based on
tests/test-wcsrtombs2.sh.
* tests/test-c32srtombs-3.sh: New file, based on
tests/test-wcsrtombs3.sh.
* tests/test-c32srtombs-4.sh: New file, based on
tests/test-wcsrtombs4.sh.
* modules/c32srtombs-tests: New file, based on modules/wcsrtombs-tests.
Diffstat (limited to 'tests/test-c32srtombs-2.sh')
-rwxr-xr-x | tests/test-c32srtombs-2.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/test-c32srtombs-2.sh b/tests/test-c32srtombs-2.sh new file mode 100755 index 0000000000..c0dd1720bb --- /dev/null +++ b/tests/test-c32srtombs-2.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +# Test whether a specific UTF-8 locale is installed. +: ${LOCALE_FR_UTF8=fr_FR.UTF-8} +if test $LOCALE_FR_UTF8 = none; then + if test -f /usr/bin/localedef; then + echo "Skipping test: no french Unicode locale is installed" + else + echo "Skipping test: no french Unicode locale is supported" + fi + exit 77 +fi + +LC_ALL=$LOCALE_FR_UTF8 \ +${CHECKER} ./test-c32srtombs${EXEEXT} 2 |