[Piglit] Generate testlists at buildtime
Dylan Baker
baker.dylan.c at gmail.com
Mon Sep 9 16:46:11 PDT 2013
On Monday 09 September 2013 16:34:08 you wrote:
> This series changes the way testlists are generated. This allows us to
> generate a TestProfile object only once, at build time. This is
> accomplished by using python's pickle module, which stores a python
> object representation as a plain text file.
>
> The first 9 patches touch all of the testfiles the majority of these
> patches simply replace ``from <foo> import *'' with explicit imports.
> This is the recomended way of doing things from the python devs. r600 is
> removed, since it *is* quick-driver.tests, as is external-glparser.tests
> since it is deprecated.
>
> The last patch does all of the heavy lifting, moving all of the tests
> files to a new folder, and adding the CMake magic to generate the
> testslists
>
> There are a couple of reasons for doing this:
> 1) Since piglit-run is no longer responsible for producing
> the TestProfile objects, it is much simpler to change the format
> they are stored it. This is to our advantage as we try to create a
> python3 branch of piglit since ``execfile'' is deprecated in python3
>
> 2) This takes a few seconds off the start of piglit-run, since all of
> the heavy liftiner of running the python *tests files are removed,
> instead being done durring build time
This is also available at my github:
https://github.com/crymson/piglit.git generate-tests
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20130909/6fba7e49/attachment.pgp>
More information about the Piglit
mailing list