Hash :
e3fb76a5
Author :
Date :
2020-01-10T23:29:57
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.
#!/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-c32snrtombs${EXEEXT} 2