diff options
Diffstat (limited to 'tests/Makefile.gnulib')
-rw-r--r-- | tests/Makefile.gnulib | 1240 |
1 files changed, 741 insertions, 499 deletions
diff --git a/tests/Makefile.gnulib b/tests/Makefile.gnulib index 5e989140..9188f3f7 100644 --- a/tests/Makefile.gnulib +++ b/tests/Makefile.gnulib @@ -1,6 +1,6 @@ ## DO NOT EDIT! GENERATED AUTOMATICALLY! ## Process this file with automake to produce Makefile.in. -# Copyright (C) 2002-2024 Free Software Foundation, Inc. +# Copyright (C) 2002-2025 Free Software Foundation, Inc. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -34,6 +34,7 @@ EXTRA_PROGRAMS = noinst_HEADERS = noinst_LIBRARIES = check_LIBRARIES = libtests.a +pkgdata_DATA = EXTRA_DIST = BUILT_SOURCES = SUFFIXES = @@ -43,8 +44,9 @@ CLEANFILES = DISTCLEANFILES = MAINTAINERCLEANFILES = +AM_CFLAGS += @GL_CFLAG_ALLOW_WARNINGS@ $(GL_CFLAG_GNULIB_WARNINGS) + CFLAGS = @GL_CFLAG_ALLOW_WARNINGS@ $(GL_CFLAG_GNULIB_WARNINGS) @CFLAGS@ -CXXFLAGS = @GL_CXXFLAG_ALLOW_WARNINGS@ @CXXFLAGS@ AM_CPPFLAGS = \ -D@gltests_WITNESS@=1 \ @@ -61,6 +63,7 @@ EXTRA_libtests_a_SOURCES = AM_LIBTOOLFLAGS = --preserve-dup-deps TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' srcdir='$(srcdir)' +IGNORE_SKIPPED_LOGS = 1 ## begin gnulib module accept @@ -109,9 +112,10 @@ EXTRA_DIST += test-alloca-opt.c ## end gnulib module alloca-opt-tests -## begin gnulib module arpa_inet +## begin gnulib module arpa_inet-h BUILT_SOURCES += arpa/inet.h +libtests_a_SOURCES += arpa_inet.c # We need the following in order to create <arpa/inet.h> when the system # doesn't have one. @@ -128,8 +132,12 @@ arpa/inet.h: arpa_inet.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON -e 's/@''GNULIB_INET_NTOP''@/$(GL_GNULIB_INET_NTOP)/g' \ -e 's/@''GNULIB_INET_PTON''@/$(GL_GNULIB_INET_PTON)/g' \ -e 's|@''HAVE_WS2TCPIP_H''@|$(HAVE_WS2TCPIP_H)|g' \ + -e 's|@''HAVE_DECL_HTONL''@|$(HAVE_DECL_HTONL)|g' \ + -e 's|@''HAVE_DECL_HTONS''@|$(HAVE_DECL_HTONS)|g' \ -e 's|@''HAVE_DECL_INET_NTOP''@|$(HAVE_DECL_INET_NTOP)|g' \ -e 's|@''HAVE_DECL_INET_PTON''@|$(HAVE_DECL_INET_PTON)|g' \ + -e 's|@''HAVE_DECL_NTOHL''@|$(HAVE_DECL_NTOHL)|g' \ + -e 's|@''HAVE_DECL_NTOHS''@|$(HAVE_DECL_NTOHS)|g' \ -e 's|@''REPLACE_INET_NTOP''@|$(REPLACE_INET_NTOP)|g' \ -e 's|@''REPLACE_INET_PTON''@|$(REPLACE_INET_PTON)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ @@ -142,15 +150,15 @@ MOSTLYCLEANDIRS += arpa EXTRA_DIST += arpa_inet.in.h -## end gnulib module arpa_inet +## end gnulib module arpa_inet-h -## begin gnulib module arpa_inet-tests +## begin gnulib module arpa_inet-h-tests -TESTS += test-arpa_inet -check_PROGRAMS += test-arpa_inet -EXTRA_DIST += test-arpa_inet.c +TESTS += test-arpa_inet-h +check_PROGRAMS += test-arpa_inet-h +EXTRA_DIST += test-arpa_inet-h.c -## end gnulib module arpa_inet-tests +## end gnulib module arpa_inet-h-tests ## begin gnulib module array-mergesort-tests @@ -206,10 +214,19 @@ EXTRA_DIST += w32sock.h TESTS += test-bind check_PROGRAMS += test-bind test_bind_LDADD = $(LDADD) @LIBSOCKET@ $(INET_PTON_LIB) +test_bind_LDFLAGS = $(LDFLAGS) @LIBSOCKET@ $(INET_PTON_LIB) EXTRA_DIST += test-bind.c signature.h macros.h ## end gnulib module bind-tests +## begin gnulib module bool-tests + +TESTS += test-bool +check_PROGRAMS += test-bool +EXTRA_DIST += test-bool.c + +## end gnulib module bool-tests + ## begin gnulib module btoc32 libtests_a_SOURCES += btoc32.c @@ -219,7 +236,10 @@ libtests_a_SOURCES += btoc32.c ## begin gnulib module btoc32-tests TESTS += test-btoc32-1.sh test-btoc32-2.sh test-btoc32-3.sh -TESTS_ENVIRONMENT += LOCALE_FR='@LOCALE_FR@' LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' +TESTS_ENVIRONMENT += \ + LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \ + LOCALE_FR='@LOCALE_FR@' \ + LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' check_PROGRAMS += test-btoc32 test_btoc32_LDADD = $(LDADD) $(LIBUNISTRING) $(SETLOCALE_LIB) $(LIBC32CONV) EXTRA_DIST += test-btoc32-1.sh test-btoc32-2.sh test-btoc32-3.sh test-btoc32.c signature.h macros.h @@ -237,7 +257,10 @@ endif ## begin gnulib module btowc-tests TESTS += test-btowc-1.sh test-btowc-2.sh test-btowc-3.sh -TESTS_ENVIRONMENT += LOCALE_FR='@LOCALE_FR@' LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' +TESTS_ENVIRONMENT += \ + LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \ + LOCALE_FR='@LOCALE_FR@' \ + LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' check_PROGRAMS += test-btowc test_btowc_LDADD = $(LDADD) $(SETLOCALE_LIB) EXTRA_DIST += test-btowc-1.sh test-btowc-2.sh test-btowc-3.sh test-btowc.c signature.h macros.h @@ -253,21 +276,21 @@ EXTRA_DIST += test-c-ctype.c macros.h ## end gnulib module c-ctype-tests -## begin gnulib module c-strcase-tests +## begin gnulib module c-strcasecmp-tests -TESTS += test-c-strcase.sh +TESTS += test-c-strcasecmp.sh TESTS_ENVIRONMENT += LOCALE_FR='@LOCALE_FR@' LOCALE_TR_UTF8='@LOCALE_TR_UTF8@' -check_PROGRAMS += test-c-strcasecmp test-c-strncasecmp +check_PROGRAMS += test-c-strcasecmp test_c_strcasecmp_LDADD = $(LDADD) $(SETLOCALE_LIB) -test_c_strncasecmp_LDADD = $(LDADD) $(SETLOCALE_LIB) -EXTRA_DIST += test-c-strcase.sh test-c-strcasecmp.c test-c-strncasecmp.c macros.h +EXTRA_DIST += test-c-strcasecmp.sh test-c-strcasecmp.c macros.h -## end gnulib module c-strcase-tests +## end gnulib module c-strcasecmp-tests ## begin gnulib module c32isalnum-tests TESTS += test-c32isalnum.sh TESTS_ENVIRONMENT += \ + LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \ LOCALE_FR='@LOCALE_FR@' \ LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \ LOCALE_JA='@LOCALE_JA@' \ @@ -282,6 +305,7 @@ EXTRA_DIST += test-c32isalnum.sh test-c32isalnum.c signature.h macros.h TESTS += test-c32isalpha.sh TESTS_ENVIRONMENT += \ + LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \ LOCALE_FR='@LOCALE_FR@' \ LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \ LOCALE_JA='@LOCALE_JA@' \ @@ -296,6 +320,7 @@ EXTRA_DIST += test-c32isalpha.sh test-c32isalpha.c signature.h macros.h TESTS += test-c32isblank.sh TESTS_ENVIRONMENT += \ + LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \ LOCALE_FR='@LOCALE_FR@' \ LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \ LOCALE_JA='@LOCALE_JA@' \ @@ -310,6 +335,7 @@ EXTRA_DIST += test-c32isblank.sh test-c32isblank.c signature.h macros.h TESTS += test-c32iscntrl.sh TESTS_ENVIRONMENT += \ + LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \ LOCALE_FR='@LOCALE_FR@' \ LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \ LOCALE_JA='@LOCALE_JA@' \ @@ -324,6 +350,7 @@ EXTRA_DIST += test-c32iscntrl.sh test-c32iscntrl.c signature.h macros.h TESTS += test-c32isdigit.sh TESTS_ENVIRONMENT += \ + LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \ LOCALE_FR='@LOCALE_FR@' \ LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \ LOCALE_JA='@LOCALE_JA@' \ @@ -338,6 +365,7 @@ EXTRA_DIST += test-c32isdigit.sh test-c32isdigit.c signature.h macros.h TESTS += test-c32isgraph.sh TESTS_ENVIRONMENT += \ + LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \ LOCALE_FR='@LOCALE_FR@' \ LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \ LOCALE_JA='@LOCALE_JA@' \ @@ -352,6 +380,7 @@ EXTRA_DIST += test-c32isgraph.sh test-c32isgraph.c signature.h macros.h TESTS += test-c32islower.sh TESTS_ENVIRONMENT += \ + LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \ LOCALE_FR='@LOCALE_FR@' \ LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \ LOCALE_JA='@LOCALE_JA@' \ @@ -366,6 +395,7 @@ EXTRA_DIST += test-c32islower.sh test-c32islower.c signature.h macros.h TESTS += test-c32isprint.sh TESTS_ENVIRONMENT += \ + LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \ LOCALE_FR='@LOCALE_FR@' \ LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \ LOCALE_JA='@LOCALE_JA@' \ @@ -380,6 +410,7 @@ EXTRA_DIST += test-c32isprint.sh test-c32isprint.c signature.h macros.h TESTS += test-c32ispunct.sh TESTS_ENVIRONMENT += \ + LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \ LOCALE_FR='@LOCALE_FR@' \ LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \ LOCALE_JA='@LOCALE_JA@' \ @@ -394,6 +425,7 @@ EXTRA_DIST += test-c32ispunct.sh test-c32ispunct.c signature.h macros.h TESTS += test-c32isspace.sh TESTS_ENVIRONMENT += \ + LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \ LOCALE_FR='@LOCALE_FR@' \ LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \ LOCALE_JA='@LOCALE_JA@' \ @@ -408,6 +440,7 @@ EXTRA_DIST += test-c32isspace.sh test-c32isspace.c signature.h macros.h TESTS += test-c32isupper.sh TESTS_ENVIRONMENT += \ + LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \ LOCALE_FR='@LOCALE_FR@' \ LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \ LOCALE_JA='@LOCALE_JA@' \ @@ -422,6 +455,7 @@ EXTRA_DIST += test-c32isupper.sh test-c32isupper.c signature.h macros.h TESTS += test-c32isxdigit.sh TESTS_ENVIRONMENT += \ + LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \ LOCALE_FR='@LOCALE_FR@' \ LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \ LOCALE_JA='@LOCALE_JA@' \ @@ -448,6 +482,7 @@ TESTS += \ test-c32rtomb-w32-5.sh test-c32rtomb-w32-6.sh test-c32rtomb-w32-7.sh \ test-c32rtomb-w32-8.sh TESTS_ENVIRONMENT += \ + LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \ LOCALE_FR='@LOCALE_FR@' \ LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \ LOCALE_JA='@LOCALE_JA@' \ @@ -468,6 +503,7 @@ libtests_a_SOURCES += c32tob.c TESTS += test-c32tolower.sh TESTS_ENVIRONMENT += \ + LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \ LOCALE_FR='@LOCALE_FR@' \ LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \ LOCALE_JA='@LOCALE_JA@' \ @@ -513,6 +549,14 @@ EXTRA_libtests_a_SOURCES += calloc.c ## end gnulib module calloc-posix +## begin gnulib module calloc-posix-tests + +TESTS += test-calloc-posix +check_PROGRAMS += test-calloc-posix +EXTRA_DIST += test-calloc-posix.c macros.h + +## end gnulib module calloc-posix-tests + ## begin gnulib module cloexec libtests_a_SOURCES += cloexec.c @@ -545,6 +589,14 @@ EXTRA_DIST += test-close.c signature.h macros.h ## end gnulib module close-tests +## begin gnulib module concat-filename + +libtests_a_SOURCES += concat-filename.c + +EXTRA_DIST += concat-filename.h + +## end gnulib module concat-filename + ## begin gnulib module connect if GL_COND_OBJ_CONNECT @@ -564,22 +616,51 @@ EXTRA_DIST += test-connect.c signature.h macros.h ## end gnulib module connect-tests -## begin gnulib module ctype +## begin gnulib module ctype-h BUILT_SOURCES += ctype.h # We need the following in order to create <ctype.h> when the system # doesn't have one that works with the given compiler. -ctype.h: ctype.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) +ctype.h: ctype.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_CTYPE_H''@|$(NEXT_CTYPE_H)|g' \ + -e 's/@''GNULIB_ISALNUM_L''@/$(GL_GNULIB_ISALNUM_L)/g' \ + -e 's/@''GNULIB_ISALPHA_L''@/$(GL_GNULIB_ISALPHA_L)/g' \ -e 's/@''GNULIB_ISBLANK''@/$(GL_GNULIB_ISBLANK)/g' \ + -e 's/@''GNULIB_ISBLANK_L''@/$(GL_GNULIB_ISBLANK_L)/g' \ + -e 's/@''GNULIB_ISCNTRL_L''@/$(GL_GNULIB_ISCNTRL_L)/g' \ + -e 's/@''GNULIB_ISDIGIT_L''@/$(GL_GNULIB_ISDIGIT_L)/g' \ + -e 's/@''GNULIB_ISGRAPH_L''@/$(GL_GNULIB_ISGRAPH_L)/g' \ + -e 's/@''GNULIB_ISLOWER_L''@/$(GL_GNULIB_ISLOWER_L)/g' \ + -e 's/@''GNULIB_ISPRINT_L''@/$(GL_GNULIB_ISPRINT_L)/g' \ + -e 's/@''GNULIB_ISPUNCT_L''@/$(GL_GNULIB_ISPUNCT_L)/g' \ + -e 's/@''GNULIB_ISSPACE_L''@/$(GL_GNULIB_ISSPACE_L)/g' \ + -e 's/@''GNULIB_ISUPPER_L''@/$(GL_GNULIB_ISUPPER_L)/g' \ + -e 's/@''GNULIB_ISXDIGIT_L''@/$(GL_GNULIB_ISXDIGIT_L)/g' \ + -e 's/@''GNULIB_TOLOWER_L''@/$(GL_GNULIB_TOLOWER_L)/g' \ + -e 's/@''GNULIB_TOUPPER_L''@/$(GL_GNULIB_TOUPPER_L)/g' \ + -e 's/@''HAVE_ISALNUM_L''@/$(HAVE_ISALNUM_L)/g' \ + -e 's/@''HAVE_ISALPHA_L''@/$(HAVE_ISALPHA_L)/g' \ -e 's/@''HAVE_ISBLANK''@/$(HAVE_ISBLANK)/g' \ + -e 's/@''HAVE_ISBLANK_L''@/$(HAVE_ISBLANK_L)/g' \ + -e 's/@''HAVE_ISCNTRL_L''@/$(HAVE_ISCNTRL_L)/g' \ + -e 's/@''HAVE_ISDIGIT_L''@/$(HAVE_ISDIGIT_L)/g' \ + -e 's/@''HAVE_ISGRAPH_L''@/$(HAVE_ISGRAPH_L)/g' \ + -e 's/@''HAVE_ISLOWER_L''@/$(HAVE_ISLOWER_L)/g' \ + -e 's/@''HAVE_ISPRINT_L''@/$(HAVE_ISPRINT_L)/g' \ + -e 's/@''HAVE_ISPUNCT_L''@/$(HAVE_ISPUNCT_L)/g' \ + -e 's/@''HAVE_ISSPACE_L''@/$(HAVE_ISSPACE_L)/g' \ + -e 's/@''HAVE_ISUPPER_L''@/$(HAVE_ISUPPER_L)/g' \ + -e 's/@''HAVE_ISXDIGIT_L''@/$(HAVE_ISXDIGIT_L)/g' \ + -e 's/@''HAVE_TOLOWER_L''@/$(HAVE_TOLOWER_L)/g' \ + -e 's/@''HAVE_TOUPPER_L''@/$(HAVE_TOUPPER_L)/g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ $(srcdir)/ctype.in.h > $@-t $(AM_V_at)mv $@-t $@ @@ -587,15 +668,15 @@ MOSTLYCLEANFILES += ctype.h ctype.h-t EXTRA_DIST += ctype.in.h -## end gnulib module ctype +## end gnulib module ctype-h -## begin gnulib module ctype-tests +## begin gnulib module ctype-h-tests -TESTS += test-ctype -check_PROGRAMS += test-ctype -EXTRA_DIST += test-ctype.c +TESTS += test-ctype-h +check_PROGRAMS += test-ctype-h +EXTRA_DIST += test-ctype-h.c -## end gnulib module ctype-tests +## end gnulib module ctype-h-tests ## begin gnulib module dup2 @@ -622,14 +703,13 @@ EXTRA_DIST += test-environ.c ## end gnulib module environ-tests -## begin gnulib module errno-tests +## begin gnulib module errno-h-tests -TESTS += test-errno -check_PROGRAMS += test-errno +TESTS += test-errno-h +check_PROGRAMS += test-errno-h +EXTRA_DIST += test-errno-h.c -EXTRA_DIST += test-errno.c - -## end gnulib module errno-tests +## end gnulib module errno-h-tests ## begin gnulib module error @@ -688,43 +768,6 @@ endif ## end gnulib module fcntl -## begin gnulib module fcntl-h - -BUILT_SOURCES += fcntl.h - -# We need the following in order to create <fcntl.h> when the system -# doesn't have one that works with the given compiler. -fcntl.h: fcntl.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) - $(gl_V_at)$(SED_HEADER_STDOUT) \ - -e 's|@''GUARD_PREFIX''@|GL|g' \ - -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ - -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ - -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ - -e 's|@''NEXT_FCNTL_H''@|$(NEXT_FCNTL_H)|g' \ - -e 's/@''GNULIB_CREAT''@/$(GL_GNULIB_CREAT)/g' \ - -e 's/@''GNULIB_FCNTL''@/$(GL_GNULIB_FCNTL)/g' \ - -e 's/@''GNULIB_NONBLOCKING''@/$(GL_GNULIB_NONBLOCKING)/g' \ - -e 's/@''GNULIB_OPEN''@/$(GL_GNULIB_OPEN)/g' \ - -e 's/@''GNULIB_OPENAT''@/$(GL_GNULIB_OPENAT)/g' \ - -e 's/@''GNULIB_MDA_CREAT''@/$(GL_GNULIB_MDA_CREAT)/g' \ - -e 's/@''GNULIB_MDA_OPEN''@/$(GL_GNULIB_MDA_OPEN)/g' \ - -e 's|@''HAVE_FCNTL''@|$(HAVE_FCNTL)|g' \ - -e 's|@''HAVE_OPENAT''@|$(HAVE_OPENAT)|g' \ - -e 's|@''REPLACE_CREAT''@|$(REPLACE_CREAT)|g' \ - -e 's|@''REPLACE_FCNTL''@|$(REPLACE_FCNTL)|g' \ - -e 's|@''REPLACE_OPEN''@|$(REPLACE_OPEN)|g' \ - -e 's|@''REPLACE_OPENAT''@|$(REPLACE_OPENAT)|g' \ - -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ - -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ - -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ - $(srcdir)/fcntl.in.h > $@-t - $(AM_V_at)mv $@-t $@ -MOSTLYCLEANFILES += fcntl.h fcntl.h-t - -EXTRA_DIST += fcntl.in.h - -## end gnulib module fcntl-h - ## begin gnulib module fcntl-h-tests TESTS += test-fcntl-h @@ -780,14 +823,6 @@ EXTRA_DIST += filename.h ## end gnulib module filename -## begin gnulib module float-tests - -TESTS += test-float -check_PROGRAMS += test-float -EXTRA_DIST += test-float.c macros.h - -## end gnulib module float-tests - ## begin gnulib module fputc-tests TESTS += test-fputc @@ -898,6 +933,7 @@ SED_HEADER_STDOUT = sed -e 1h -e '1$(SED_HEADER_NOEDIT)' -e 1G SED_HEADER_TO_AT_t = $(SED_HEADER_STDOUT) -n -e 'w $@-t' # Use $(gl_V_at) instead of $(AM_V_GEN) or $(AM_V_at) on a line that +# is its recipe's first line if and only if @NMD@ lines are absent. gl_V_at = $(AM_V_GEN) ## end gnulib module gen-header @@ -935,14 +971,6 @@ EXTRA_DIST += test-getdtablesize.c signature.h macros.h ## end gnulib module getdtablesize-tests -## begin gnulib module getpagesize - -if GL_COND_OBJ_GETPAGESIZE -libtests_a_SOURCES += getpagesize.c -endif - -## end gnulib module getpagesize - ## begin gnulib module getprogname if GL_COND_OBJ_GETPROGNAME @@ -969,6 +997,15 @@ libtests_a_SOURCES += gettext.h ## end gnulib module gettext-h +## begin gnulib module gettext-h-tests + +TESTS += test-gettext-h +check_PROGRAMS += test-gettext-h +test_gettext_h_LDADD = $(LDADD) $(LIBINTL) +EXTRA_DIST += test-gettext-h.c + +## end gnulib module gettext-h-tests + ## begin gnulib module gettimeofday if GL_COND_OBJ_GETTIMEOFDAY @@ -1081,13 +1118,13 @@ EXTRA_DIST += test-intprops.c macros.h ## end gnulib module intprops-tests -## begin gnulib module inttypes-tests +## begin gnulib module inttypes-h-tests -TESTS += test-inttypes -check_PROGRAMS += test-inttypes -EXTRA_DIST += test-inttypes.c +TESTS += test-inttypes-h +check_PROGRAMS += test-inttypes-h +EXTRA_DIST += test-inttypes-h.c -## end gnulib module inttypes-tests +## end gnulib module inttypes-h-tests ## begin gnulib module ioctl @@ -1162,6 +1199,7 @@ EXTRA_DIST += test-iswblank.c macros.h TESTS += test-iswdigit.sh TESTS_ENVIRONMENT += \ + LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \ LOCALE_FR='@LOCALE_FR@' \ LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \ LOCALE_JA='@LOCALE_JA@' \ @@ -1185,6 +1223,7 @@ EXTRA_DIST += test-iswpunct.sh test-iswpunct.c signature.h macros.h TESTS += test-iswxdigit.sh TESTS_ENVIRONMENT += \ + LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \ LOCALE_FR='@LOCALE_FR@' \ LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \ LOCALE_JA='@LOCALE_JA@' \ @@ -1195,14 +1234,6 @@ EXTRA_DIST += test-iswxdigit.sh test-iswxdigit.c signature.h macros.h ## end gnulib module iswxdigit-tests -## begin gnulib module langinfo-tests - -TESTS += test-langinfo -check_PROGRAMS += test-langinfo -EXTRA_DIST += test-langinfo.c - -## end gnulib module langinfo-tests - ## begin gnulib module largefile-tests TESTS += test-largefile @@ -1249,17 +1280,35 @@ EXTRA_DIST += test-listen.c signature.h macros.h noinst_PROGRAMS += test-localcharset test_localcharset_LDADD = $(LDADD) $(SETLOCALE_LIB) -EXTRA_DIST += test-localcharset.c + +if OS_IS_NATIVE_WINDOWS +TESTS += test-localcharset-w32utf8.sh +noinst_PROGRAMS += test-localcharset-w32utf8 +test_localcharset_w32utf8_LDADD = $(LDADD) test-localcharset-windows-utf8.res $(SETLOCALE_LIB) +test-localcharset-windows-utf8.res : $(srcdir)/windows-utf8.rc + $(WINDRES) -i $(srcdir)/windows-utf8.rc -o test-localcharset-windows-utf8.res --output-format=coff +MOSTLYCLEANFILES += test-localcharset-windows-utf8.res +endif +EXTRA_DIST += test-localcharset.c test-localcharset-w32utf8.sh test-localcharset-w32utf8.c windows-utf8.rc windows-utf8.manifest ## end gnulib module localcharset-tests -## begin gnulib module locale-tests +## begin gnulib module locale-h-tests -TESTS += test-locale -check_PROGRAMS += test-locale -EXTRA_DIST += test-locale.c +TESTS += test-locale-h +check_PROGRAMS += test-locale-h +EXTRA_DIST += test-locale-h.c -## end gnulib module locale-tests +## end gnulib module locale-h-tests + +## begin gnulib module localeconv-tests + +TESTS += test-localeconv test-localeconv-mt +check_PROGRAMS += test-localeconv test-localeconv-mt +test_localeconv_mt_LDADD = $(LDADD) $(SETLOCALE_LIB) $(LIBMULTITHREAD) $(NANOSLEEP_LIB) +EXTRA_DIST += test-localeconv.c test-localeconv-mt.c signature.h macros.h + +## end gnulib module localeconv-tests ## begin gnulib module localename-tests @@ -1267,21 +1316,25 @@ TESTS += test-localename check_PROGRAMS += test-localename test_localename_LDADD = $(LDADD) $(SETLOCALE_LIB) @INTL_MACOSX_LIBS@ $(LIBTHREAD) -EXTRA_DIST += test-localename.c macros.h +if OS_IS_NATIVE_WINDOWS +TESTS += test-localename-w32utf8.sh +noinst_PROGRAMS += test-localename-w32utf8 +test_localename_w32utf8_LDADD = $(LDADD) test-localename-windows-utf8.res $(SETLOCALE_LIB) +test-localename-windows-utf8.res : $(srcdir)/windows-utf8.rc + $(WINDRES) -i $(srcdir)/windows-utf8.rc -o test-localename-windows-utf8.res --output-format=coff +MOSTLYCLEANFILES += test-localename-windows-utf8.res +endif +EXTRA_DIST += test-localename.c test-localename-w32utf8.sh test-localename-w32utf8.c windows-utf8.rc windows-utf8.manifest macros.h ## end gnulib module localename-tests ## begin gnulib module lock-tests -TESTS += test-rwlock1 test-lock test-once1 test-once2 -check_PROGRAMS += test-rwlock1 test-lock test-once1 test-once2 +TESTS += test-rwlock1 test-lock +check_PROGRAMS += test-rwlock1 test-lock test_rwlock1_LDADD = $(LDADD) @LIBMULTITHREAD@ @YIELD_LIB@ test_lock_LDADD = $(LDADD) @LIBMULTITHREAD@ @YIELD_LIB@ @LIB_SEMAPHORE@ -test_once1_SOURCES = test-once.c -test_once1_LDADD = $(LDADD) @LIBTHREAD@ -test_once2_SOURCES = test-once.c -test_once2_LDADD = $(LDADD) @LIBMULTITHREAD@ -EXTRA_DIST += test-rwlock1.c test-lock.c test-once.c atomic-int-gnulib.h macros.h +EXTRA_DIST += test-rwlock1.c test-lock.c atomic-int-gnulib.h macros.h ## end gnulib module lock-tests @@ -1318,6 +1371,14 @@ EXTRA_DIST += test-malloc-gnu.c macros.h ## end gnulib module malloc-gnu-tests +## begin gnulib module malloc-posix-tests + +TESTS += test-malloc-posix +check_PROGRAMS += test-malloc-posix +EXTRA_DIST += test-malloc-posix.c macros.h + +## end gnulib module malloc-posix-tests + ## begin gnulib module malloca-tests TESTS += test-malloca @@ -1327,13 +1388,13 @@ EXTRA_DIST += test-malloca.c ## end gnulib module malloca-tests -## begin gnulib module math-tests +## begin gnulib module math-h-tests -TESTS += test-math -check_PROGRAMS += test-math -EXTRA_DIST += test-math.c macros.h +TESTS += test-math-h +check_PROGRAMS += test-math-h +EXTRA_DIST += test-math-h.c macros.h -## end gnulib module math-tests +## end gnulib module math-h-tests ## begin gnulib module mbrtoc32-tests @@ -1344,6 +1405,7 @@ TESTS += \ test-mbrtoc32-w32-5.sh test-mbrtoc32-w32-6.sh test-mbrtoc32-w32-7.sh \ test-mbrtoc32-w32-8.sh TESTS_ENVIRONMENT += \ + LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \ LOCALE_FR='@LOCALE_FR@' \ LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \ LOCALE_JA='@LOCALE_JA@' \ @@ -1363,26 +1425,50 @@ TESTS += \ test-mbrtowc-w32-5.sh test-mbrtowc-w32-6.sh test-mbrtowc-w32-7.sh \ test-mbrtowc-w32-8.sh TESTS_ENVIRONMENT += \ + LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \ LOCALE_FR='@LOCALE_FR@' \ LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \ LOCALE_JA='@LOCALE_JA@' \ LOCALE_ZH_CN='@LOCALE_ZH_CN@' check_PROGRAMS += test-mbrtowc test-mbrtowc-w32 test_mbrtowc_LDADD = $(LDADD) $(SETLOCALE_LIB) $(MBRTOWC_LIB) -EXTRA_DIST += test-mbrtowc-1.sh test-mbrtowc-2.sh test-mbrtowc-3.sh test-mbrtowc-4.sh test-mbrtowc-5.sh test-mbrtowc.c test-mbrtowc-w32-2.sh test-mbrtowc-w32-3.sh test-mbrtowc-w32-4.sh test-mbrtowc-w32-5.sh test-mbrtowc-w32-6.sh test-mbrtowc-w32-7.sh test-mbrtowc-w32-8.sh test-mbrtowc-w32.c signature.h macros.h + +if OS_IS_NATIVE_WINDOWS +TESTS += test-mbrtowc-w32utf8.sh +noinst_PROGRAMS += test-mbrtowc-w32utf8 +test_mbrtowc_w32utf8_LDADD = $(LDADD) test-mbrtowc-windows-utf8.res $(SETLOCALE_LIB) +test-mbrtowc-windows-utf8.res : $(srcdir)/windows-utf8.rc + $(WINDRES) -i $(srcdir)/windows-utf8.rc -o test-mbrtowc-windows-utf8.res --output-format=coff +MOSTLYCLEANFILES += test-mbrtowc-windows-utf8.res +endif +EXTRA_DIST += test-mbrtowc-1.sh test-mbrtowc-2.sh test-mbrtowc-3.sh test-mbrtowc-4.sh test-mbrtowc-5.sh test-mbrtowc.c test-mbrtowc-w32-2.sh test-mbrtowc-w32-3.sh test-mbrtowc-w32-4.sh test-mbrtowc-w32-5.sh test-mbrtowc-w32-6.sh test-mbrtowc-w32-7.sh test-mbrtowc-w32-8.sh test-mbrtowc-w32.c test-mbrtowc-w32utf8.sh test-mbrtowc-w32utf8.c windows-utf8.rc windows-utf8.manifest signature.h macros.h ## end gnulib module mbrtowc-tests ## begin gnulib module mbsinit-tests TESTS += test-mbsinit.sh -TESTS_ENVIRONMENT += LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' +TESTS_ENVIRONMENT += \ + LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \ + LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' check_PROGRAMS += test-mbsinit test_mbsinit_LDADD = $(LDADD) $(SETLOCALE_LIB) $(MBRTOWC_LIB) EXTRA_DIST += test-mbsinit.sh test-mbsinit.c signature.h macros.h ## end gnulib module mbsinit-tests +## begin gnulib module mbsnlen-tests + +TESTS += test-mbsnlen.sh +TESTS_ENVIRONMENT += \ + LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \ + LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' +check_PROGRAMS += test-mbsnlen +test_mbsnlen_LDADD = $(LDADD) $(LIBUNISTRING) $(SETLOCALE_LIB) $(MBRTOWC_LIB) $(LIBC32CONV) +EXTRA_DIST += test-mbsnlen.sh test-mbsnlen.c macros.h + +## end gnulib module mbsnlen-tests + ## begin gnulib module mbtowc if GL_COND_OBJ_MBTOWC @@ -1401,6 +1487,22 @@ EXTRA_DIST += test-memchr.c zerosize-ptr.h signature.h macros.h ## end gnulib module memchr-tests +## begin gnulib module mkfifo + +if GL_COND_OBJ_MKFIFO +libtests_a_SOURCES += mkfifo.c +endif + +## end gnulib module mkfifo + +## begin gnulib module mkfifo-tests + +TESTS += test-mkfifo +check_PROGRAMS += test-mkfifo +EXTRA_DIST += test-mkfifo.h test-mkfifo.c signature.h macros.h + +## end gnulib module mkfifo-tests + ## begin gnulib module msvc-inval if GL_COND_OBJ_MSVC_INVAL @@ -1444,7 +1546,7 @@ EXTRA_DIST += test-nanosleep.c signature.h macros.h ## end gnulib module nanosleep-tests -## begin gnulib module netinet_in +## begin gnulib module netinet_in-h BUILT_SOURCES += $(NETINET_IN_H) @@ -1471,15 +1573,27 @@ MOSTLYCLEANDIRS += netinet EXTRA_DIST += netinet_in.in.h -## end gnulib module netinet_in +## end gnulib module netinet_in-h + +## begin gnulib module netinet_in-h-tests + +TESTS += test-netinet_in-h +check_PROGRAMS += test-netinet_in-h +EXTRA_DIST += test-netinet_in-h.c + +## end gnulib module netinet_in-h-tests -## begin gnulib module netinet_in-tests +## begin gnulib module once-tests -TESTS += test-netinet_in -check_PROGRAMS += test-netinet_in -EXTRA_DIST += test-netinet_in.c +TESTS += test-once1 test-once2 +check_PROGRAMS += test-once1 test-once2 +test_once1_SOURCES = test-once.c +test_once1_LDADD = $(LDADD) @LIBTHREAD@ +test_once2_SOURCES = test-once.c +test_once2_LDADD = $(LDADD) @LIBMULTITHREAD@ +EXTRA_DIST += test-once.c macros.h -## end gnulib module netinet_in-tests +## end gnulib module once-tests ## begin gnulib module open @@ -1577,154 +1691,22 @@ EXTRA_DIST += test-pselect.c test-select.h macros.h signature.h ## end gnulib module pselect-tests -## begin gnulib module pthread-h +## begin gnulib module pthread-cond -BUILT_SOURCES += pthread.h +if GL_COND_OBJ_PTHREAD_COND +libtests_a_SOURCES += pthread-cond.c +endif -# We need the following in order to create <pthread.h> when the system -# doesn't have one that works with the given compiler. -pthread.h: pthread.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(_NORETURN_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) - $(gl_V_at)$(SED_HEADER_STDOUT) \ - -e 's|@''GUARD_PREFIX''@|GL|g' \ - -e 's|@''HAVE_PTHREAD_H''@|$(HAVE_PTHREAD_H)|g' \ - -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ - -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ - -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ - -e 's|@''NEXT_PTHREAD_H''@|$(NEXT_PTHREAD_H)|g' \ - -e 's/@''GNULIB_PTHREAD_THREAD''@/$(GL_GNULIB_PTHREAD_THREAD)/g' \ - -e 's/@''GNULIB_PTHREAD_ONCE''@/$(GL_GNULIB_PTHREAD_ONCE)/g' \ - -e 's/@''GNULIB_PTHREAD_MUTEX''@/$(GL_GNULIB_PTHREAD_MUTEX)/g' \ - -e 's/@''GNULIB_PTHREAD_RWLOCK''@/$(GL_GNULIB_PTHREAD_RWLOCK)/g' \ - -e 's/@''GNULIB_PTHREAD_COND''@/$(GL_GNULIB_PTHREAD_COND)/g' \ - -e 's/@''GNULIB_PTHREAD_TSS''@/$(GL_GNULIB_PTHREAD_TSS)/g' \ - -e 's/@''GNULIB_PTHREAD_SPIN''@/$(GL_GNULIB_PTHREAD_SPIN)/g' \ - -e 's/@''GNULIB_PTHREAD_MUTEX_TIMEDLOCK''@/$(GL_GNULIB_PTHREAD_MUTEX_TIMEDLOCK)/g' \ - -e 's|@''HAVE_PTHREAD_T''@|$(HAVE_PTHREAD_T)|g' \ - -e 's|@''HAVE_PTHREAD_SPINLOCK_T''@|$(HAVE_PTHREAD_SPINLOCK_T)|g' \ - -e 's|@''HAVE_PTHREAD_CREATE_DETACHED''@|$(HAVE_PTHREAD_CREATE_DETACHED)|g' \ - -e 's|@''HAVE_PTHREAD_MUTEX_RECURSIVE''@|$(HAVE_PTHREAD_MUTEX_RECURSIVE)|g' \ - -e 's|@''HAVE_PTHREAD_MUTEX_ROBUST''@|$(HAVE_PTHREAD_MUTEX_ROBUST)|g' \ - -e 's|@''HAVE_PTHREAD_PROCESS_SHARED''@|$(HAVE_PTHREAD_PROCESS_SHARED)|g' \ - -e 's|@''HAVE_PTHREAD_CREATE''@|$(HAVE_PTHREAD_CREATE)|g' \ - -e 's|@''HAVE_PTHREAD_ATTR_INIT''@|$(HAVE_PTHREAD_ATTR_INIT)|g' \ - -e 's|@''HAVE_PTHREAD_ATTR_GETDETACHSTATE''@|$(HAVE_PTHREAD_ATTR_GETDETACHSTATE)|g' \ - -e 's|@''HAVE_PTHREAD_ATTR_SETDETACHSTATE''@|$(HAVE_PTHREAD_ATTR_SETDETACHSTATE)|g' \ - -e 's|@''HAVE_PTHREAD_ATTR_DESTROY''@|$(HAVE_PTHREAD_ATTR_DESTROY)|g' \ - -e 's|@''HAVE_PTHREAD_SELF''@|$(HAVE_PTHREAD_SELF)|g' \ - -e 's|@''HAVE_PTHREAD_EQUAL''@|$(HAVE_PTHREAD_EQUAL)|g' \ - -e 's|@''HAVE_PTHREAD_DETACH''@|$(HAVE_PTHREAD_DETACH)|g' \ - -e 's|@''HAVE_PTHREAD_JOIN''@|$(HAVE_PTHREAD_JOIN)|g' \ - -e 's|@''HAVE_PTHREAD_EXIT''@|$(HAVE_PTHREAD_EXIT)|g' \ - < $(srcdir)/pthread.in.h > $@-t1 - $(AM_V_at)sed \ - -e 's|@''HAVE_PTHREAD_ONCE''@|$(HAVE_PTHREAD_ONCE)|g' \ - -e 's|@''HAVE_PTHREAD_MUTEX_INIT''@|$(HAVE_PTHREAD_MUTEX_INIT)|g' \ - -e 's|@''HAVE_PTHREAD_MUTEXATTR_INIT''@|$(HAVE_PTHREAD_MUTEXATTR_INIT)|g' \ - -e 's|@''HAVE_PTHREAD_MUTEXATTR_GETTYPE''@|$(HAVE_PTHREAD_MUTEXATTR_GETTYPE)|g' \ - -e 's|@''HAVE_PTHREAD_MUTEXATTR_SETTYPE''@|$(HAVE_PTHREAD_MUTEXATTR_SETTYPE)|g' \ - -e 's|@''HAVE_PTHREAD_MUTEXATTR_GETROBUST''@|$(HAVE_PTHREAD_MUTEXATTR_GETROBUST)|g' \ - -e 's|@''HAVE_PTHREAD_MUTEXATTR_SETROBUST''@|$(HAVE_PTHREAD_MUTEXATTR_SETROBUST)|g' \ - -e 's|@''HAVE_PTHREAD_MUTEXATTR_DESTROY''@|$(HAVE_PTHREAD_MUTEXATTR_DESTROY)|g' \ - -e 's|@''HAVE_PTHREAD_MUTEX_LOCK''@|$(HAVE_PTHREAD_MUTEX_LOCK)|g' \ - -e 's|@''HAVE_PTHREAD_MUTEX_TRYLOCK''@|$(HAVE_PTHREAD_MUTEX_TRYLOCK)|g' \ - -e 's|@''HAVE_PTHREAD_MUTEX_TIMEDLOCK''@|$(HAVE_PTHREAD_MUTEX_TIMEDLOCK)|g' \ - -e 's|@''HAVE_PTHREAD_MUTEX_UNLOCK''@|$(HAVE_PTHREAD_MUTEX_UNLOCK)|g' \ - -e 's|@''HAVE_PTHREAD_MUTEX_DESTROY''@|$(HAVE_PTHREAD_MUTEX_DESTROY)|g' \ - -e 's|@''HAVE_PTHREAD_RWLOCK_INIT''@|$(HAVE_PTHREAD_RWLOCK_INIT)|g' \ - -e 's|@''HAVE_PTHREAD_RWLOCKATTR_INIT''@|$(HAVE_PTHREAD_RWLOCKATTR_INIT)|g' \ - -e 's|@''HAVE_PTHREAD_RWLOCKATTR_DESTROY''@|$(HAVE_PTHREAD_RWLOCKATTR_DESTROY)|g' \ - -e 's|@''HAVE_PTHREAD_RWLOCK_RDLOCK''@|$(HAVE_PTHREAD_RWLOCK_RDLOCK)|g' \ - -e 's|@''HAVE_PTHREAD_RWLOCK_WRLOCK''@|$(HAVE_PTHREAD_RWLOCK_WRLOCK)|g' \ - -e 's|@''HAVE_PTHREAD_RWLOCK_TRYRDLOCK''@|$(HAVE_PTHREAD_RWLOCK_TRYRDLOCK)|g' \ - -e 's|@''HAVE_PTHREAD_RWLOCK_TRYWRLOCK''@|$(HAVE_PTHREAD_RWLOCK_TRYWRLOCK)|g' \ - -e 's|@''HAVE_PTHREAD_RWLOCK_TIMEDRDLOCK''@|$(HAVE_PTHREAD_RWLOCK_TIMEDRDLOCK)|g' \ - -e 's|@''HAVE_PTHREAD_RWLOCK_TIMEDWRLOCK''@|$(HAVE_PTHREAD_RWLOCK_TIMEDWRLOCK)|g' \ - -e 's|@''HAVE_PTHREAD_RWLOCK_UNLOCK''@|$(HAVE_PTHREAD_RWLOCK_UNLOCK)|g' \ - -e 's|@''HAVE_PTHREAD_RWLOCK_DESTROY''@|$(HAVE_PTHREAD_RWLOCK_DESTROY)|g' \ - -e 's|@''HAVE_PTHREAD_COND_INIT''@|$(HAVE_PTHREAD_COND_INIT)|g' \ - -e 's|@''HAVE_PTHREAD_CONDATTR_INIT''@|$(HAVE_PTHREAD_CONDATTR_INIT)|g' \ - -e 's|@''HAVE_PTHREAD_CONDATTR_DESTROY''@|$(HAVE_PTHREAD_CONDATTR_DESTROY)|g' \ - -e 's|@''HAVE_PTHREAD_COND_WAIT''@|$(HAVE_PTHREAD_COND_WAIT)|g' \ - -e 's|@''HAVE_PTHREAD_COND_TIMEDWAIT''@|$(HAVE_PTHREAD_COND_TIMEDWAIT)|g' \ - -e 's|@''HAVE_PTHREAD_COND_SIGNAL''@|$(HAVE_PTHREAD_COND_SIGNAL)|g' \ - -e 's|@''HAVE_PTHREAD_COND_BROADCAST''@|$(HAVE_PTHREAD_COND_BROADCAST)|g' \ - -e 's|@''HAVE_PTHREAD_COND_DESTROY''@|$(HAVE_PTHREAD_COND_DESTROY)|g' \ - -e 's|@''HAVE_PTHREAD_KEY_CREATE''@|$(HAVE_PTHREAD_KEY_CREATE)|g' \ - -e 's|@''HAVE_PTHREAD_SETSPECIFIC''@|$(HAVE_PTHREAD_SETSPECIFIC)|g' \ - -e 's|@''HAVE_PTHREAD_GETSPECIFIC''@|$(HAVE_PTHREAD_GETSPECIFIC)|g' \ - -e 's|@''HAVE_PTHREAD_KEY_DELETE''@|$(HAVE_PTHREAD_KEY_DELETE)|g' \ - -e 's|@''HAVE_PTHREAD_SPIN_INIT''@|$(HAVE_PTHREAD_SPIN_INIT)|g' \ - -e 's|@''HAVE_PTHREAD_SPIN_LOCK''@|$(HAVE_PTHREAD_SPIN_LOCK)|g' \ - -e 's|@''HAVE_PTHREAD_SPIN_TRYLOCK''@|$(HAVE_PTHREAD_SPIN_TRYLOCK)|g' \ - -e 's|@''HAVE_PTHREAD_SPIN_UNLOCK''@|$(HAVE_PTHREAD_SPIN_UNLOCK)|g' \ - -e 's|@''HAVE_PTHREAD_SPIN_DESTROY''@|$(HAVE_PTHREAD_SPIN_DESTROY)|g' \ - < $@-t1 > $@-t2 - $(AM_V_at)sed \ - -e 's|@''REPLACE_PTHREAD_CREATE''@|$(REPLACE_PTHREAD_CREATE)|g' \ - -e 's|@''REPLACE_PTHREAD_ATTR_INIT''@|$(REPLACE_PTHREAD_ATTR_INIT)|g' \ - -e 's|@''REPLACE_PTHREAD_ATTR_GETDETACHSTATE''@|$(REPLACE_PTHREAD_ATTR_GETDETACHSTATE)|g' \ - -e 's|@''REPLACE_PTHREAD_ATTR_SETDETACHSTATE''@|$(REPLACE_PTHREAD_ATTR_SETDETACHSTATE)|g' \ - -e 's|@''REPLACE_PTHREAD_ATTR_DESTROY''@|$(REPLACE_PTHREAD_ATTR_DESTROY)|g' \ - -e 's|@''REPLACE_PTHREAD_SELF''@|$(REPLACE_PTHREAD_SELF)|g' \ - -e 's|@''REPLACE_PTHREAD_EQUAL''@|$(REPLACE_PTHREAD_EQUAL)|g' \ - -e 's|@''REPLACE_PTHREAD_DETACH''@|$(REPLACE_PTHREAD_DETACH)|g' \ - -e 's|@''REPLACE_PTHREAD_JOIN''@|$(REPLACE_PTHREAD_JOIN)|g' \ - -e 's|@''REPLACE_PTHREAD_EXIT''@|$(REPLACE_PTHREAD_EXIT)|g' \ - -e 's|@''REPLACE_PTHREAD_ONCE''@|$(REPLACE_PTHREAD_ONCE)|g' \ - -e 's|@''REPLACE_PTHREAD_MUTEX_INIT''@|$(REPLACE_PTHREAD_MUTEX_INIT)|g' \ - -e 's|@''REPLACE_PTHREAD_MUTEXATTR_INIT''@|$(REPLACE_PTHREAD_MUTEXATTR_INIT)|g' \ - -e 's|@''REPLACE_PTHREAD_MUTEXATTR_GETTYPE''@|$(REPLACE_PTHREAD_MUTEXATTR_GETTYPE)|g' \ - -e 's|@''REPLACE_PTHREAD_MUTEXATTR_SETTYPE''@|$(REPLACE_PTHREAD_MUTEXATTR_SETTYPE)|g' \ - -e 's|@''REPLACE_PTHREAD_MUTEXATTR_GETROBUST''@|$(REPLACE_PTHREAD_MUTEXATTR_GETROBUST)|g' \ - -e 's|@''REPLACE_PTHREAD_MUTEXATTR_SETROBUST''@|$(REPLACE_PTHREAD_MUTEXATTR_SETROBUST)|g' \ - -e 's|@''REPLACE_PTHREAD_MUTEXATTR_DESTROY''@|$(REPLACE_PTHREAD_MUTEXATTR_DESTROY)|g' \ - -e 's|@''REPLACE_PTHREAD_MUTEX_LOCK''@|$(REPLACE_PTHREAD_MUTEX_LOCK)|g' \ - -e 's|@''REPLACE_PTHREAD_MUTEX_TRYLOCK''@|$(REPLACE_PTHREAD_MUTEX_TRYLOCK)|g' \ - -e 's|@''REPLACE_PTHREAD_MUTEX_TIMEDLOCK''@|$(REPLACE_PTHREAD_MUTEX_TIMEDLOCK)|g' \ - -e 's|@''REPLACE_PTHREAD_MUTEX_UNLOCK''@|$(REPLACE_PTHREAD_MUTEX_UNLOCK)|g' \ - -e 's|@''REPLACE_PTHREAD_MUTEX_DESTROY''@|$(REPLACE_PTHREAD_MUTEX_DESTROY)|g' \ - -e 's|@''REPLACE_PTHREAD_RWLOCK_INIT''@|$(REPLACE_PTHREAD_RWLOCK_INIT)|g' \ - -e 's|@''REPLACE_PTHREAD_RWLOCKATTR_INIT''@|$(REPLACE_PTHREAD_RWLOCKATTR_INIT)|g' \ - -e 's|@''REPLACE_PTHREAD_RWLOCKATTR_DESTROY''@|$(REPLACE_PTHREAD_RWLOCKATTR_DESTROY)|g' \ - -e 's|@''REPLACE_PTHREAD_RWLOCK_RDLOCK''@|$(REPLACE_PTHREAD_RWLOCK_RDLOCK)|g' \ - -e 's|@''REPLACE_PTHREAD_RWLOCK_WRLOCK''@|$(REPLACE_PTHREAD_RWLOCK_WRLOCK)|g' \ - -e 's|@''REPLACE_PTHREAD_RWLOCK_TRYRDLOCK''@|$(REPLACE_PTHREAD_RWLOCK_TRYRDLOCK)|g' \ - -e 's|@''REPLACE_PTHREAD_RWLOCK_TRYWRLOCK''@|$(REPLACE_PTHREAD_RWLOCK_TRYWRLOCK)|g' \ - -e 's|@''REPLACE_PTHREAD_RWLOCK_TIMEDRDLOCK''@|$(REPLACE_PTHREAD_RWLOCK_TIMEDRDLOCK)|g' \ - -e 's|@''REPLACE_PTHREAD_RWLOCK_TIMEDWRLOCK''@|$(REPLACE_PTHREAD_RWLOCK_TIMEDWRLOCK)|g' \ - -e 's|@''REPLACE_PTHREAD_RWLOCK_UNLOCK''@|$(REPLACE_PTHREAD_RWLOCK_UNLOCK)|g' \ - -e 's|@''REPLACE_PTHREAD_RWLOCK_DESTROY''@|$(REPLACE_PTHREAD_RWLOCK_DESTROY)|g' \ - < $@-t2 > $@-t3 - $(AM_V_at)sed \ - -e 's|@''REPLACE_PTHREAD_COND_INIT''@|$(REPLACE_PTHREAD_COND_INIT)|g' \ - -e 's|@''REPLACE_PTHREAD_CONDATTR_INIT''@|$(REPLACE_PTHREAD_CONDATTR_INIT)|g' \ - -e 's|@''REPLACE_PTHREAD_CONDATTR_DESTROY''@|$(REPLACE_PTHREAD_CONDATTR_DESTROY)|g' \ - -e 's|@''REPLACE_PTHREAD_COND_WAIT''@|$(REPLACE_PTHREAD_COND_WAIT)|g' \ - -e 's|@''REPLACE_PTHREAD_COND_TIMEDWAIT''@|$(REPLACE_PTHREAD_COND_TIMEDWAIT)|g' \ - -e 's|@''REPLACE_PTHREAD_COND_SIGNAL''@|$(REPLACE_PTHREAD_COND_SIGNAL)|g' \ - -e 's|@''REPLACE_PTHREAD_COND_BROADCAST''@|$(REPLACE_PTHREAD_COND_BROADCAST)|g' \ - -e 's|@''REPLACE_PTHREAD_COND_DESTROY''@|$(REPLACE_PTHREAD_COND_DESTROY)|g' \ - -e 's|@''REPLACE_PTHREAD_KEY_CREATE''@|$(REPLACE_PTHREAD_KEY_CREATE)|g' \ - -e 's|@''REPLACE_PTHREAD_SETSPECIFIC''@|$(REPLACE_PTHREAD_SETSPECIFIC)|g' \ - -e 's|@''REPLACE_PTHREAD_GETSPECIFIC''@|$(REPLACE_PTHREAD_GETSPECIFIC)|g' \ - -e 's|@''REPLACE_PTHREAD_KEY_DELETE''@|$(REPLACE_PTHREAD_KEY_DELETE)|g' \ - -e 's|@''REPLACE_PTHREAD_SPIN_INIT''@|$(REPLACE_PTHREAD_SPIN_INIT)|g' \ - -e 's|@''REPLACE_PTHREAD_SPIN_LOCK''@|$(REPLACE_PTHREAD_SPIN_LOCK)|g' \ - -e 's|@''REPLACE_PTHREAD_SPIN_TRYLOCK''@|$(REPLACE_PTHREAD_SPIN_TRYLOCK)|g' \ - -e 's|@''REPLACE_PTHREAD_SPIN_UNLOCK''@|$(REPLACE_PTHREAD_SPIN_UNLOCK)|g' \ - -e 's|@''REPLACE_PTHREAD_SPIN_DESTROY''@|$(REPLACE_PTHREAD_SPIN_DESTROY)|g' \ - -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ - -e '/definition of _Noreturn/r $(_NORETURN_H)' \ - -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ - -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ - < $@-t3 > $@-t4 - $(AM_V_at)rm -f $@-t1 $@-t2 $@-t3 - $(AM_V_at)mv $@-t4 $@ -MOSTLYCLEANFILES += pthread.h pthread.h-t1 pthread.h-t2 pthread.h-t3 pthread.h-t4 +## end gnulib module pthread-cond -EXTRA_DIST += pthread.in.h +## begin gnulib module pthread-cond-tests -## end gnulib module pthread-h +TESTS += test-pthread-cond +check_PROGRAMS += test-pthread-cond +test_pthread_cond_LDADD = $(LDADD) @LIBPMULTITHREAD@ @SCHED_YIELD_LIB@ +EXTRA_DIST += test-pthread-cond.c virtualbox.h macros.h + +## end gnulib module pthread-cond-tests ## begin gnulib module pthread-h-tests @@ -1734,6 +1716,53 @@ EXTRA_DIST += test-pthread.c ## end gnulib module pthread-h-tests +## begin gnulib module pthread-mutex + +if GL_COND_OBJ_PTHREAD_MUTEX +libtests_a_SOURCES += pthread-mutex.c +endif + +## end gnulib module pthread-mutex + +## begin gnulib module pthread-mutex-tests + +TESTS += test-pthread-mutex test-pthread-mutex-type +check_PROGRAMS += test-pthread-mutex test-pthread-mutex-type +test_pthread_mutex_LDADD = $(LDADD) @LIBPMULTITHREAD@ @SCHED_YIELD_LIB@ @LIB_SEMAPHORE@ +# If we were to link test-pthread-mutex-type only with @LIBPTHREAD@ instead of +# @LIBPMULTITHREAD@, this test would fail on FreeBSD and NetBSD. +test_pthread_mutex_type_LDADD = $(LDADD) @LIBPMULTITHREAD@ +EXTRA_DIST += test-pthread-mutex.c test-pthread-mutex-type.c atomic-int-posix.h macros.h + +## end gnulib module pthread-mutex-tests + +## begin gnulib module pthread-once-tests + +TESTS += test-pthread-once1 test-pthread-once2 +check_PROGRAMS += test-pthread-once1 test-pthread-once2 +test_pthread_once1_LDADD = $(LDADD) @PTHREAD_ONCE_LIB@ +test_pthread_once2_LDADD = $(LDADD) @LIBPMULTITHREAD@ @SCHED_YIELD_LIB@ +EXTRA_DIST += test-pthread-once1.c test-pthread-once2.c macros.h + +## end gnulib module pthread-once-tests + +## begin gnulib module pthread-rwlock + +if GL_COND_OBJ_PTHREAD_RWLOCK +libtests_a_SOURCES += pthread-rwlock.c +endif + +## end gnulib module pthread-rwlock + +## begin gnulib module pthread-rwlock-tests + +TESTS += test-pthread-rwlock +check_PROGRAMS += test-pthread-rwlock +test_pthread_rwlock_LDADD = $(LDADD) @LIBPMULTITHREAD@ @SCHED_YIELD_LIB@ @LIB_SEMAPHORE@ +EXTRA_DIST += test-pthread-rwlock.c atomic-int-posix.h macros.h + +## end gnulib module pthread-rwlock-tests + ## begin gnulib module pthread-thread if GL_COND_OBJ_PTHREAD_THREAD @@ -1751,6 +1780,14 @@ EXTRA_DIST += test-pthread-thread.c macros.h ## end gnulib module pthread-thread-tests +## begin gnulib module pthread_mutex_timedlock + +if GL_COND_OBJ_PTHREAD_MUTEX_TIMEDLOCK +libtests_a_SOURCES += pthread_mutex_timedlock.c +endif + +## end gnulib module pthread_mutex_timedlock + ## begin gnulib module pthread_sigmask if GL_COND_OBJ_PTHREAD_SIGMASK @@ -1761,21 +1798,33 @@ endif ## begin gnulib module pthread_sigmask-tests -TESTS += test-pthread_sigmask1 test-pthread_sigmask2 +# Work around https://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=57214 +if !OS_IS_NETBSD +TESTS += test-pthread_sigmask1 +endif +TESTS += test-pthread_sigmask2 check_PROGRAMS += test-pthread_sigmask1 test-pthread_sigmask2 test_pthread_sigmask1_LDADD = $(LDADD) @PTHREAD_SIGMASK_LIB@ test_pthread_sigmask2_LDADD = $(LDADD) @PTHREAD_SIGMASK_LIB@ @LIBMULTITHREAD@ -EXTRA_DIST += test-pthread_sigmask1.c test-pthread_sigmask2.c signature.h macros.h +EXTRA_DIST += test-pthread_sigmask1.c test-pthread_sigmask2.c signature.h virtualbox.h macros.h ## end gnulib module pthread_sigmask-tests -## begin gnulib module putenv +## begin gnulib module putenv-gnu if GL_COND_OBJ_PUTENV libtests_a_SOURCES += putenv.c endif -## end gnulib module putenv +## end gnulib module putenv-gnu + +## begin gnulib module putenv-gnu-tests + +TESTS += test-putenv +check_PROGRAMS += test-putenv +EXTRA_DIST += test-putenv.c macros.h signature.h + +## end gnulib module putenv-gnu-tests ## begin gnulib module raise @@ -1826,31 +1875,21 @@ EXTRA_DIST += test-random_r.c signature.h macros.h ## end gnulib module random_r-tests -## begin gnulib module realloc-gnu - - -EXTRA_DIST += realloc.c - -EXTRA_libtests_a_SOURCES += realloc.c - -## end gnulib module realloc-gnu - -## begin gnulib module realloc-gnu-tests - -TESTS += test-realloc-gnu -check_PROGRAMS += test-realloc-gnu -EXTRA_DIST += test-realloc-gnu.c macros.h - -## end gnulib module realloc-gnu-tests - ## begin gnulib module realloc-posix +if GL_COND_OBJ_REALLOC_POSIX +libtests_a_SOURCES += realloc.c +endif + +## end gnulib module realloc-posix -EXTRA_DIST += realloc.c +## begin gnulib module realloc-posix-tests -EXTRA_libtests_a_SOURCES += realloc.c +TESTS += test-realloc-posix +check_PROGRAMS += test-realloc-posix +EXTRA_DIST += test-realloc-posix.c macros.h -## end gnulib module realloc-posix +## end gnulib module realloc-posix-tests ## begin gnulib module reallocarray @@ -1874,42 +1913,13 @@ libtests_a_SOURCES += same-inode.h same-inode.c ## end gnulib module same-inode -## begin gnulib module sched +## begin gnulib module sched-h-tests -BUILT_SOURCES += sched.h +TESTS += test-sched-h +check_PROGRAMS += test-sched-h +EXTRA_DIST += test-sched-h.c -# We need the following in order to create a replacement for <sched.h> when -# the system doesn't have one. -sched.h: sched.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) - $(gl_V_at)$(SED_HEADER_STDOUT) \ - -e 's|@''GUARD_PREFIX''@|GL|g' \ - -e 's|@''HAVE_SCHED_H''@|$(HAVE_SCHED_H)|g' \ - -e 's|@''HAVE_SYS_CDEFS_H''@|$(HAVE_SYS_CDEFS_H)|g' \ - -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ - -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ - -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ - -e 's|@''NEXT_SCHED_H''@|$(NEXT_SCHED_H)|g' \ - -e 's|@''HAVE_STRUCT_SCHED_PARAM''@|$(HAVE_STRUCT_SCHED_PARAM)|g' \ - -e 's/@''GNULIB_SCHED_YIELD''@/$(GL_GNULIB_SCHED_YIELD)/g' \ - -e 's|@''HAVE_SCHED_YIELD''@|$(HAVE_SCHED_YIELD)|g' \ - -e 's|@''REPLACE_SCHED_YIELD''@|$(REPLACE_SCHED_YIELD)|g' \ - -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ - -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ - $(srcdir)/sched.in.h > $@-t - $(AM_V_at)mv $@-t $@ -MOSTLYCLEANFILES += sched.h sched.h-t - -EXTRA_DIST += sched.in.h - -## end gnulib module sched - -## begin gnulib module sched-tests - -TESTS += test-sched -check_PROGRAMS += test-sched -EXTRA_DIST += test-sched.c - -## end gnulib module sched-tests +## end gnulib module sched-h-tests ## begin gnulib module sched_yield @@ -1990,16 +2000,26 @@ EXTRA_DIST += test-setlocale_null-unlocked.c ## begin gnulib module setlocale-tests -TESTS += test-setlocale1.sh test-setlocale2.sh +TESTS += test-setlocale1.sh test-setlocale2.sh test-setlocale-w32 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-setlocale1 test-setlocale2 +check_PROGRAMS += test-setlocale1 test-setlocale2 test-setlocale-w32 test_setlocale1_LDADD = $(LDADD) @SETLOCALE_LIB@ test_setlocale2_LDADD = $(LDADD) @SETLOCALE_LIB@ -EXTRA_DIST += test-setlocale1.sh test-setlocale1.c test-setlocale2.sh test-setlocale2.c signature.h macros.h +test_setlocale_w32_LDADD = $(LDADD) @SETLOCALE_LIB@ + +if OS_IS_NATIVE_WINDOWS +TESTS += test-setlocale-w32utf8.sh +noinst_PROGRAMS += test-setlocale-w32utf8 +test_setlocale_w32utf8_LDADD = $(LDADD) test-setlocale-windows-utf8.res $(SETLOCALE_LIB) +test-setlocale-windows-utf8.res : $(srcdir)/windows-utf8.rc + $(WINDRES) -i $(srcdir)/windows-utf8.rc -o test-setlocale-windows-utf8.res --output-format=coff +MOSTLYCLEANFILES += test-setlocale-windows-utf8.res +endif +EXTRA_DIST += test-setlocale1.sh test-setlocale1.c test-setlocale2.sh test-setlocale2.c test-setlocale-w32.c test-setlocale-w32utf8.sh test-setlocale-w32utf8.c windows-utf8.rc windows-utf8.manifest signature.h macros.h ## end gnulib module setlocale-tests @@ -2037,15 +2057,18 @@ signal.h: signal.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H -e 's|@''NEXT_SIGNAL_H''@|$(NEXT_SIGNAL_H)|g' \ -e 's/@''GNULIB_PTHREAD_SIGMASK''@/$(GL_GNULIB_PTHREAD_SIGMASK)/g' \ -e 's/@''GNULIB_RAISE''@/$(GL_GNULIB_RAISE)/g' \ + -e 's/@''GNULIB_SIG2STR''@/$(GL_GNULIB_SIG2STR)/g' \ -e 's/@''GNULIB_SIGNAL_H_SIGPIPE''@/$(GL_GNULIB_SIGNAL_H_SIGPIPE)/g' \ -e 's/@''GNULIB_SIGPROCMASK''@/$(GL_GNULIB_SIGPROCMASK)/g' \ -e 's/@''GNULIB_SIGACTION''@/$(GL_GNULIB_SIGACTION)/g' \ -e 's|@''HAVE_POSIX_SIGNALBLOCKING''@|$(HAVE_POSIX_SIGNALBLOCKING)|g' \ -e 's|@''HAVE_PTHREAD_SIGMASK''@|$(HAVE_PTHREAD_SIGMASK)|g' \ -e 's|@''HAVE_RAISE''@|$(HAVE_RAISE)|g' \ + -e 's|@''HAVE_SIG2STR''@|$(HAVE_SIG2STR)|g' \ -e 's|@''HAVE_SIGSET_T''@|$(HAVE_SIGSET_T)|g' \ -e 's|@''HAVE_SIGINFO_T''@|$(HAVE_SIGINFO_T)|g' \ -e 's|@''HAVE_SIGACTION''@|$(HAVE_SIGACTION)|g' \ + -e 's|@''HAVE_STR2SIG''@|$(HAVE_STR2SIG)|g' \ -e 's|@''HAVE_STRUCT_SIGACTION_SA_SIGACTION''@|$(HAVE_STRUCT_SIGACTION_SA_SIGACTION)|g' \ -e 's|@''HAVE_TYPE_VOLATILE_SIG_ATOMIC_T''@|$(HAVE_TYPE_VOLATILE_SIG_ATOMIC_T)|g' \ -e 's|@''HAVE_SIGHANDLER_T''@|$(HAVE_SIGHANDLER_T)|g' \ @@ -2101,9 +2124,12 @@ endif ## begin gnulib module sigprocmask-tests +# Work around https://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=57213 +if !OS_IS_NETBSD TESTS += test-sigprocmask +endif check_PROGRAMS += test-sigprocmask -EXTRA_DIST += test-sigprocmask.c signature.h macros.h +EXTRA_DIST += test-sigprocmask.c signature.h virtualbox.h macros.h ## end gnulib module sigprocmask-tests @@ -2237,44 +2263,36 @@ EXTRA_DIST += stat-time.h TESTS += test-stat-time check_PROGRAMS += test-stat-time -test_stat_time_LDADD = $(LDADD) $(NANOSLEEP_LIB) +test_stat_time_LDADD = $(LDADD) $(NANOSLEEP_LIB) @LIBINTL@ EXTRA_DIST += test-stat-time.c macros.h nap.h ## end gnulib module stat-time-tests -## begin gnulib module stdbool-tests +## begin gnulib module stdckdint-h-tests -TESTS += test-stdbool -check_PROGRAMS += test-stdbool -EXTRA_DIST += test-stdbool.c +TESTS += test-stdckdint-h +check_PROGRAMS += test-stdckdint-h +EXTRA_DIST += macros.h test-intprops.c test-stdckdint-h.c -## end gnulib module stdbool-tests +## end gnulib module stdckdint-h-tests -## begin gnulib module stdckdint-tests +## begin gnulib module stddef-h-tests -TESTS += test-stdckdint -check_PROGRAMS += test-stdckdint -EXTRA_DIST += macros.h test-intprops.c test-stdckdint.c +TESTS += test-stddef-h +check_PROGRAMS += test-stddef-h +EXTRA_DIST += test-stddef-h.c -## end gnulib module stdckdint-tests +## end gnulib module stddef-h-tests -## begin gnulib module stddef-tests +## begin gnulib module stdint-h-tests -TESTS += test-stddef -check_PROGRAMS += test-stddef -EXTRA_DIST += test-stddef.c +TESTS += test-stdint-h +check_PROGRAMS += test-stdint-h +EXTRA_DIST += test-stdint-h.c -## end gnulib module stddef-tests +## end gnulib module stdint-h-tests -## begin gnulib module stdint-tests - -TESTS += test-stdint -check_PROGRAMS += test-stdint -EXTRA_DIST += test-stdint.c - -## end gnulib module stdint-tests - -## begin gnulib module stdio +## begin gnulib module stdio-h BUILT_SOURCES += stdio.h @@ -2288,6 +2306,7 @@ stdio.h: stdio.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_STDIO_H''@|$(NEXT_STDIO_H)|g' \ -e 's/@''GNULIB_DPRINTF''@/$(GL_GNULIB_DPRINTF)/g' \ + -e 's/@''GNULIB_DZPRINTF''@/$(GL_GNULIB_DZPRINTF)/g' \ -e 's/@''GNULIB_FCLOSE''@/$(GL_GNULIB_FCLOSE)/g' \ -e 's/@''GNULIB_FDOPEN''@/$(GL_GNULIB_FDOPEN)/g' \ -e 's/@''GNULIB_FFLUSH''@/$(GL_GNULIB_FFLUSH)/g' \ @@ -2308,12 +2327,14 @@ stdio.h: stdio.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) -e 's/@''GNULIB_FTELL''@/$(GL_GNULIB_FTELL)/g' \ -e 's/@''GNULIB_FTELLO''@/$(GL_GNULIB_FTELLO)/g' \ -e 's/@''GNULIB_FWRITE''@/$(GL_GNULIB_FWRITE)/g' \ + -e 's/@''GNULIB_FZPRINTF''@/$(GL_GNULIB_FZPRINTF)/g' \ -e 's/@''GNULIB_GETC''@/$(GL_GNULIB_GETC)/g' \ -e 's/@''GNULIB_GETCHAR''@/$(GL_GNULIB_GETCHAR)/g' \ -e 's/@''GNULIB_GETDELIM''@/$(GL_GNULIB_GETDELIM)/g' \ -e 's/@''GNULIB_GETLINE''@/$(GL_GNULIB_GETLINE)/g' \ -e 's/@''GNULIB_OBSTACK_PRINTF''@/$(GL_GNULIB_OBSTACK_PRINTF)/g' \ -e 's/@''GNULIB_OBSTACK_PRINTF_POSIX''@/$(GL_GNULIB_OBSTACK_PRINTF_POSIX)/g' \ + -e 's/@''GNULIB_OBSTACK_ZPRINTF''@/$(GL_GNULIB_OBSTACK_ZPRINTF)/g' \ -e 's/@''GNULIB_PCLOSE''@/$(GL_GNULIB_PCLOSE)/g' \ -e 's/@''GNULIB_PERROR''@/$(GL_GNULIB_PERROR)/g' \ -e 's/@''GNULIB_POPEN''@/$(GL_GNULIB_POPEN)/g' \ @@ -2327,20 +2348,29 @@ stdio.h: stdio.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) -e 's/@''GNULIB_RENAMEAT''@/$(GL_GNULIB_RENAMEAT)/g' \ -e 's/@''GNULIB_SCANF''@/$(GL_GNULIB_SCANF)/g' \ -e 's/@''GNULIB_SNPRINTF''@/$(GL_GNULIB_SNPRINTF)/g' \ + -e 's/@''GNULIB_SNZPRINTF''@/$(GL_GNULIB_SNZPRINTF)/g' \ -e 's/@''GNULIB_SPRINTF_POSIX''@/$(GL_GNULIB_SPRINTF_POSIX)/g' \ -e 's/@''GNULIB_STDIO_H_NONBLOCKING''@/$(GL_GNULIB_STDIO_H_NONBLOCKING)/g' \ -e 's/@''GNULIB_STDIO_H_SIGPIPE''@/$(GL_GNULIB_STDIO_H_SIGPIPE)/g' \ + -e 's/@''GNULIB_SZPRINTF''@/$(GL_GNULIB_SZPRINTF)/g' \ -e 's/@''GNULIB_TMPFILE''@/$(GL_GNULIB_TMPFILE)/g' \ -e 's/@''GNULIB_VASPRINTF''@/$(GL_GNULIB_VASPRINTF)/g' \ + -e 's/@''GNULIB_VASZPRINTF''@/$(GL_GNULIB_VASZPRINTF)/g' \ -e 's/@''GNULIB_VDPRINTF''@/$(GL_GNULIB_VDPRINTF)/g' \ + -e 's/@''GNULIB_VDZPRINTF''@/$(GL_GNULIB_VDZPRINTF)/g' \ -e 's/@''GNULIB_VFPRINTF''@/$(GL_GNULIB_VFPRINTF)/g' \ -e 's/@''GNULIB_VFPRINTF_POSIX''@/$(GL_GNULIB_VFPRINTF_POSIX)/g' \ + -e 's/@''GNULIB_VFZPRINTF''@/$(GL_GNULIB_VFZPRINTF)/g' \ -e 's/@''GNULIB_VFSCANF''@/$(GL_GNULIB_VFSCANF)/g' \ -e 's/@''GNULIB_VSCANF''@/$(GL_GNULIB_VSCANF)/g' \ -e 's/@''GNULIB_VPRINTF''@/$(GL_GNULIB_VPRINTF)/g' \ -e 's/@''GNULIB_VPRINTF_POSIX''@/$(GL_GNULIB_VPRINTF_POSIX)/g' \ -e 's/@''GNULIB_VSNPRINTF''@/$(GL_GNULIB_VSNPRINTF)/g' \ + -e 's/@''GNULIB_VSNZPRINTF''@/$(GL_GNULIB_VSNZPRINTF)/g' \ -e 's/@''GNULIB_VSPRINTF_POSIX''@/$(GL_GNULIB_VSPRINTF_POSIX)/g' \ + -e 's/@''GNULIB_VSZPRINTF''@/$(GL_GNULIB_VSZPRINTF)/g' \ + -e 's/@''GNULIB_VZPRINTF''@/$(GL_GNULIB_VZPRINTF)/g' \ + -e 's/@''GNULIB_ZPRINTF''@/$(GL_GNULIB_ZPRINTF)/g' \ -e 's/@''GNULIB_MDA_FCLOSEALL''@/$(GL_GNULIB_MDA_FCLOSEALL)/g' \ -e 's/@''GNULIB_MDA_FDOPEN''@/$(GL_GNULIB_MDA_FDOPEN)/g' \ -e 's/@''GNULIB_MDA_FILENO''@/$(GL_GNULIB_MDA_FILENO)/g' \ @@ -2412,6 +2442,9 @@ stdio.h: stdio.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(AM_V_at)mv $@-t3 $@ MOSTLYCLEANFILES += stdio.h stdio.h-t1 stdio.h-t2 stdio.h-t3 +if GL_COND_OBJ_STDIO_CONSOLESAFE +libtests_a_SOURCES += stdio-consolesafe.c +endif if GL_COND_OBJ_STDIO_READ libtests_a_SOURCES += stdio-read.c endif @@ -2421,23 +2454,59 @@ endif EXTRA_DIST += stdio.in.h -## end gnulib module stdio +## end gnulib module stdio-h + +## begin gnulib module stdio-h-tests + +TESTS += test-stdio-h +check_PROGRAMS += test-stdio-h +EXTRA_DIST += test-stdio-h.c macros.h + +## end gnulib module stdio-h-tests + +## begin gnulib module stdlib-h-tests + +TESTS += test-stdlib-h +check_PROGRAMS += test-stdlib-h +EXTRA_DIST += test-stdlib-h.c test-sys_wait-h.h + +## end gnulib module stdlib-h-tests + +## begin gnulib module stpcpy + +if GL_COND_OBJ_STPCPY +libtests_a_SOURCES += stpcpy.c +endif + +## end gnulib module stpcpy + +## begin gnulib module str_endswith + +libtests_a_SOURCES += str_endswith.c + +## end gnulib module str_endswith -## begin gnulib module stdio-tests +## begin gnulib module str_endswith-tests -TESTS += test-stdio -check_PROGRAMS += test-stdio -EXTRA_DIST += test-stdio.c macros.h +TESTS += test-str_endswith +check_PROGRAMS += test-str_endswith +EXTRA_DIST += test-str_endswith.c macros.h -## end gnulib module stdio-tests +## end gnulib module str_endswith-tests -## begin gnulib module stdlib-tests +## begin gnulib module str_startswith -TESTS += test-stdlib -check_PROGRAMS += test-stdlib -EXTRA_DIST += test-stdlib.c test-sys_wait.h +libtests_a_SOURCES += str_startswith.c -## end gnulib module stdlib-tests +## end gnulib module str_startswith + +## begin gnulib module str_startswith-tests + +TESTS += test-str_startswith +check_PROGRAMS += test-str_startswith +EXTRA_DIST += test-str_startswith.c macros.h + +## end gnulib module str_startswith-tests ## begin gnulib module strerror @@ -2503,13 +2572,13 @@ EXTRA_DIST += test-striconveha.c iconvsupport.c macros.h ## end gnulib module striconveha-tests -## begin gnulib module string-tests +## begin gnulib module string-h-tests -TESTS += test-string -check_PROGRAMS += test-string -EXTRA_DIST += test-string.c +TESTS += test-string-h +check_PROGRAMS += test-string-h +EXTRA_DIST += test-string-h.c -## end gnulib module string-tests +## end gnulib module string-h-tests ## begin gnulib module strncat-tests @@ -2543,7 +2612,7 @@ EXTRA_DIST += test-symlink.h test-symlink.c signature.h macros.h ## end gnulib module symlink-tests -## begin gnulib module sys_ioctl +## begin gnulib module sys_ioctl-h BUILT_SOURCES += sys/ioctl.h @@ -2571,17 +2640,17 @@ MOSTLYCLEANDIRS += sys EXTRA_DIST += sys_ioctl.in.h -## end gnulib module sys_ioctl +## end gnulib module sys_ioctl-h -## begin gnulib module sys_ioctl-tests +## begin gnulib module sys_ioctl-h-tests -TESTS += test-sys_ioctl -check_PROGRAMS += test-sys_ioctl -EXTRA_DIST += test-sys_ioctl.c +TESTS += test-sys_ioctl-h +check_PROGRAMS += test-sys_ioctl-h +EXTRA_DIST += test-sys_ioctl-h.c -## end gnulib module sys_ioctl-tests +## end gnulib module sys_ioctl-h-tests -## begin gnulib module sys_select +## begin gnulib module sys_select-h BUILT_SOURCES += sys/select.h @@ -2611,17 +2680,17 @@ MOSTLYCLEANDIRS += sys EXTRA_DIST += sys_select.in.h -## end gnulib module sys_select +## end gnulib module sys_select-h -## begin gnulib module sys_select-tests +## begin gnulib module sys_select-h-tests -TESTS += test-sys_select -check_PROGRAMS += test-sys_select -EXTRA_DIST += test-sys_select.c signature.h +TESTS += test-sys_select-h +check_PROGRAMS += test-sys_select-h +EXTRA_DIST += test-sys_select-h.c signature.h -## end gnulib module sys_select-tests +## end gnulib module sys_select-h-tests -## begin gnulib module sys_socket +## begin gnulib module sys_socket-h BUILT_SOURCES += sys/socket.h libtests_a_SOURCES += sys_socket.c @@ -2669,17 +2738,17 @@ MOSTLYCLEANDIRS += sys EXTRA_DIST += sys_socket.in.h -## end gnulib module sys_socket +## end gnulib module sys_socket-h -## begin gnulib module sys_socket-tests +## begin gnulib module sys_socket-h-tests -TESTS += test-sys_socket -check_PROGRAMS += test-sys_socket -EXTRA_DIST += test-sys_socket.c +TESTS += test-sys_socket-h +check_PROGRAMS += test-sys_socket-h +EXTRA_DIST += test-sys_socket-h.c macros.h -## end gnulib module sys_socket-tests +## end gnulib module sys_socket-h-tests -## begin gnulib module sys_stat +## begin gnulib module sys_stat-h BUILT_SOURCES += sys/stat.h @@ -2750,17 +2819,17 @@ MOSTLYCLEANDIRS += sys EXTRA_DIST += sys_stat.in.h -## end gnulib module sys_stat +## end gnulib module sys_stat-h -## begin gnulib module sys_stat-tests +## begin gnulib module sys_stat-h-tests -TESTS += test-sys_stat -check_PROGRAMS += test-sys_stat -EXTRA_DIST += test-sys_stat.c +TESTS += test-sys_stat-h +check_PROGRAMS += test-sys_stat-h +EXTRA_DIST += test-sys_stat-h.c -## end gnulib module sys_stat-tests +## end gnulib module sys_stat-h-tests -## begin gnulib module sys_time +## begin gnulib module sys_time-h BUILT_SOURCES += sys/time.h @@ -2787,28 +2856,29 @@ sys/time.h: sys_time.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNU $(srcdir)/sys_time.in.h > $@-t $(AM_V_at)mv $@-t $@ MOSTLYCLEANFILES += sys/time.h sys/time.h-t +MOSTLYCLEANDIRS += sys EXTRA_DIST += sys_time.in.h -## end gnulib module sys_time +## end gnulib module sys_time-h -## begin gnulib module sys_time-tests +## begin gnulib module sys_time-h-tests -TESTS += test-sys_time -check_PROGRAMS += test-sys_time -EXTRA_DIST += test-sys_time.c +TESTS += test-sys_time-h +check_PROGRAMS += test-sys_time-h +EXTRA_DIST += test-sys_time-h.c -## end gnulib module sys_time-tests +## end gnulib module sys_time-h-tests -## begin gnulib module sys_types-tests +## begin gnulib module sys_types-h-tests -TESTS += test-sys_types -check_PROGRAMS += test-sys_types -EXTRA_DIST += test-sys_types.c +TESTS += test-sys_types-h +check_PROGRAMS += test-sys_types-h +EXTRA_DIST += test-sys_types-h.c -## end gnulib module sys_types-tests +## end gnulib module sys_types-h-tests -## begin gnulib module sys_uio +## begin gnulib module sys_uio-h BUILT_SOURCES += sys/uio.h @@ -2830,15 +2900,26 @@ MOSTLYCLEANDIRS += sys EXTRA_DIST += sys_uio.in.h -## end gnulib module sys_uio +## end gnulib module sys_uio-h + +## begin gnulib module sys_uio-h-tests -## begin gnulib module sys_uio-tests +TESTS += test-sys_uio-h +check_PROGRAMS += test-sys_uio-h +EXTRA_DIST += test-sys_uio-h.c -TESTS += test-sys_uio -check_PROGRAMS += test-sys_uio -EXTRA_DIST += test-sys_uio.c +## end gnulib module sys_uio-h-tests -## end gnulib module sys_uio-tests +## begin gnulib module test-framework-sh + +# The value of top_builddir, determined by Autoconf and stored in the Makefile, +# consists of n times '..', where n is the depth of the $(srcdir) under +# $(top_srcdir). Here we need one more '..', because the test framework +# (init.sh) arranges to run the tests in a subdirectory of depth 1 under the +# directory where the Makefile sits. +TESTS_ENVIRONMENT += top_builddir='../@top_builddir@' + +## end gnulib module test-framework-sh ## begin gnulib module test-framework-sh-tests @@ -2872,68 +2953,6 @@ endif ## end gnulib module time -## begin gnulib module time-h - -BUILT_SOURCES += time.h - -# We need the following in order to create <time.h> when the system -# doesn't have one that works with the given compiler. -time.h: time.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) - $(gl_V_at)$(SED_HEADER_STDOUT) \ - -e 's|@''GUARD_PREFIX''@|GL|g' \ - -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ - -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ - -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ - -e 's|@''NEXT_TIME_H''@|$(NEXT_TIME_H)|g' \ - -e 's/@''GNULIB_CTIME''@/$(GL_GNULIB_CTIME)/g' \ - -e 's/@''GNULIB_LOCALTIME''@/$(GL_GNULIB_LOCALTIME)/g' \ - -e 's/@''GNULIB_MKTIME''@/$(GL_GNULIB_MKTIME)/g' \ - -e 's/@''GNULIB_NANOSLEEP''@/$(GL_GNULIB_NANOSLEEP)/g' \ - -e 's/@''GNULIB_STRFTIME''@/$(GL_GNULIB_STRFTIME)/g' \ - -e 's/@''GNULIB_STRPTIME''@/$(GL_GNULIB_STRPTIME)/g' \ - -e 's/@''GNULIB_TIME''@/$(GL_GNULIB_TIME)/g' \ - -e 's/@''GNULIB_TIMEGM''@/$(GL_GNULIB_TIMEGM)/g' \ - -e 's/@''GNULIB_TIMESPEC_GET''@/$(GL_GNULIB_TIMESPEC_GET)/g' \ - -e 's/@''GNULIB_TIMESPEC_GETRES''@/$(GL_GNULIB_TIMESPEC_GETRES)/g' \ - -e 's/@''GNULIB_TIME_R''@/$(GL_GNULIB_TIME_R)/g' \ - -e 's/@''GNULIB_TIME_RZ''@/$(GL_GNULIB_TIME_RZ)/g' \ - -e 's/@''GNULIB_TZSET''@/$(GL_GNULIB_TZSET)/g' \ - -e 's/@''GNULIB_MDA_TZSET''@/$(GL_GNULIB_MDA_TZSET)/g' \ - -e 's|@''HAVE_DECL_LOCALTIME_R''@|$(HAVE_DECL_LOCALTIME_R)|g' \ - -e 's|@''HAVE_NANOSLEEP''@|$(HAVE_NANOSLEEP)|g' \ - -e 's|@''HAVE_STRPTIME''@|$(HAVE_STRPTIME)|g' \ - -e 's|@''HAVE_TIMEGM''@|$(HAVE_TIMEGM)|g' \ - -e 's|@''HAVE_TIMESPEC_GET''@|$(HAVE_TIMESPEC_GET)|g' \ - -e 's|@''HAVE_TIMESPEC_GETRES''@|$(HAVE_TIMESPEC_GETRES)|g' \ - -e 's|@''HAVE_TIMEZONE_T''@|$(HAVE_TIMEZONE_T)|g' \ - -e 's|@''REPLACE_CTIME''@|$(REPLACE_CTIME)|g' \ - -e 's|@''REPLACE_GMTIME''@|$(REPLACE_GMTIME)|g' \ - -e 's|@''REPLACE_LOCALTIME''@|$(REPLACE_LOCALTIME)|g' \ - -e 's|@''REPLACE_LOCALTIME_R''@|$(REPLACE_LOCALTIME_R)|g' \ - -e 's|@''REPLACE_MKTIME''@|$(REPLACE_MKTIME)|g' \ - -e 's|@''REPLACE_NANOSLEEP''@|$(REPLACE_NANOSLEEP)|g' \ - -e 's|@''REPLACE_STRFTIME''@|$(REPLACE_STRFTIME)|g' \ - -e 's|@''REPLACE_TIME''@|$(REPLACE_TIME)|g' \ - -e 's|@''REPLACE_TIMEGM''@|$(REPLACE_TIMEGM)|g' \ - -e 's|@''REPLACE_TIMESPEC_GET''@|$(REPLACE_TIMESPEC_GET)|g' \ - -e 's|@''REPLACE_TIMESPEC_GETRES''@|$(REPLACE_TIMESPEC_GETRES)|g' \ - -e 's|@''REPLACE_TZSET''@|$(REPLACE_TZSET)|g' \ - -e 's|@''PTHREAD_H_DEFINES_STRUCT_TIMESPEC''@|$(PTHREAD_H_DEFINES_STRUCT_TIMESPEC)|g' \ - -e 's|@''SYS_TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(SYS_TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \ - -e 's|@''TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \ - -e 's|@''UNISTD_H_DEFINES_STRUCT_TIMESPEC''@|$(UNISTD_H_DEFINES_STRUCT_TIMESPEC)|g' \ - -e 's|@''TIME_H_DEFINES_TIME_UTC''@|$(TIME_H_DEFINES_TIME_UTC)|g' \ - -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ - -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ - -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ - $(srcdir)/time.in.h > $@-t - $(AM_V_at)mv $@-t $@ -MOSTLYCLEANFILES += time.h time.h-t - -EXTRA_DIST += time.in.h - -## end gnulib module time-h - ## begin gnulib module time-h-tests TESTS += test-time-h @@ -2950,13 +2969,23 @@ EXTRA_DIST += test-time.c signature.h macros.h ## end gnulib module time-tests -## begin gnulib module uchar-tests +## begin gnulib module uchar-h-tests -TESTS += test-uchar -check_PROGRAMS += test-uchar -EXTRA_DIST += test-uchar.c +TESTS += test-uchar-h +check_PROGRAMS += test-uchar-h +EXTRA_DIST += test-uchar-h.c -## end gnulib module uchar-tests +## end gnulib module uchar-h-tests + +## begin gnulib module unicase/base-tests + +TESTS += test-unicase-h +check_PROGRAMS += test-unicase-h +test_unicase_h_SOURCES = unicase/test-unicase-h.c +test_unicase_h_LDADD = $(LDADD) $(LIBUNISTRING) +EXTRA_DIST += unicase/test-unicase-h.c + +## end gnulib module unicase/base-tests ## begin gnulib module unicase/cased-tests @@ -3380,6 +3409,16 @@ EXTRA_DIST += unicase/test-ulc-casecoll1.sh unicase/test-ulc-casecoll2.sh unicas ## end gnulib module unicase/ulc-casecoll-tests +## begin gnulib module uniconv/base-tests + +TESTS += test-uniconv-h +check_PROGRAMS += test-uniconv-h +test_uniconv_h_SOURCES = uniconv/test-uniconv-h.c +test_uniconv_h_LDADD = $(LDADD) $(LIBUNISTRING) +EXTRA_DIST += uniconv/test-uniconv-h.c + +## end gnulib module uniconv/base-tests + ## begin gnulib module uniconv/u16-conv-from-enc-tests TESTS += test-u16-conv-from-enc @@ -3512,6 +3551,16 @@ EXTRA_DIST += uniconv/test-u8-strconv-to-enc.c macros.h ## end gnulib module uniconv/u8-strconv-to-enc-tests +## begin gnulib module unictype/base-tests + +TESTS += test-unictype-h +check_PROGRAMS += test-unictype-h +test_unictype_h_SOURCES = unictype/test-unictype-h.c +test_unictype_h_LDADD = $(LDADD) $(LIBUNISTRING) +EXTRA_DIST += unictype/test-unictype-h.c + +## end gnulib module unictype/base-tests + ## begin gnulib module unictype/bidiclass-byname-tests TESTS += test-bidi_byname @@ -5004,6 +5053,16 @@ EXTRA_DIST += unictype/test-pr_math.c unictype/test-predicate-part1.h unictype/t ## end gnulib module unictype/property-math-tests +## begin gnulib module unictype/property-modifier-combining-mark-tests + +TESTS += test-pr_modifier_combining_mark +check_PROGRAMS += test-pr_modifier_combining_mark +test_pr_modifier_combining_mark_SOURCES = unictype/test-pr_modifier_combining_mark.c +test_pr_modifier_combining_mark_LDADD = $(LDADD) $(LIBUNISTRING) +EXTRA_DIST += unictype/test-pr_modifier_combining_mark.c unictype/test-predicate-part1.h unictype/test-predicate-part2.h macros.h + +## end gnulib module unictype/property-modifier-combining-mark-tests + ## begin gnulib module unictype/property-non-break-tests TESTS += test-pr_non_break @@ -5404,6 +5463,16 @@ EXTRA_DIST += unictype/test-sy_java_whitespace.c unictype/test-predicate-part1.h ## end gnulib module unictype/syntax-java-whitespace-tests +## begin gnulib module unigbrk/base-tests + +TESTS += test-unigbrk-h +check_PROGRAMS += test-unigbrk-h +test_unigbrk_h_SOURCES = unigbrk/test-unigbrk-h.c +test_unigbrk_h_LDADD = $(LDADD) $(LIBUNISTRING) +EXTRA_DIST += unigbrk/test-unigbrk-h.c + +## end gnulib module unigbrk/base-tests + ## begin gnulib module unigbrk/u16-grapheme-breaks-tests TESTS += test-u16-grapheme-breaks @@ -5535,6 +5604,16 @@ EXTRA_DIST += unigbrk/test-ulc-grapheme-breaks.sh unigbrk/test-ulc-grapheme-brea ## end gnulib module unigbrk/ulc-grapheme-breaks-tests +## begin gnulib module unilbrk/base-tests + +TESTS += test-unilbrk-h +check_PROGRAMS += test-unilbrk-h +test_unilbrk_h_SOURCES = unilbrk/test-unilbrk-h.c +test_unilbrk_h_LDADD = $(LDADD) $(LIBUNISTRING) +EXTRA_DIST += unilbrk/test-unilbrk-h.c + +## end gnulib module unilbrk/base-tests + ## begin gnulib module unilbrk/u16-possible-linebreaks-tests TESTS += test-u16-possible-linebreaks @@ -5557,11 +5636,13 @@ EXTRA_DIST += unilbrk/test-u16-width-linebreaks.c macros.h ## begin gnulib module unilbrk/u32-possible-linebreaks-tests -TESTS += test-u32-possible-linebreaks -check_PROGRAMS += test-u32-possible-linebreaks +TESTS += test-u32-possible-linebreaks unilbrk/test-uc-possible-linebreaks.sh +check_PROGRAMS += test-u32-possible-linebreaks test-uc-possible-linebreaks test_u32_possible_linebreaks_SOURCES = unilbrk/test-u32-possible-linebreaks.c test_u32_possible_linebreaks_LDADD = $(LDADD) $(LIBUNISTRING) -EXTRA_DIST += unilbrk/test-u32-possible-linebreaks.c macros.h +test_uc_possible_linebreaks_SOURCES = unilbrk/test-uc-possible-linebreaks.c +test_uc_possible_linebreaks_LDADD = $(LDADD) $(LIBUNISTRING) +EXTRA_DIST += unilbrk/test-u32-possible-linebreaks.c unilbrk/test-uc-possible-linebreaks.c unilbrk/test-uc-possible-linebreaks.sh unilbrk/LineBreakTest.txt macros.h ## end gnulib module unilbrk/u32-possible-linebreaks-tests @@ -5617,6 +5698,16 @@ EXTRA_DIST += unilbrk/test-ulc-width-linebreaks.c macros.h ## end gnulib module unilbrk/ulc-width-linebreaks-tests +## begin gnulib module unimetadata/base-tests + +TESTS += test-unimetadata-h +check_PROGRAMS += test-unimetadata-h +test_unimetadata_h_SOURCES = unimetadata/test-unimetadata-h.c +test_unimetadata_h_LDADD = $(LDADD) $(LIBUNISTRING) +EXTRA_DIST += unimetadata/test-unimetadata-h.c + +## end gnulib module unimetadata/base-tests + ## begin gnulib module unimetadata/u-version-tests TESTS += test-u-version @@ -5627,6 +5718,16 @@ EXTRA_DIST += unimetadata/test-u-version.c macros.h ## end gnulib module unimetadata/u-version-tests +## begin gnulib module uniname/base-tests + +TESTS += test-uniname-h +check_PROGRAMS += test-uniname-h +test_uniname_h_SOURCES = uniname/test-uniname-h.c +test_uniname_h_LDADD = $(LDADD) $(LIBUNISTRING) +EXTRA_DIST += uniname/test-uniname-h.c + +## end gnulib module uniname/base-tests + ## begin gnulib module uniname/uniname-tests # Unlike other libunistring modules, this test passes only when the @@ -5642,6 +5743,16 @@ EXTRA_DIST += uniname/test-uninames.sh uniname/test-uninames.c uniname/UnicodeDa ## end gnulib module uniname/uniname-tests +## begin gnulib module uninorm/base-tests + +TESTS += test-uninorm-h +check_PROGRAMS += test-uninorm-h +test_uninorm_h_SOURCES = uninorm/test-uninorm-h.c +test_uninorm_h_LDADD = $(LDADD) $(LIBUNISTRING) +EXTRA_DIST += uninorm/test-uninorm-h.c + +## end gnulib module uninorm/base-tests + ## begin gnulib module uninorm/canonical-decomposition-tests TESTS += test-canonical-decomposition @@ -5840,13 +5951,23 @@ EXTRA_DIST += uninorm/test-u8-normcoll.c uninorm/test-u8-normcmp.h macros.h ## end gnulib module uninorm/u8-normcoll-tests -## begin gnulib module unistd-tests +## begin gnulib module unistd-h-tests + +TESTS += test-unistd-h +check_PROGRAMS += test-unistd-h +EXTRA_DIST += test-unistd-h.c + +## end gnulib module unistd-h-tests -TESTS += test-unistd -check_PROGRAMS += test-unistd -EXTRA_DIST += test-unistd.c +## begin gnulib module unistdio/base-tests -## end gnulib module unistd-tests +TESTS += test-unistdio-h +check_PROGRAMS += test-unistdio-h +test_unistdio_h_SOURCES = unistdio/test-unistdio-h.c +test_unistdio_h_LDADD = $(LDADD) $(LIBUNISTRING) +EXTRA_DIST += unistdio/test-unistdio-h.c + +## end gnulib module unistdio/base-tests ## begin gnulib module unistdio/u16-asnprintf-tests @@ -6068,6 +6189,16 @@ EXTRA_DIST += unistdio/test-ulc-vsprintf1.c unistdio/test-ulc-printf1.h macros.h ## end gnulib module unistdio/ulc-vsprintf-tests +## begin gnulib module unistr/base-tests + +TESTS += test-unistr-h +check_PROGRAMS += test-unistr-h +test_unistr_h_SOURCES = unistr/test-unistr-h.c +test_unistr_h_LDADD = $(LDADD) $(LIBUNISTRING) +EXTRA_DIST += unistr/test-unistr-h.c + +## end gnulib module unistr/base-tests + ## begin gnulib module unistr/u16-check-tests TESTS += test-u16-check @@ -7148,6 +7279,16 @@ EXTRA_DIST += unistr/test-u8-uctomb.c macros.h ## end gnulib module unistr/u8-uctomb-tests +## begin gnulib module uniwbrk/base-tests + +TESTS += test-uniwbrk-h +check_PROGRAMS += test-uniwbrk-h +test_uniwbrk_h_SOURCES = uniwbrk/test-uniwbrk-h.c +test_uniwbrk_h_LDADD = $(LDADD) $(LIBUNISTRING) +EXTRA_DIST += uniwbrk/test-uniwbrk-h.c + +## end gnulib module uniwbrk/base-tests + ## begin gnulib module uniwbrk/u16-wordbreaks-tests TESTS += test-u16-wordbreaks @@ -7192,6 +7333,16 @@ EXTRA_DIST += uniwbrk/test-ulc-wordbreaks.sh uniwbrk/test-ulc-wordbreaks.c macro ## end gnulib module uniwbrk/ulc-wordbreaks-tests +## begin gnulib module uniwidth/base-tests + +TESTS += test-uniwidth-h +check_PROGRAMS += test-uniwidth-h +test_uniwidth_h_SOURCES = uniwidth/test-uniwidth-h.c +test_uniwidth_h_LDADD = $(LDADD) $(LIBUNISTRING) +EXTRA_DIST += uniwidth/test-uniwidth-h.c + +## end gnulib module uniwidth/base-tests + ## begin gnulib module uniwidth/u16-strwidth-tests TESTS += test-u16-strwidth @@ -7290,7 +7441,9 @@ endif ## begin gnulib module usleep-tests +if !OS_IS_CYGWIN TESTS += test-usleep +endif check_PROGRAMS += test-usleep EXTRA_DIST += test-usleep.c signature.h macros.h @@ -7320,13 +7473,13 @@ EXTRA_DIST += test-verify.c test-verify-try.c test-verify.sh ## end gnulib module verify-tests -## begin gnulib module wchar-tests +## begin gnulib module wchar-h-tests -TESTS += test-wchar -check_PROGRAMS += test-wchar -EXTRA_DIST += test-wchar.c +TESTS += test-wchar-h +check_PROGRAMS += test-wchar-h +EXTRA_DIST += test-wchar-h.c -## end gnulib module wchar-tests +## end gnulib module wchar-h-tests ## begin gnulib module wcrtomb @@ -7344,6 +7497,7 @@ TESTS += \ test-wcrtomb-w32-5.sh test-wcrtomb-w32-6.sh test-wcrtomb-w32-7.sh \ test-wcrtomb-w32-8.sh TESTS_ENVIRONMENT += \ + LOCALE_EN_UTF8='@LOCALE_EN_UTF8@' \ LOCALE_FR='@LOCALE_FR@' \ LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \ LOCALE_JA='@LOCALE_JA@' \ @@ -7389,6 +7543,32 @@ EXTRA_DIST += test-wcwidth.c signature.h macros.h ## end gnulib module wcwidth-tests +## begin gnulib module windows-cond + +if GL_COND_OBJ_WINDOWS_COND +libtests_a_SOURCES += windows-cond.c +endif + +EXTRA_DIST += windows-cond.h windows-initguard.h + +## end gnulib module windows-cond + +## begin gnulib module windows-mutex-tests + +TESTS += test-windows-mutex-type +check_PROGRAMS += test-windows-mutex-type +EXTRA_DIST += test-windows-mutex-type.c macros.h + +## end gnulib module windows-mutex-tests + +## begin gnulib module windows-recmutex-tests + +TESTS += test-windows-recmutex-type +check_PROGRAMS += test-windows-recmutex-type +EXTRA_DIST += test-windows-recmutex-type.c macros.h + +## end gnulib module windows-recmutex-tests + ## begin gnulib module windows-thread if GL_COND_OBJ_WINDOWS_THREAD @@ -7399,6 +7579,52 @@ EXTRA_DIST += windows-thread.h ## end gnulib module windows-thread +## begin gnulib module windows-timedmutex + +if GL_COND_OBJ_WINDOWS_TIMEDMUTEX +libtests_a_SOURCES += windows-timedmutex.c +endif + +EXTRA_DIST += windows-initguard.h windows-timedmutex.h + +## end gnulib module windows-timedmutex + +## begin gnulib module windows-timedmutex-tests + +TESTS += test-windows-timedmutex-type +check_PROGRAMS += test-windows-timedmutex-type +EXTRA_DIST += test-windows-timedmutex-type.c macros.h + +## end gnulib module windows-timedmutex-tests + +## begin gnulib module windows-timedrecmutex + +if GL_COND_OBJ_WINDOWS_TIMEDRECMUTEX +libtests_a_SOURCES += windows-timedrecmutex.c +endif + +EXTRA_DIST += windows-initguard.h windows-timedrecmutex.h + +## end gnulib module windows-timedrecmutex + +## begin gnulib module windows-timedrecmutex-tests + +TESTS += test-windows-timedrecmutex-type +check_PROGRAMS += test-windows-timedrecmutex-type +EXTRA_DIST += test-windows-timedrecmutex-type.c macros.h + +## end gnulib module windows-timedrecmutex-tests + +## begin gnulib module windows-timedrwlock + +if GL_COND_OBJ_WINDOWS_TIMEDRWLOCK +libtests_a_SOURCES += windows-timedrwlock.c +endif + +EXTRA_DIST += windows-initguard.h windows-timedrwlock.h + +## end gnulib module windows-timedrwlock + ## begin gnulib module windows-tls if GL_COND_OBJ_WINDOWS_TLS @@ -7434,6 +7660,22 @@ EXTRA_DIST += test-xalloc-die.c test-xalloc-die.sh ## end gnulib module xalloc-die-tests +## begin gnulib module xconcat-filename + +libtests_a_SOURCES += xconcat-filename.c + +EXTRA_DIST += concat-filename.h + +## end gnulib module xconcat-filename + +## begin gnulib module xgetcwd-lgpl + +libtests_a_SOURCES += xgetcwd.c + +EXTRA_DIST += xgetcwd.h + +## end gnulib module xgetcwd-lgpl + ## begin gnulib module yield libtests_a_SOURCES += glthread/yield.h |