Hash :
1bd954b3
Author :
Date :
2024-05-21T21:20:15
mcel tests: Run the test in several locales. * tests/test-mcel-1.sh: New file, based on tests/test-mbrtowc-1.sh. * tests/test-mcel-2.sh: New file, based on tests/test-mbrtowc-2.sh. * tests/test-mcel-3.sh: New file, based on tests/test-mbrtowc-3.sh. * tests/test-mcel-4.sh: New file, based on tests/test-mbrtowc-4.sh. * tests/test-mcel-5.sh: New file, based on tests/test-mbrtowc-5.sh. * modules/mcel-tests (Files): Add them. Add tests/macros.h, m4/locale-fr.m4, m4/locale-ja.m4, m4/locale-zh.m4, m4/codeset.m4. (Depends-on): Remove assert-h. (configure.ac, Makefile.am): Essentially copy from modules/mbrtowc-tests.
Files:
tests/test-mcel-1.sh
tests/test-mcel-2.sh
tests/test-mcel-3.sh
tests/test-mcel-4.sh
tests/test-mcel-5.sh
tests/test-mcel.c
tests/macros.h
m4/locale-fr.m4
m4/locale-ja.m4
m4/locale-zh.m4
m4/codeset.m4
Depends-on:
setlocale
configure.ac:
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
gt_LOCALE_JA
gt_LOCALE_ZH_CN
Makefile.am:
TESTS += \
test-mcel-1.sh test-mcel-2.sh test-mcel-3.sh test-mcel-4.sh test-mcel-5.sh
TESTS_ENVIRONMENT += \
LOCALE_FR='@LOCALE_FR@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
LOCALE_JA='@LOCALE_JA@' \
LOCALE_ZH_CN='@LOCALE_ZH_CN@'
check_PROGRAMS += test-mcel
test_mcel_LDADD = $(LDADD) $(LIBUNISTRING) $(SETLOCALE_LIB) $(MBRTOWC_LIB) $(LIBC32CONV)