diff options
author | Bruno Haible <bruno@clisp.org> | 2020-01-13 00:17:47 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2020-01-13 00:17:47 +0100 |
commit | 611869be9f1083e53305446d90a2909fc89914ef (patch) | |
tree | 60f86456e02080eecad61f4b5842af28109e8a00 /tests/test-c32stombs-1.sh | |
parent | 0296188c2fea8f448b846e5510b8f7873bb79b53 (diff) | |
download | gnulib-611869be9f1083e53305446d90a2909fc89914ef.tar.gz |
c32stombs: Add tests.
* tests/test-c32stombs.c: New file, based on tests/test-c32srtombs.c.
* tests/test-c32stombs-1.sh: New file, based on
tests/test-c32srtombs-1.sh.
* tests/test-c32stombs-2.sh: New file, based on
tests/test-c32srtombs-2.sh.
* tests/test-c32stombs-3.sh: New file, based on
tests/test-c32srtombs-3.sh.
* tests/test-c32stombs-4.sh: New file, based on
tests/test-c32srtombs-4.sh.
* modules/c32stombs-tests: New file, based on modules/c32srtombs-tests.
Diffstat (limited to 'tests/test-c32stombs-1.sh')
-rwxr-xr-x | tests/test-c32stombs-1.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/test-c32stombs-1.sh b/tests/test-c32stombs-1.sh new file mode 100755 index 0000000000..ea63e9aca3 --- /dev/null +++ b/tests/test-c32stombs-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-c32stombs${EXEEXT} 1 |