[PATCH] extras: New test/build infrastructure

Joseph Myers joseph@codesourcery.com
Fri Nov 25 17:29:00 GMT 2016


On Fri, 25 Nov 2016, Florian Weimer wrote:

> I do not propose bulk migration at this point.  Some obscure use cases are not
> supported by the exported hooks.

I agree with the other comments about naming this something like 
libtest-support.a (and naming headers, directories accordingly).

I think there would be clear advantages to setting things up so that all 
existing tests can use the new code with no changes at all.  That is, make 
test-skeleton.c look more or less like your extras/test-skeleton.c, with 
additional code to handle any missing pieces (e.g.

int
test_function (int argc, char **argv)
{
  return TEST_FUNCTION;
}

to handle existing TEST_FUNCTION definitions without needing changes to 
individual tests).  If a slightly different interface is preferred, then 
individual tests could be converted to that afterwards.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Libc-alpha mailing list