From aca8cb793a857b254b8244f8e7cb528fa0d023ab Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 5 Jan 2020 12:23:37 +0100 Subject: 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. --- tests/test-mbstoc32s-1.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 tests/test-mbstoc32s-1.sh (limited to 'tests/test-mbstoc32s-1.sh') 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 -- cgit v1.2.1