summaryrefslogtreecommitdiff
path: root/modules/c32srtombs-tests
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2020-01-09 16:21:53 +0100
committerBruno Haible <bruno@clisp.org>2020-01-09 16:21:53 +0100
commitf5eb8cea72469348b423ae22068eeb9e1399011b (patch)
tree0c12ee6ddf2bdb02a77ee1009de6939cbc491ace /modules/c32srtombs-tests
parentef3398710f4b3cff37dcbdb4fdb267f3dcdb9fbe (diff)
downloadgnulib-f5eb8cea72469348b423ae22068eeb9e1399011b.tar.gz
c32srtombs: Add tests.
* tests/test-c32srtombs.c: New file, based on tests/test-wcsrtombs.c. * tests/test-c32srtombs-1.sh: New file, based on tests/test-wcsrtombs1.sh. * tests/test-c32srtombs-2.sh: New file, based on tests/test-wcsrtombs2.sh. * tests/test-c32srtombs-3.sh: New file, based on tests/test-wcsrtombs3.sh. * tests/test-c32srtombs-4.sh: New file, based on tests/test-wcsrtombs4.sh. * modules/c32srtombs-tests: New file, based on modules/wcsrtombs-tests.
Diffstat (limited to 'modules/c32srtombs-tests')
-rw-r--r--modules/c32srtombs-tests32
1 files changed, 32 insertions, 0 deletions
diff --git a/modules/c32srtombs-tests b/modules/c32srtombs-tests
new file mode 100644
index 0000000000..2501ba3726
--- /dev/null
+++ b/modules/c32srtombs-tests
@@ -0,0 +1,32 @@
+Files:
+tests/test-c32srtombs-1.sh
+tests/test-c32srtombs-2.sh
+tests/test-c32srtombs-3.sh
+tests/test-c32srtombs-4.sh
+tests/test-c32srtombs.c
+tests/signature.h
+tests/macros.h
+m4/locale-fr.m4
+m4/locale-ja.m4
+m4/locale-zh.m4
+m4/codeset.m4
+
+Depends-on:
+setlocale
+mbstoc32s
+
+configure.ac:
+gt_LOCALE_FR
+gt_LOCALE_FR_UTF8
+gt_LOCALE_JA
+gt_LOCALE_ZH_CN
+
+Makefile.am:
+TESTS += test-c32srtombs-1.sh test-c32srtombs-2.sh test-c32srtombs-3.sh test-c32srtombs-4.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-c32srtombs
+test_c32srtombs_LDADD = $(LDADD) $(LIB_SETLOCALE)