Make glibc's test suite work with PlashGlibc

Status: in progress

I tried in the past to make glibc's test suite work outside of the glibc build tree, but that turned out not to be viable. Following Story6, it should be a lot easier to make glibc's test suite work with PlashGlibc.

Tasks

Unmodified glibc test failures

../configure --prefix=/usr CFLAGS="-O2 -g0" CC="gcc -fno-stack-protector"
make -k check >make-log 2>&1
grep '\*\*\*' make-log

glibc 2.7 on Ubuntu gutsy, x86-64:

glibc 2.8 on Ubuntu feisty, i386:

glibc test framework

The glibc tests are run entirely through makefiles. Problems:

The rules for making the *.out targets are in Rules.

Some of the tests are slow because they contain sleeps and timeouts. Would using -j with make help? glibc's main Makefile contains .NOTPARALLEL (which overrides -j), but it appears to be possible to pass a -j flag to the subdir makefiles via PARALLELMFLAGS.

How to run a single test, such as csu/tst-empty:

bash -c 'make -C glibc-source/csu objdir=$(cd glibc-build && pwd) $(pwd)/glibc-build/csu/tst-empty.out'

Dan Kegel seems to have another way of running glibc's tests which involves building a shell script. See crosstest-howto.

The output here on an eglibc mailing list contains collated glibc test results but I don't know what produces it.

StoryTest3 (last edited 2008-06-30 18:23:17 by MarkSeaborn)