Hash :
aca8cb79
Author :
Date :
2020-01-05T12:23:37
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.
#!/bin/sh
# Test whether a specific UTF-8 locale is installed.
: ${LOCALE_FR_UTF8=fr_FR.UTF-8}
if test $LOCALE_FR_UTF8 = none; then
if test -f /usr/bin/localedef; then
echo "Skipping test: no french Unicode locale is installed"
else
echo "Skipping test: no french Unicode locale is supported"
fi
exit 77
fi
LC_ALL=$LOCALE_FR_UTF8 \
${CHECKER} ./test-mbstoc32s${EXEEXT} 2