Commit 135fbd31 authored by Bruno Haible's avatar Bruno Haible

Tests for module 'mbmemcasecmp'.

parent 4823958d
2009-03-08 Bruno Haible <bruno@clisp.org>
Tests for module 'mbmemcasecmp'.
* modules/mbmemcasecmp-tests: New file.
* tests/test-mbmemcasecmp1.sh: New file.
* tests/test-mbmemcasecmp2.sh: New file.
* tests/test-mbmemcasecmp3.sh: New file.
* tests/test-mbmemcasecmp.c: New file.
New module 'mbmemcasecmp'.
* lib/mbmemcasecmp.h: New file.
* lib/mbmemcasecmp.c: New file.
Files:
tests/test-mbmemcasecmp1.sh
tests/test-mbmemcasecmp2.sh
tests/test-mbmemcasecmp3.sh
tests/test-mbmemcasecmp.c
m4/locale-fr.m4
m4/locale-tr.m4
m4/codeset.m4
Depends-on:
stdbool
configure.ac:
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
gt_LOCALE_TR_UTF8
Makefile.am:
TESTS += test-mbmemcasecmp1.sh test-mbmemcasecmp2.sh test-mbmemcasecmp3.sh
TESTS_ENVIRONMENT += \
EXEEXT='@EXEEXT@' \
LOCALE_FR='@LOCALE_FR@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
LOCALE_TR_UTF8='@LOCALE_TR_UTF8@'
check_PROGRAMS += test-mbmemcasecmp
This diff is collapsed.
#!/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 \
./test-mbmemcasecmp${EXEEXT} 1
#!/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 \
./test-mbmemcasecmp${EXEEXT} 2
#!/bin/sh
# Test whether a specific Turkish locale is installed.
: ${LOCALE_TR_UTF8=tr_TR.UTF-8}
if test $LOCALE_TR_UTF8 = none; then
if test -f /usr/bin/localedef; then
echo "Skipping test: no turkish Unicode locale is installed"
else
echo "Skipping test: no turkish Unicode locale is supported"
fi
exit 77
fi
LC_ALL=$LOCALE_TR_UTF8 \
./test-mbmemcasecmp${EXEEXT} 3
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment