diff options
author | Bruno Haible <bruno@clisp.org> | 2020-01-05 12:23:37 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2020-01-05 12:26:45 +0100 |
commit | aca8cb793a857b254b8244f8e7cb528fa0d023ab (patch) | |
tree | af0a11be7674f59a0be69e388fd8fb716822fd4c /tests/test-mbstoc32s-1.sh | |
parent | 8208c314448c4a26beda29b9666a5626521b7312 (diff) | |
download | gnulib-aca8cb793a857b254b8244f8e7cb528fa0d023ab.tar.gz |
mbstoc32s: Add tests.
* tests/test-mbstoc32s.c: New file, based on tests/test-mbsrtoc32s.c.
* tests/test-mbstoc32s-1.sh: New file, based on
tests/test-mbsrtoc32s-1.sh.
* tests/test-mbstoc32s-2.sh: New file, based on
tests/test-mbsrtoc32s-2.sh.
* tests/test-mbstoc32s-3.sh: New file, based on
tests/test-mbsrtoc32s-3.sh.
* tests/test-mbstoc32s-4.sh: New file, based on
tests/test-mbsrtoc32s-4.sh.
* modules/mbstoc32s-tests: New file, based on modules/mbsrtoc32s-tests.
Diffstat (limited to 'tests/test-mbstoc32s-1.sh')
-rwxr-xr-x | tests/test-mbstoc32s-1.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/test-mbstoc32s-1.sh b/tests/test-mbstoc32s-1.sh new file mode 100755 index 0000000000..24d80f2023 --- /dev/null +++ b/tests/test-mbstoc32s-1.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +# Test in an ISO-8859-1 or ISO-8859-15 locale. +: ${LOCALE_FR=fr_FR} +if test $LOCALE_FR = none; then + if test -f /usr/bin/localedef; then + echo "Skipping test: no traditional french locale is installed" + else + echo "Skipping test: no traditional french locale is supported" + fi + exit 77 +fi + +LC_ALL=$LOCALE_FR \ +${CHECKER} ./test-mbstoc32s${EXEEXT} 1 |