The glibc testsuite
The glibc testsuite can be executed by issuing the 'make check' command from the build directory. The testsuite halts whenever it encounters an error. One may continue by simply issuing the 'make check' command again, but it is recommended that testsuite failures be studied seriously and if necessary, reported in bugzilla.
A typical test case writes out a file with a .out extension in the build directory, that contains the output of the test. This file may be inspected in case of a test case failure to determine what the problem. If you report a test case failure in bugzilla, be sure to include the contents of the relevant .out file as well.
To repeat the test that failed, simply remove the .out file associated with that test, since the presence of the file in the build directory (with a more recent timestamp) implies that the test has already been run. Alternatively, one could simply use 'make -k check' to run the entire testsuite without halting for errors and then inspect the output and the relevant .out files for errors.
There's an additional test target: make xcheck. Running make xcheck includes all the tests of make check but adds some additional tests. These additional tests have requirements on the execution environment that are available for normal execution, e.g. network connectivity, but not necessarily for builds as part of build systems.
Developers should use "make xcheck" instead of "make check".
The glibc testsuite contains a number of tests to check that the ABI of glibc does not change. It compares symbol names and versions and static variable sizes in generated binaries with those maintained in *.abilist in the source. The test runs as part of 'make check'. You can also run these separately via "make check-abi".
Note: You might see a check failure due to a different size for _nl_default_dirname if you build for a different prefix. The size of _nl_default_dirname depends on th prefix and /usr/share/locale is considered the default and hence the value 0x12. If you see such a difference, you should check that the size corresponds to your prefix (length of prefix path + 1) to ensure that you haven't really broken abi with your change.
Details about make xcheck specific tests
The list below describes the requirements on the execution environment of the tests that are part of only make xcheck:
resolv/tst-leaks2 nss/bug-erange.c posix/bug-ga2.c
Requires enough network connectivity to do a DNS lookup on www.gnu.org
nptl/tst-setuid1.c and nptl/tst-setuid1-static.c
Requires user "nobody" in /etc/passwd or similar, and the ability as the current user to setuid to it.
nptl/tst-mutexpp1.c nptl/tst-mutexpp6.c nptl/tst-mutexpp10.c
Requires enough privileges to set mutex priority ceiling via pthread_mutexattr_setprioceiling
Requires at least one non-loopback IP address configured on the system.
Requires loopback to be up and operational with IP address 127.0.0.1
Requires an existing gconv-modules.cache to be installed under $(inst_gconvdir)