glibc/conform
Joseph Myers f3eef96390 Run conform/ tests using newly built libc
Although the conform/ header tests are built using the headers of the
glibc under test, the execution tests from conformtest (a few tests of
the values of macros evaluating to string constants) are linked and
run with system libc, not the newly built libc.

Apart from preventing testing in cross environments, this can be a
problem even for native testing.  Specifically, it can be useful to do
native testing when building with a cross compiler that links with a
libc that is not the system libc; for example, on x86_64, you can test
all three ABIs that way if the kernel support is present, even if the
host OS lacks 32-bit or x32 libraries or they are older than the
libraries in the sysroot used by the compiler used to build glibc.
This works for almost all tests, but not for these conformtest tests.

Arrange for conformtest to link and run test programs similarly to
other tests, with consequent refactoring of various variables in
Makeconfig to allow passing relevant parts of the link-time command
lines down to conformtest.  In general, the parts of the link command
involving $@ or $^ are separated out from the parts that should be
passed to conformtest (the variables passed to conformtest still
involve various variables whose names involve $(@F), but those
variables simply won't be defined for the conformtest makefile rules
and I think their presence there is harmless).

This is also most of the support that would be needed to allow running
those tests of string constants for cross testing when test-wrapper is
defined.  That will also need changes to where conformtest.py puts the
test executables, so it puts them in the main object directory
(expected to be shared with a test system in cross testing) rather
than /tmp (not expected to be shared) as at present.

Tested for x86_64.
2021-09-17 13:12:10 +00:00
..
data hurd: Add WSTOPPED/WCONTINUED/WEXITED/WNOWAIT support [BZ #23091] 2020-12-28 23:37:04 +01:00
check-header-lists.sh Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
conformtest.py Run conform/ tests using newly built libc 2021-09-17 13:12:10 +00:00
glibcconform.py Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
linknamespace.py Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
list-header-symbols.py Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Makefile Run conform/ tests using newly built libc 2021-09-17 13:12:10 +00:00