Writing tests using Python
Florian Weimer
fweimer@redhat.com
Mon Jun 26 13:13:00 GMT 2017
On 06/26/2017 01:38 PM, Joseph Myers wrote:
> We currently have pretty-printers tests and benchmarks using Python.
> Would people consider it reasonable to have other tests using Python
> (appropriately conditioned in the Makefiles, of course)? (Specifically,
> I'm thinking of writing more thorough tgmath.h tests using a Python script
> to generate the C tests, with the output not being checked in, with a view
> to then adding _Float128 support to the generator when adding it to
> tgmath.h. Let's assume version requirements are no stricter than those
> documented for the pretty-printers tests, so the code works with both
> Python 2 and 3.)
Using Python for generating tests seems fine to me.
I would be wary of using Python extension modules to write tests
directly in Python, though, mainly because of the overhead of porting to
other Python versions, and the knowledge for writing C extension modules
is a bit off the beaten path for us at least.
Thanks,
Florian
More information about the Libc-alpha
mailing list