summaryrefslogtreecommitdiff
path: root/tests/test-c32snrtombs-3.sh
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2020-01-10 23:29:57 +0100
committerBruno Haible <bruno@clisp.org>2020-01-10 23:29:57 +0100
commite3fb76a5a384096363eb90881f52b8535ee5a7ce (patch)
treea041816dfbf454cd93b82a873b03b03f006a30d4 /tests/test-c32snrtombs-3.sh
parent980b40b1d6464d3aa9e68d8a0c19009c6cdaf6fb (diff)
downloadgnulib-e3fb76a5a384096363eb90881f52b8535ee5a7ce.tar.gz
c32snrtombs: Add tests.
* tests/test-c32snrtombs.c: New file, based on tests/test-wcsnrtombs.c. * tests/test-c32snrtombs-1.sh: New file, based on tests/test-wcsnrtombs1.sh. * tests/test-c32snrtombs-2.sh: New file, based on tests/test-wcsnrtombs2.sh. * tests/test-c32snrtombs-3.sh: New file, based on tests/test-wcsnrtombs3.sh. * tests/test-c32snrtombs-4.sh: New file, based on tests/test-wcsnrtombs4.sh. * modules/c32snrtombs-tests: New file, based on modules/wcsnrtombs-tests.
Diffstat (limited to 'tests/test-c32snrtombs-3.sh')
-rwxr-xr-xtests/test-c32snrtombs-3.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/test-c32snrtombs-3.sh b/tests/test-c32snrtombs-3.sh
new file mode 100755
index 0000000000..bd77bf4186
--- /dev/null
+++ b/tests/test-c32snrtombs-3.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+# Test whether a specific EUC-JP locale is installed.
+: ${LOCALE_JA=ja_JP}
+if test $LOCALE_JA = none; then
+ if test -f /usr/bin/localedef; then
+ echo "Skipping test: no traditional japanese locale is installed"
+ else
+ echo "Skipping test: no traditional japanese locale is supported"
+ fi
+ exit 77
+fi
+
+LC_ALL=$LOCALE_JA \
+${CHECKER} ./test-c32snrtombs${EXEEXT} 3