summaryrefslogtreecommitdiff
path: root/tests/Makefile.gnulib
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Makefile.gnulib')
-rw-r--r--tests/Makefile.gnulib995
1 files changed, 437 insertions, 558 deletions
diff --git a/tests/Makefile.gnulib b/tests/Makefile.gnulib
index d336d841..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
@@ -44,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 \
@@ -111,7 +112,7 @@ 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
@@ -149,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
@@ -175,19 +176,6 @@ EXTRA_DIST += test-assert.c
## end gnulib module assert-h-tests
-## begin gnulib module assure
-
-
-EXTRA_DIST += assure.h
-
-## end gnulib module assure
-
-## begin gnulib module at-internal
-
-libtests_a_SOURCES += openat-priv.h openat-proc.c
-
-## end gnulib module at-internal
-
## begin gnulib module basename-lgpl
libtests_a_SOURCES += basename-lgpl.c
@@ -226,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
@@ -279,16 +276,15 @@ 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
@@ -553,23 +549,13 @@ EXTRA_libtests_a_SOURCES += calloc.c
## end gnulib module calloc-posix
-## begin gnulib module chdir-long
-
-if GL_COND_OBJ_CHDIR_LONG
-libtests_a_SOURCES += chdir-long.c
-endif
-
-EXTRA_DIST += chdir-long.h
-
-## end gnulib module chdir-long
+## begin gnulib module calloc-posix-tests
-## begin gnulib module chdir-tests
+TESTS += test-calloc-posix
+check_PROGRAMS += test-calloc-posix
+EXTRA_DIST += test-calloc-posix.c macros.h
-TESTS += test-chdir
-check_PROGRAMS += test-chdir
-EXTRA_DIST += test-chdir.c signature.h macros.h
-
-## end gnulib module chdir-tests
+## end gnulib module calloc-posix-tests
## begin gnulib module cloexec
@@ -603,16 +589,6 @@ EXTRA_DIST += test-close.c signature.h macros.h
## end gnulib module close-tests
-## begin gnulib module closedir
-
-if GL_COND_OBJ_CLOSEDIR
-libtests_a_SOURCES += closedir.c
-endif
-
-EXTRA_DIST += dirent-private.h
-
-## end gnulib module closedir
-
## begin gnulib module concat-filename
libtests_a_SOURCES += concat-filename.c
@@ -640,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 $@
@@ -663,106 +668,15 @@ MOSTLYCLEANFILES += ctype.h ctype.h-t
EXTRA_DIST += ctype.in.h
-## end gnulib module ctype
-
-## begin gnulib module ctype-tests
-
-TESTS += test-ctype
-check_PROGRAMS += test-ctype
-EXTRA_DIST += test-ctype.c
-
-## end gnulib module ctype-tests
-
-## begin gnulib module dirent
-
-BUILT_SOURCES += dirent.h
-
-# We need the following in order to create <dirent.h> when the system
-# doesn't have one that works with the given compiler.
-dirent.h: dirent.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|@''HAVE_DIRENT_H''@|$(HAVE_DIRENT_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_DIRENT_H''@|$(NEXT_DIRENT_H)|g' \
- -e 's/@''DIR_HAS_FD_MEMBER''@/$(DIR_HAS_FD_MEMBER)/g' \
- -e 's/@''GNULIB_OPENDIR''@/$(GL_GNULIB_OPENDIR)/g' \
- -e 's/@''GNULIB_READDIR''@/$(GL_GNULIB_READDIR)/g' \
- -e 's/@''GNULIB_REWINDDIR''@/$(GL_GNULIB_REWINDDIR)/g' \
- -e 's/@''GNULIB_CLOSEDIR''@/$(GL_GNULIB_CLOSEDIR)/g' \
- -e 's/@''GNULIB_DIRFD''@/$(GL_GNULIB_DIRFD)/g' \
- -e 's/@''GNULIB_FDOPENDIR''@/$(GL_GNULIB_FDOPENDIR)/g' \
- -e 's/@''GNULIB_SCANDIR''@/$(GL_GNULIB_SCANDIR)/g' \
- -e 's/@''GNULIB_ALPHASORT''@/$(GL_GNULIB_ALPHASORT)/g' \
- -e 's/@''HAVE_OPENDIR''@/$(HAVE_OPENDIR)/g' \
- -e 's/@''HAVE_READDIR''@/$(HAVE_READDIR)/g' \
- -e 's/@''HAVE_REWINDDIR''@/$(HAVE_REWINDDIR)/g' \
- -e 's/@''HAVE_CLOSEDIR''@/$(HAVE_CLOSEDIR)/g' \
- -e 's|@''HAVE_DECL_DIRFD''@|$(HAVE_DECL_DIRFD)|g' \
- -e 's|@''HAVE_DECL_FDOPENDIR''@|$(HAVE_DECL_FDOPENDIR)|g' \
- -e 's|@''HAVE_FDOPENDIR''@|$(HAVE_FDOPENDIR)|g' \
- -e 's|@''HAVE_SCANDIR''@|$(HAVE_SCANDIR)|g' \
- -e 's|@''HAVE_ALPHASORT''@|$(HAVE_ALPHASORT)|g' \
- -e 's|@''REPLACE_OPENDIR''@|$(REPLACE_OPENDIR)|g' \
- -e 's|@''REPLACE_READDIR''@|$(REPLACE_READDIR)|g' \
- -e 's|@''REPLACE_REWINDDIR''@|$(REPLACE_REWINDDIR)|g' \
- -e 's|@''REPLACE_CLOSEDIR''@|$(REPLACE_CLOSEDIR)|g' \
- -e 's|@''REPLACE_DIRFD''@|$(REPLACE_DIRFD)|g' \
- -e 's|@''REPLACE_FDOPENDIR''@|$(REPLACE_FDOPENDIR)|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)/dirent.in.h > $@-t
- $(AM_V_at)mv $@-t $@
-MOSTLYCLEANFILES += dirent.h dirent.h-t
-
-EXTRA_DIST += dirent.in.h
-
-## end gnulib module dirent
-
-## begin gnulib module dirent-tests
+## end gnulib module ctype-h
-TESTS += test-dirent
-check_PROGRAMS += test-dirent
-EXTRA_DIST += test-dirent.c
+## begin gnulib module ctype-h-tests
-## end gnulib module dirent-tests
-
-## begin gnulib module dirfd
-
-if GL_COND_OBJ_DIRFD
-libtests_a_SOURCES += dirfd.c
-endif
+TESTS += test-ctype-h
+check_PROGRAMS += test-ctype-h
+EXTRA_DIST += test-ctype-h.c
-EXTRA_DIST += dirent-private.h
-
-## end gnulib module dirfd
-
-## begin gnulib module dirfd-tests
-
-TESTS += test-dirfd
-check_PROGRAMS += test-dirfd
-EXTRA_DIST += test-dirfd.c macros.h
-
-## end gnulib module dirfd-tests
-
-## begin gnulib module dup
-
-if GL_COND_OBJ_DUP
-libtests_a_SOURCES += dup.c
-endif
-
-## end gnulib module dup
-
-## begin gnulib module dup-tests
-
-TESTS += test-dup
-check_PROGRAMS += test-dup
-EXTRA_DIST += test-dup.c signature.h macros.h
-
-## end gnulib module dup-tests
+## end gnulib module ctype-h-tests
## begin gnulib module dup2
@@ -789,13 +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
-EXTRA_DIST += test-errno.c
+TESTS += test-errno-h
+check_PROGRAMS += test-errno-h
+EXTRA_DIST += test-errno-h.c
-## end gnulib module errno-tests
+## end gnulib module errno-h-tests
## begin gnulib module error
@@ -846,23 +760,6 @@ EXTRA_DIST += exitfail.h
## end gnulib module exitfail
-## begin gnulib module fchdir
-
-if GL_COND_OBJ_FCHDIR
-libtests_a_SOURCES += fchdir.c
-endif
-
-## end gnulib module fchdir
-
-## begin gnulib module fchdir-tests
-
-TESTS += test-fchdir
-check_PROGRAMS += test-fchdir
-test_fchdir_LDADD = $(LDADD) $(LIBINTL)
-EXTRA_DIST += test-fchdir.c signature.h macros.h
-
-## end gnulib module fchdir-tests
-
## begin gnulib module fcntl
if GL_COND_OBJ_FCNTL
@@ -871,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
@@ -932,12 +792,6 @@ EXTRA_DIST += fd-hook.h
## end gnulib module fd-hook
-## begin gnulib module fd-safer-flag
-
-libtests_a_SOURCES += fd-safer-flag.c dup-safer-flag.c
-
-## end gnulib module fd-safer-flag
-
## begin gnulib module fdopen
if GL_COND_OBJ_FDOPEN
@@ -954,25 +808,6 @@ EXTRA_DIST += test-fdopen.c signature.h macros.h
## end gnulib module fdopen-tests
-## begin gnulib module fdopendir
-
-if GL_COND_OBJ_FDOPENDIR
-libtests_a_SOURCES += fdopendir.c
-endif
-
-EXTRA_DIST += dirent-private.h
-
-## end gnulib module fdopendir
-
-## begin gnulib module fdopendir-tests
-
-TESTS += test-fdopendir
-check_PROGRAMS += test-fdopendir
-test_fdopendir_LDADD = $(LDADD) @LIBINTL@
-EXTRA_DIST += test-fdopendir.c signature.h macros.h
-
-## end gnulib module fdopendir-tests
-
## begin gnulib module fgetc-tests
TESTS += test-fgetc
@@ -988,22 +823,6 @@ EXTRA_DIST += filename.h
## end gnulib module filename
-## begin gnulib module filenamecat-lgpl
-
-libtests_a_SOURCES += filenamecat-lgpl.c
-
-EXTRA_DIST += filenamecat.h
-
-## end gnulib module filenamecat-lgpl
-
-## 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
@@ -1075,27 +894,6 @@ EXTRA_DIST += test-fstat.c signature.h macros.h
## end gnulib module fstat-tests
-## begin gnulib module fstatat
-
-if GL_COND_OBJ_FSTATAT
-libtests_a_SOURCES += fstatat.c
-endif
-
-EXTRA_DIST += at-func.c
-
-EXTRA_libtests_a_SOURCES += at-func.c
-
-## end gnulib module fstatat
-
-## begin gnulib module fstatat-tests
-
-TESTS += test-fstatat
-check_PROGRAMS += test-fstatat
-test_fstatat_LDADD = $(LDADD) @LIBINTL@
-EXTRA_DIST += test-fstatat.c test-lstat.h test-stat.h signature.h macros.h
-
-## end gnulib module fstatat-tests
-
## begin gnulib module ftruncate
if GL_COND_OBJ_FTRUNCATE
@@ -1140,14 +938,6 @@ gl_V_at = $(AM_V_GEN)
## end gnulib module gen-header
-## begin gnulib module getcwd
-
-if GL_COND_OBJ_GETCWD
-libtests_a_SOURCES += getcwd.c
-endif
-
-## end gnulib module getcwd
-
## begin gnulib module getcwd-lgpl
if GL_COND_OBJ_GETCWD_LGPL
@@ -1165,15 +955,6 @@ EXTRA_DIST += test-getcwd-lgpl.c signature.h macros.h
## end gnulib module getcwd-lgpl-tests
-## begin gnulib module getcwd-tests
-
-TESTS += test-getcwd.sh
-check_PROGRAMS += test-getcwd
-test_getcwd_LDADD = $(LDADD) @LIBINTL@
-EXTRA_DIST += test-getcwd.sh test-getcwd.c qemu.h macros.h
-
-## end gnulib module getcwd-tests
-
## begin gnulib module getdtablesize
if GL_COND_OBJ_GETDTABLESIZE
@@ -1216,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
@@ -1328,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
@@ -1444,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
@@ -1498,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
@@ -1516,7 +1316,15 @@ 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
@@ -1563,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
@@ -1572,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
@@ -1616,7 +1432,16 @@ TESTS_ENVIRONMENT += \
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
@@ -1662,29 +1487,21 @@ EXTRA_DIST += test-memchr.c zerosize-ptr.h signature.h macros.h
## end gnulib module memchr-tests
-## begin gnulib module mempcpy
+## begin gnulib module mkfifo
-if GL_COND_OBJ_MEMPCPY
-libtests_a_SOURCES += mempcpy.c
+if GL_COND_OBJ_MKFIFO
+libtests_a_SOURCES += mkfifo.c
endif
-## end gnulib module mempcpy
-
-## begin gnulib module memrchr
+## end gnulib module mkfifo
-if GL_COND_OBJ_MEMRCHR
-libtests_a_SOURCES += memrchr.c
-endif
+## begin gnulib module mkfifo-tests
-## end gnulib module memrchr
+TESTS += test-mkfifo
+check_PROGRAMS += test-mkfifo
+EXTRA_DIST += test-mkfifo.h test-mkfifo.c signature.h macros.h
-## begin gnulib module memrchr-tests
-
-TESTS += test-memrchr
-check_PROGRAMS += test-memrchr
-EXTRA_DIST += test-memrchr.c zerosize-ptr.h signature.h macros.h
-
-## end gnulib module memrchr-tests
+## end gnulib module mkfifo-tests
## begin gnulib module msvc-inval
@@ -1729,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)
@@ -1756,15 +1573,15 @@ MOSTLYCLEANDIRS += netinet
EXTRA_DIST += netinet_in.in.h
-## end gnulib module netinet_in
+## end gnulib module netinet_in-h
-## begin gnulib module netinet_in-tests
+## begin gnulib module netinet_in-h-tests
-TESTS += test-netinet_in
-check_PROGRAMS += test-netinet_in
-EXTRA_DIST += test-netinet_in.c
+TESTS += test-netinet_in-h
+check_PROGRAMS += test-netinet_in-h
+EXTRA_DIST += test-netinet_in-h.c
-## end gnulib module netinet_in-tests
+## end gnulib module netinet_in-h-tests
## begin gnulib module once-tests
@@ -1794,46 +1611,6 @@ EXTRA_DIST += test-open.h test-open.c signature.h macros.h
## end gnulib module open-tests
-## begin gnulib module openat
-
-if GL_COND_OBJ_OPENAT
-libtests_a_SOURCES += openat.c
-endif
-
-## end gnulib module openat
-
-## begin gnulib module openat-die
-
-libtests_a_SOURCES += openat-die.c
-
-## end gnulib module openat-die
-
-## begin gnulib module openat-h
-
-
-EXTRA_DIST += openat.h
-
-## end gnulib module openat-h
-
-## begin gnulib module openat-tests
-
-TESTS += test-openat
-check_PROGRAMS += test-openat
-test_openat_LDADD = $(LDADD) @LIBINTL@
-EXTRA_DIST += test-openat.c test-open.h signature.h macros.h
-
-## end gnulib module openat-tests
-
-## begin gnulib module opendir
-
-if GL_COND_OBJ_OPENDIR
-libtests_a_SOURCES += opendir.c
-endif
-
-EXTRA_DIST += dirent-private.h
-
-## end gnulib module opendir
-
## begin gnulib module pathmax
@@ -1963,7 +1740,7 @@ EXTRA_DIST += test-pthread-mutex.c test-pthread-mutex-type.c atomic-int-posix.h
TESTS += test-pthread-once1 test-pthread-once2
check_PROGRAMS += test-pthread-once1 test-pthread-once2
-test_pthread_once1_LDADD = $(LDADD) @LIBPMULTITHREAD@
+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
@@ -2098,41 +1875,21 @@ EXTRA_DIST += test-random_r.c signature.h macros.h
## end gnulib module random_r-tests
-## begin gnulib module readdir
+## begin gnulib module realloc-posix
-if GL_COND_OBJ_READDIR
-libtests_a_SOURCES += readdir.c
+if GL_COND_OBJ_REALLOC_POSIX
+libtests_a_SOURCES += realloc.c
endif
-EXTRA_DIST += dirent-private.h
-
-## end gnulib module readdir
-
-## 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
-
+## 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
@@ -2150,37 +1907,19 @@ EXTRA_DIST += test-reallocarray.c signature.h macros.h
## end gnulib module reallocarray-tests
-## begin gnulib module rewinddir
-
-if GL_COND_OBJ_REWINDDIR
-libtests_a_SOURCES += rewinddir.c
-endif
-
-EXTRA_DIST += dirent-private.h
-
-## end gnulib module rewinddir
-
## begin gnulib module same-inode
libtests_a_SOURCES += same-inode.h same-inode.c
## end gnulib module same-inode
-## begin gnulib module save-cwd
-
-libtests_a_SOURCES += save-cwd.c
-
-EXTRA_DIST += save-cwd.h
+## begin gnulib module sched-h-tests
-## end gnulib module save-cwd
+TESTS += test-sched-h
+check_PROGRAMS += test-sched-h
+EXTRA_DIST += test-sched-h.c
-## 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
@@ -2261,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
@@ -2519,39 +2268,31 @@ EXTRA_DIST += test-stat-time.c macros.h nap.h
## end gnulib module stat-time-tests
-## begin gnulib module stdbool-tests
-
-TESTS += test-stdbool
-check_PROGRAMS += test-stdbool
-EXTRA_DIST += test-stdbool.c
+## begin gnulib module stdckdint-h-tests
-## end gnulib module stdbool-tests
+TESTS += test-stdckdint-h
+check_PROGRAMS += test-stdckdint-h
+EXTRA_DIST += macros.h test-intprops.c test-stdckdint-h.c
-## begin gnulib module stdckdint-tests
+## end gnulib module stdckdint-h-tests
-TESTS += test-stdckdint
-check_PROGRAMS += test-stdckdint
-EXTRA_DIST += macros.h test-intprops.c test-stdckdint.c
+## begin gnulib module stddef-h-tests
-## end gnulib module stdckdint-tests
+TESTS += test-stddef-h
+check_PROGRAMS += test-stddef-h
+EXTRA_DIST += test-stddef-h.c
-## begin gnulib module stddef-tests
+## end gnulib module stddef-h-tests
-TESTS += test-stddef
-check_PROGRAMS += test-stddef
-EXTRA_DIST += test-stddef.c
+## begin gnulib module stdint-h-tests
-## end gnulib module stddef-tests
+TESTS += test-stdint-h
+check_PROGRAMS += test-stdint-h
+EXTRA_DIST += test-stdint-h.c
-## begin gnulib module stdint-tests
+## end gnulib module stdint-h-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
@@ -2701,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
@@ -2710,23 +2454,23 @@ endif
EXTRA_DIST += stdio.in.h
-## end gnulib module stdio
+## end gnulib module stdio-h
-## begin gnulib module stdio-tests
+## begin gnulib module stdio-h-tests
-TESTS += test-stdio
-check_PROGRAMS += test-stdio
-EXTRA_DIST += test-stdio.c macros.h
+TESTS += test-stdio-h
+check_PROGRAMS += test-stdio-h
+EXTRA_DIST += test-stdio-h.c macros.h
-## end gnulib module stdio-tests
+## end gnulib module stdio-h-tests
-## begin gnulib module stdlib-tests
+## begin gnulib module stdlib-h-tests
-TESTS += test-stdlib
-check_PROGRAMS += test-stdlib
-EXTRA_DIST += test-stdlib.c test-sys_wait.h
+TESTS += test-stdlib-h
+check_PROGRAMS += test-stdlib-h
+EXTRA_DIST += test-stdlib-h.c test-sys_wait-h.h
-## end gnulib module stdlib-tests
+## end gnulib module stdlib-h-tests
## begin gnulib module stpcpy
@@ -2736,13 +2480,33 @@ endif
## end gnulib module stpcpy
-## begin gnulib module strdup-posix
+## begin gnulib module str_endswith
-if GL_COND_OBJ_STRDUP
-libtests_a_SOURCES += strdup.c
-endif
+libtests_a_SOURCES += str_endswith.c
+
+## end gnulib module str_endswith
+
+## begin gnulib module str_endswith-tests
+
+TESTS += test-str_endswith
+check_PROGRAMS += test-str_endswith
+EXTRA_DIST += test-str_endswith.c macros.h
+
+## end gnulib module str_endswith-tests
+
+## begin gnulib module str_startswith
+
+libtests_a_SOURCES += str_startswith.c
+
+## end gnulib module str_startswith
-## end gnulib module strdup-posix
+## 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
@@ -2808,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
@@ -2848,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
@@ -2876,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
@@ -2916,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
@@ -2974,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
@@ -3055,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
@@ -3096,25 +2860,25 @@ 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
@@ -3136,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
+
+TESTS += test-sys_uio-h
+check_PROGRAMS += test-sys_uio-h
+EXTRA_DIST += test-sys_uio-h.c
-## begin gnulib module sys_uio-tests
+## end gnulib module sys_uio-h-tests
-TESTS += test-sys_uio
-check_PROGRAMS += test-sys_uio
-EXTRA_DIST += test-sys_uio.c
+## begin gnulib module test-framework-sh
-## end gnulib module sys_uio-tests
+# 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
@@ -3194,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-h
+check_PROGRAMS += test-uchar-h
+EXTRA_DIST += test-uchar-h.c
+
+## end gnulib module uchar-h-tests
-TESTS += test-uchar
-check_PROGRAMS += test-uchar
-EXTRA_DIST += test-uchar.c
+## begin gnulib module unicase/base-tests
-## end gnulib module uchar-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
@@ -3624,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
@@ -3756,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
@@ -5658,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
@@ -5789,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
@@ -5873,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
@@ -5883,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
@@ -5898,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
@@ -6096,29 +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-safer
-
-libtests_a_SOURCES += dup-safer.c fd-safer.c pipe-safer.c
-
-EXTRA_DIST += unistd--.h unistd-safer.h
-
-## end gnulib module unistd-safer
+## begin gnulib module unistd-h-tests
-## begin gnulib module unistd-safer-tests
+TESTS += test-unistd-h
+check_PROGRAMS += test-unistd-h
+EXTRA_DIST += test-unistd-h.c
-TESTS += test-dup-safer
-check_PROGRAMS += test-dup-safer
-EXTRA_DIST += test-dup-safer.c macros.h
+## end gnulib module unistd-h-tests
-## end gnulib module unistd-safer-tests
+## begin gnulib module unistdio/base-tests
-## begin 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
-TESTS += test-unistd
-check_PROGRAMS += test-unistd
-EXTRA_DIST += test-unistd.c
-
-## end gnulib module unistd-tests
+## end gnulib module unistdio/base-tests
## begin gnulib module unistdio/u16-asnprintf-tests
@@ -6340,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
@@ -7420,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
@@ -7464,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
@@ -7594,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
@@ -7789,13 +7668,13 @@ EXTRA_DIST += concat-filename.h
## end gnulib module xconcat-filename
-## begin gnulib module xgetcwd
+## begin gnulib module xgetcwd-lgpl
libtests_a_SOURCES += xgetcwd.c
EXTRA_DIST += xgetcwd.h
-## end gnulib module xgetcwd
+## end gnulib module xgetcwd-lgpl
## begin gnulib module yield