Hash :
b086701a
Author :
Date :
2020-01-05T02:33:40
mbsnrtoc32s: Add tests. * tests/test-mbsnrtoc32s.c: New file, based on tests/test-mbsnrtowcs.c. * tests/test-mbsnrtoc32s-1.sh: New file, based on tests/test-mbsnrtowcs1.sh. * tests/test-mbsnrtoc32s-2.sh: New file, based on tests/test-mbsnrtowcs2.sh. * tests/test-mbsnrtoc32s-3.sh: New file, based on tests/test-mbsnrtowcs3.sh. * tests/test-mbsnrtoc32s-4.sh: New file, based on tests/test-mbsnrtowcs4.sh. * modules/mbsnrtoc32s-tests: New file, based on modules/mbsnrtowcs-tests.
#!/bin/sh
# Test whether a specific GB18030 locale is installed.
: ${LOCALE_ZH_CN=zh_CN.GB18030}
if test $LOCALE_ZH_CN = none; then
if test -f /usr/bin/localedef; then
echo "Skipping test: no transitional chinese locale is installed"
else
echo "Skipping test: no transitional chinese locale is supported"
fi
exit 77
fi
LC_ALL=$LOCALE_ZH_CN \
${CHECKER} ./test-mbsnrtoc32s${EXEEXT} 4