summaryrefslogtreecommitdiff
path: root/tests/test-mbstoc32s-1.sh
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2020-01-05 12:23:37 +0100
committerBruno Haible <bruno@clisp.org>2020-01-05 12:26:45 +0100
commitaca8cb793a857b254b8244f8e7cb528fa0d023ab (patch)
treeaf0a11be7674f59a0be69e388fd8fb716822fd4c /tests/test-mbstoc32s-1.sh
parent8208c314448c4a26beda29b9666a5626521b7312 (diff)
downloadgnulib-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-xtests/test-mbstoc32s-1.sh15
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