Hash :
8145ea17
Author :
Date :
2020-01-04T16:03:10
mbsrtoc32s: Add tests. * tests/test-mbsrtoc32s.c: New file, based on tests/test-mbsrtowcs.c. * tests/test-mbsrtoc32s-1.sh: New file, based on tests/test-mbsrtowcs1.sh. * tests/test-mbsrtoc32s-2.sh: New file, based on tests/test-mbsrtowcs2.sh. * tests/test-mbsrtoc32s-3.sh: New file, based on tests/test-mbsrtowcs3.sh. * tests/test-mbsrtoc32s-4.sh: New file, based on tests/test-mbsrtowcs4.sh. * modules/mbsrtoc32s-tests: New file, based on modules/mbsrtowcs-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-mbsrtoc32s${EXEEXT} 2