Re: [Piglit] [PATCH 10/10] Generate .tests files at build time

2013-09-11 Thread Dylan Baker
On Wednesday 11 September 2013 11:06:40 you wrote: > On 11 September 2013 10:41, Paul Berry wrote: > > From: Dylan Baker > > > > This patch allows testlists to be generated at build time by cmake, > > these generated testlist are python TestProfile objects that have

Re: [Piglit] Generate testlists at buildtime

2013-09-11 Thread Dylan Baker
On Wednesday 11 September 2013 10:36:41 Paul Berry wrote: > On 9 September 2013 16:46, Dylan Baker wrote: > > 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 obje

[Piglit] [PATCH 2/2] satus: Make use of the status objects

2013-09-13 Thread Dylan Baker
This adds code in framework/summary.py and framework/core.py to make use of the status classes in status.py. This makes comparisons between statuses much simpler and cleaner Signed-off-by: Dylan Baker --- framework/core.py| 18 ++- framework/summary.py | 85

[Piglit] [PATCH 1/2] status.py: Adds a new status class and subclasses

2013-09-13 Thread Dylan Baker
implementing the __int__ method. This will allow us to remove a number of special functions for sorting representations of statuses. Signed-off-by: Dylan Baker --- framework/status.py | 99 + 1 file changed, 99 insertions(+) create mode 100644

[Piglit] [PATCH 1/2] threadpool.py: Completely rewrite threadpool.py

2013-09-16 Thread Dylan Baker
piglit's use case it is, however, it does not implement the full API supported by the previous implementation. Signed-off-by: Dylan Baker --- framework/core.py | 3 +- framework/threadpool.py | 455 ++-- framework/threads.py| 8 +- 3

[Piglit] [PATCH 2/2] Run all tests out of a ThreadPool

2013-09-16 Thread Dylan Baker
cleans up the Test derived classes. since they don't have to have a method to add themselves to the ThreadPool, instead the ThreadPool has a method for adding tests to itself. Signed-off-by: Dylan Baker --- framework/core.py| 36 framework/threads.py

Re: [Piglit] Generate testlists at buildtime

2013-09-16 Thread Dylan Baker
On Monday 16 September 2013 09:25:25 Eric Anholt wrote: > Dylan Baker writes: > > 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 mod

Re: [Piglit] [PATCH 1/3] piglit-run: add back -c0

2013-09-17 Thread Dylan Baker
On Monday 16 September 2013 20:08:33 Marek Olšák wrote: > --- > piglit-run.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/piglit-run.py b/piglit-run.py > index e8e11b7..7945b21 100755 > --- a/piglit-run.py > +++ b/piglit-run.py > @@ -62,7 +62,7 @@ def main(): >

Re: [Piglit] [PATCH 2/3] Merge quick-driver.tests to quick.tests

2013-09-17 Thread Dylan Baker
On Monday 16 September 2013 20:08:34 Marek Olšák wrote: > --- > tests/quick-driver.tests | 14 -- > tests/quick.tests| 6 ++ > 2 files changed, 6 insertions(+), 14 deletions(-) > delete mode 100644 tests/quick-driver.tests > > diff --git a/tests/quick-driver.tests b/test

Re: [Piglit] [PATCH 3/3] Optionally capture dmesg changes for each test and report them in a summary

2013-09-17 Thread Dylan Baker
On Monday 16 September 2013 20:08:35 Marek Olšák wrote: > The Radeon driver writes GPU page faults to dmesg and we need to know which > test caused them. > > If there is any change in dmesg during a test run, the test result is > changed as follows: > * pass -> dmesg-warn > * warn -> dmesg-warn >

Re: [Piglit] [PATCH 2/2] framework: Disable mesa's GL API error logging by default.

2013-09-17 Thread Dylan Baker
ors regularly as part of testing, > +# and for exhaustive error-generation tests (particularly some in > +# khronos's conformance suite), it can end up ooming your system > +# trying to parse the strings. > +if 'MESA_DEBUG' not in os.environ: > +os.environ[&

Re: [Piglit] [PATCH 1/2] framework: When a test fails, try it again to see if it's consistent.

2013-09-17 Thread Dylan Baker
(self, o): > self.passnr += o.passnr > self.warnnr += o.warnnr > +self.unstablenr += o.unstablenr > self.failnr += o.failnr > self.skipnr += o.skipnr > self.crashnr += o.crashnr > @@ -89,11 +91,12 @@ results is an array of TestResult

Re: [Piglit] [PATCH 2/3] Merge quick-driver.tests to quick.tests

2013-09-17 Thread Dylan Baker
On Tuesday 17 September 2013 23:57:02 Marek Olšák wrote: > Yes. I added quick-driver.tests. I was making changes to it. Now I'm > removing it. > > The difference between the two is 5 tests, which is pretty much nothing. > > Marek > > On Tue, Sep 17, 2013 at 5:46 PM

Re: [Piglit] [PATCH 3/3] Optionally capture dmesg changes for each test and report them in a summary

2013-09-17 Thread Dylan Baker
On Wednesday 18 September 2013 00:48:45 Marek Olšák wrote: > On Tue, Sep 17, 2013 at 6:43 PM, Dylan Baker wrote: > > On Monday 16 September 2013 20:08:35 Marek Olšák wrote: > >> The Radeon driver writes GPU page faults to dmesg and we need to know > >> which > >

[Piglit] [PATCH] Optionally capture dmesg changes for each test and report them in a summary

2013-09-18 Thread Dylan Baker
efore and after the test and the difference between the two is stored in the test summary. The piglit-run.py parameter which enables this behavior is --dmesg. It's also recommended to use -c0. v2: - Use a simplified class to read dmesg Signed-off-by: Dylan Baker --- framework/core.py

Re: [Piglit] [PATCH] Optionally capture dmesg changes for each test and report them in a summary

2013-09-18 Thread Dylan Baker
ecommended to use -c0. > > v2: - Use a simplified class to read dmesg > > Signed-off-by: Dylan Baker > --- > framework/core.py | 5 +++-- > framework/dmesg.py | 48 > ++ framework/exectest.py | >

Re: [Piglit] [PATCH 4/8] framework: Remove micro-optimization with no impact.

2013-09-18 Thread Dylan Baker
On Wednesday 18 September 2013 15:00:29 Eric Anholt wrote: > We can compute these lists anyway. Note how we don't really do much > work to generate > --- > framework/summary.py | 59 > 1 file changed, 23 > insertions(+), 36 deletions(-) > > dif

Re: [Piglit] [PATCH 2/8] framework: Make the set of tests per page always be a set.

2013-09-18 Thread Dylan Baker
and status[i + 1] == 1: > -self.tests['fixes'].append(test) > - > -# Remove duplicate entries from the status lists > -# If there are 4+ results can result in mutiple passes or > regressions -# and changes in other words:

Re: [Piglit] [PATCH 3/8] framework: Avoid magic number usage in making skip and problems lists.

2013-09-18 Thread Dylan Baker
On Wednesday 18 September 2013 15:00:28 Eric Anholt wrote: > I broke these two pages when doing the unstable-result change, because > I didn't expect absolute numbers to be used on this thing that looked > like it was for relative severity comparisons. > --- > framework/summary.py | 18 +--

Re: [Piglit] [PATCH 5/8] framework: Refactor a bit, reducing required cleverness.

2013-09-18 Thread Dylan Baker
On Wednesday 18 September 2013 15:00:30 Eric Anholt wrote: > Now that the pages-list "optimization" is gone, we can move the > changes list computation into an obvious place, avoiding any work in > the single-results-file case. > --- > framework/summary.py | 19 ++- > 1 file change

Re: [Piglit] [PATCH 4/8] framework: Remove micro-optimization with no impact.

2013-09-19 Thread Dylan Baker
On Wednesday 18 September 2013 15:48:30 Eric Anholt wrote: > Dylan Baker writes: > > On Wednesday 18 September 2013 15:00:29 Eric Anholt wrote: > >> We can compute these lists anyway. Note how we don't really do much > >> work to generate > >>

Re: [Piglit] [PATCH 2/2] satus: Make use of the status objects

2013-09-19 Thread Dylan Baker
On Wednesday 18 September 2013 15:54:45 Eric Anholt wrote: > Dylan Baker writes: > > This adds code in framework/summary.py and framework/core.py to make use > > of the status classes in status.py. This makes comparisons between > > statuses much simpler and cleaner > >

Re: [Piglit] [PATCH 1/3] piglit-run: add back -c0

2013-09-20 Thread Dylan Baker
On Thursday 19 September 2013 16:02:49 Chad Versace wrote: > On 09/17/2013 08:43 AM, Dylan Baker wrote: > > On Monday 16 September 2013 20:08:33 Marek Olšák wrote: > >> --- > >> > >> piglit-run.py | 2 +- > >> 1 file changed, 1 insertion(+), 1 dele

Re: [Piglit] A couple of python bugs found in logic.

2013-09-20 Thread Dylan Baker
On Thursday 19 September 2013 20:12:34 Ken Phillis Jr wrote: > I probably should be a little bit more price about issue #3... I do expect > the times to be different, but there is a problem of seeing less than one > tenth of the total time when I only have four processors. > > > Good example: > ~

Re: [Piglit] [PATCH] Optionally capture dmesg changes for each test and report them in a summary

2013-09-20 Thread Dylan Baker
why I > had to find and save the timestamp string, and find its position again > in a new dmesg log. > > Marek > > On Wed, Sep 18, 2013 at 11:17 PM, Dylan Baker wrote: > > On Wednesday 18 September 2013 14:16:11 you wrote: > >> From: Marek Olšák > >>

Re: [Piglit] [PATCH 3/3] Optionally capture dmesg changes for each test and report them in a summary

2013-09-20 Thread Dylan Baker
On Wednesday 18 September 2013 01:21:59 Marek Olšák wrote: > On Wed, Sep 18, 2013 at 1:04 AM, Dylan Baker wrote: > > On Wednesday 18 September 2013 00:48:45 Marek Olšák wrote: > >> On Tue, Sep 17, 2013 at 6:43 PM, Dylan Baker > > > > wrote: > >> >

Re: [Piglit] [PATCH 3/3] Optionally capture dmesg changes for each test and report them in a summary

2013-09-23 Thread Dylan Baker
On Saturday, September 21, 2013 02:31:06 AM Marek Olšák wrote: > The Radeon driver writes GPU page faults to dmesg and we need to know which > tests caused them. > > If there is any change in dmesg during a test run, the test result is > changed as follows: > * pass -> dmesg-warn > * warn -> dmesg

Re: [Piglit] [PATCH 3/3] Optionally capture dmesg changes for each test and report them in a summary

2013-09-23 Thread Dylan Baker
On Monday, September 23, 2013 10:28:17 PM Marek Olšák wrote: > Is there another, more readable way to emulate the ?: operator from C? > I don't like adding unnecessary lines of code. > > Marek > > On Mon, Sep 23, 2013 at 10:23 PM, Dylan Baker wrote: > > On Saturday

Re: [Piglit] [PATCH] piglit-run: add -1 as an alternative to --no-concurrent

2013-09-23 Thread Dylan Baker
ser.add_argument("--no-concurrency", > +parser.add_argument("-1", "--no-concurrency", > action = "store_false", > dest= "concurrency", > help= "Disab

[Piglit] Status Object V2

2013-09-27 Thread Dylan Baker
This series is split into 4 seperate parts Patches 1-2: These implement some conformance tests for the way summary detects regressions, fixes, changes, and problems. Patch 3: Fixes the current implementation of piglit to conform to these tests. Patches 4-5: These are the patches that were origin

[Piglit] [PATCH 5/7] status: Make use of the status objects

2013-09-27 Thread Dylan Baker
g-warn and dmesg-fail Signed-off-by: Dylan Baker --- framework/core.py| 29 ++-- framework/summary.py | 97 ++-- 2 files changed, 53 insertions(+), 73 deletions(-) diff --git a/framework/core.py b/framework/core.py index 09aebd4..9651

[Piglit] [PATCH 3/7] framework/summary.py: Fix problems with status handling

2013-09-27 Thread Dylan Baker
Fixes status hanlding (fixes, regressions, changes) to be compliant with the status handling in framework_tests/summary.py. Mainly this addresses notrun -> * and * -> notrun, as well as a few corner cases. Signed-off-by: Dylan Baker --- framework/summary.p

[Piglit] [PATCH 1/7] framework_tests/summary.py: Tests Summary.py's assignment of statues

2013-09-27 Thread Dylan Baker
code duplication. This already reveals ~20 problems in the current implementation Signed-off-by: Dylan Baker --- framework_tests/__init__.py | 0 framework_tests/helpers.py | 105 + framework_tests/summary.py | 282 3 files changed

[Piglit] [PATCH 2/7] piglit-framework-tests.py: Adds a utility for running piglit unit tests

2013-09-27 Thread Dylan Baker
This program gives the option to run the tests. These tests are meant to test internal features of the piglit framework. Currently there are only tests for the summary module's handling of regressions, fixes, changes, and problems. Signed-off-by: Dylan Baker --- piglit-framework-tests.py

[Piglit] [PATCH 4/7] status.py: Adds a new status class and subclasses

2013-09-27 Thread Dylan Baker
. - Add a class for the "Not Run" status - Adds classes for dmesg-warn and dmesg-fail - Change statuses to match the standard set in the framework test Signed-off-by: Dylan Baker --- framework/status.py | 118 1 file ch

[Piglit] [PATCH 6/7] summary: Remove optimization with no impact

2013-09-27 Thread Dylan Baker
Generating these lists is rather trivial, so just generate them all the time. Signed-off-by: Dylan Baker --- framework/summary.py | 61 +--- 1 file changed, 25 insertions(+), 36 deletions(-) diff --git a/framework/summary.py b/framework

[Piglit] [PATCH 7/7] summary: Fold __generate_lists into __init__

2013-09-27 Thread Dylan Baker
Since there is nothign special about __generate_lists anymore (it just does the same thing all the time), just fold it back into the constructor and save on having to call it. Signed-off-by: Dylan Baker --- framework/summary.py | 26 -- 1 file changed, 4 insertions

Re: [Piglit] [PATCH 7/7] summary: Fold __generate_lists into __init__

2013-09-27 Thread Dylan Baker
On Friday, September 27, 2013 05:29:57 PM Ken Phillis Jr wrote: > This patch looks good. The only suggest I have is to double check spelling > on the commit logs and comments... For example, The word "nothign" should > be nothing. > > On Fri, Sep 27, 2013 at 4:39 PM, Dyl

Re: [Piglit] [PATCH 1/2] threadpool.py: Completely rewrite threadpool.py

2013-09-30 Thread Dylan Baker
On Monday, September 16, 2013 09:09:34 AM Dylan Baker wrote: > This patch completely rewrites the threadpool module. This new > implementation is less complicated than the previous version. It also is > not an external project pulled in, but an original implementation. > > T

Re: [Piglit] [PATCH 5/8] cmake: Increase minimum version from 2.6 to 2.8.

2013-10-01 Thread Dylan Baker
On Monday, September 30, 2013 10:11:05 PM Kenney Phillis wrote: > Increase the Minimum version of CMake that is required from > version 2.6 to version 2.8. This is because the minimum requirement > to compile waffle is version 2.8 > --- > CMakeLists.txt |2 +- > 1 file changed, 1 insertion(+),

Re: [Piglit] [PATCH 5/8] cmake: Increase minimum version from 2.6 to 2.8.

2013-10-01 Thread Dylan Baker
464?siteid=9 > kitware - news: cmake 2.8.0 released ( November 4,2009) > http://www.kitware.com/news/home/browse/252?siteid=9 > kitware - news: cmake 2.6.4 released ( May 5, 2009 ) > http://www.kitware.com/news/home/browse/229?siteid=9 > > On Oct 1, 2013 4:37 PM, "

Re: [Piglit] [PATCH 5/8] cmake: Increase minimum version from 2.6 to 2.8.

2013-10-02 Thread Dylan Baker
On Tuesday, October 01, 2013 10:42:39 PM Ken Phillis Jr wrote: > Since i got a few emails over this particular change... I will go ahead and > explain the primary reason for this change. It's a minor change when you > consider that most current linux distributions have included some version > of cm

Re: [Piglit] [PATCH 1/7] framework_tests/summary.py: Tests Summary.py's assignment of statues

2013-10-14 Thread Dylan Baker
On Sunday, October 13, 2013 10:51:50 PM Kenneth Graunke wrote: > On 09/27/2013 02:39 PM, Dylan Baker wrote: > > This code tests the way Summary.py assigns statuses to tests. > > Specifically it tests regressions, fixes, changes, and problems, > > assuring that only the co

Re: [Piglit] [PATCH 3/7] framework/summary.py: Fix problems with status handling

2013-10-14 Thread Dylan Baker
On Sunday, October 13, 2013 11:08:27 PM Kenneth Graunke wrote: > On 09/27/2013 02:39 PM, Dylan Baker wrote: > > Fixes status hanlding (fixes, regressions, changes) to be compliant with > > the status handling in framework_tests/summary.py. Mainly this addresses > > notrun -&g

Re: [Piglit] [PATCH 4/7] status.py: Adds a new status class and subclasses

2013-10-14 Thread Dylan Baker
On Sunday, October 13, 2013 11:13:48 PM Kenneth Graunke wrote: > On 09/27/2013 02:39 PM, Dylan Baker wrote: > > These status classes are intended to replace the string statuses > > currently used by piglit summary. > > > > They give a couple of very nice advantages,

Re: [Piglit] [PATCH 5/7] status: Make use of the status objects

2013-10-14 Thread Dylan Baker
On Sunday, October 13, 2013 11:29:02 PM Kenneth Graunke wrote: > On 09/27/2013 02:39 PM, Dylan Baker wrote: > > This adds code in framework/summary.py and framework/core.py to make use > > of the status classes in status.py. This makes comparisons between > > statuses muc

[Piglit] [PATCH] gleantest.py: Return skip when appropriate

2013-10-14 Thread Dylan Baker
Currently glean can only return dmesg-warn, dmesg-fail, fail, and pass. Which means that skip will never be returned even if should be. This patch adds a catch to find a skip status and return it. Signed-off-by: Dylan Baker --- framework/gleantest.py | 4 +++- 1 file changed, 3 insertions(+), 1

[Piglit] [PATCH 1/9] summary.py: Replace ``import from'' syntax with import

2013-10-15 Thread Dylan Baker
Don't clutter the namespace needlessly, just import the full module and use it. Signed-off-by: Dylan Baker --- framework/summary.py | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/framework/summary.py b/framework/summary.py index 2fecc0c..c6b903b 100644

[Piglit] [PATCH 2/9] summary.py: Replace try/except with a list comprehension

2013-10-15 Thread Dylan Baker
This is equivalent but simpler. Signed-off-by: Dylan Baker --- framework/summary.py | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/framework/summary.py b/framework/summary.py index c6b903b..62cd91a 100644 --- a/framework/summary.py +++ b/framework/summary.py

[Piglit] [PATCH 3/9] summary.py: Replace Result class with load_result function

2013-10-15 Thread Dylan Baker
This is groundwork for getting us down to one loader for results. Signed-off-by: Dylan Baker --- framework/summary.py | 30 ++ 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/framework/summary.py b/framework/summary.py index 62cd91a..1a15fa7 100644

[Piglit] [PATCH 4/9] TestrunResult: Merge parseFile into the constructor

2013-10-15 Thread Dylan Baker
This adds an optional argument to the constructor for a results file. This fixes a race condition where a TestrunResult is created, some entries are added, and then parseFile is called, which overwrites the contents of the TestrunResult. Signed-off-by: Dylan Baker --- framework/core.py| 45

[Piglit] [PATCH 5/9] Combine summary.load_results into core.loadTestResults

2013-10-15 Thread Dylan Baker
This reduces code duplication, since these two functions were very similar to begin with. Signed-off-by: Dylan Baker --- framework/core.py| 28 +--- framework/summary.py | 18 +- 2 files changed, 18 insertions(+), 28 deletions(-) diff --git a

[Piglit] [PATCH 6/9] rename core.loadTestResults to core.load_results

2013-10-15 Thread Dylan Baker
This is in keeping with PEP8 sytle guidelines for function names: "Function names should be lowercase, with words separated by underscores as necessary to improve readability." Signed-off-by: Dylan Baker --- framework/core.py | 2 +- framework/summary.py| 2 +- piglit-merge-

[Piglit] [PATCH 7/9] summary.py: minor style changes

2013-10-15 Thread Dylan Baker
This changes some camelCase variables to lowercase underscore separated variables per PEP8, and a few other minor style nits. There are no functional changes. Signed-off-by: Dylan Baker --- framework/summary.py | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a

[Piglit] [PATCH 8/9] summary.py: rename generate* methods

2013-10-15 Thread Dylan Baker
Fix style issues with camel case method names. Signed-off-by: Dylan Baker --- framework/summary.py | 4 ++-- piglit-summary-html.py | 2 +- piglit-summary.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/framework/summary.py b/framework/summary.py index 67184b2

[Piglit] [PATCH 9/9] summary.py: Use with open(...) as syntax

2013-10-15 Thread Dylan Baker
This is the commonly excepted "right way" in python. Signed-off-by: Dylan Baker --- framework/summary.py | 77 1 file changed, 36 insertions(+), 41 deletions(-) diff --git a/framework/summary.py b/framework/summary.py index 3ab71f

[Piglit] [PATCH 1/2] status.py: convert status object attributes from instance to class

2013-10-15 Thread Dylan Baker
This converts Status objects attributes to class attributes. This should reduce lookup time and memory consumption of these classes. Signed-off-by: Dylan Baker --- framework/status.py | 51 +++ 1 file changed, 35 insertions(+), 16 deletions

[Piglit] [PATCH 2/2] summary.py: Replace buildDictionary function with a much simpler method

2013-10-15 Thread Dylan Baker
This patch produces the exact same output as the previous approach, just in a much simpler way. It also moves some more of the status information out of if branches and into the Status class in the status module. Signed-off-by: Dylan Baker --- framework/status.py | 6 ++- framework

[Piglit] [PATCH] piglit-summary-html.py: Fix the -e/--exclude-details option

2013-10-15 Thread Dylan Baker
This was broken by a previous commit 06b185187, this patch corrects that oversight allowing exclude to continue working. Signed-off-by: Dylan Baker --- piglit-summary-html.py | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/piglit-summary-html.py b/piglit

Re: [Piglit] [PATCH] piglit-summary-html.py: Fix the -e/--exclude-details option

2013-10-15 Thread Dylan Baker
On Tuesday, October 15, 2013 06:16:53 PM Kenneth Graunke wrote: > On 10/15/2013 03:58 PM, Dylan Baker wrote: > > This was broken by a previous commit 06b185187, this patch corrects > > that oversight allowing exclude to continue working. > > > >

[Piglit] [PATCH] Use simplejson if available

2013-10-15 Thread Dylan Baker
if it fails. In the summary path on a single run of quick.tests, simplejson is about 3-4 seconds faster than json, ~7 seconds vs ~11 seconds. Signed-off-by: Dylan Baker --- framework/core.py | 5 - framework/shader_test.py | 5 - framework/tests/summary.py | 5 - glapi

Re: [Piglit] [PATCH 8/9] summary.py: rename generate* methods

2013-10-17 Thread Dylan Baker
On Thursday, October 17, 2013 05:17:03 PM Chris Forbes wrote: > +def generate_HTML(self, destination, exclude): > > Would probably go with 'generate_html' > > On Tue, Oct 15, 2013 at 11:13 PM, Dylan Baker wrote: > > Fix style issues with camel case metho

Re: [Piglit] [PATCH 9/9] summary.py: Use with open(...) as syntax

2013-10-17 Thread Dylan Baker
On Thursday, October 17, 2013 04:58:34 PM Chris Forbes wrote: > Much better :) > > Reviewed-by: Chris Forbes > > On Tue, Oct 15, 2013 at 11:13 PM, Dylan Baker wrote: > > This is the commonly excepted "right way" in python. > > > > Signed-off-b

[Piglit] [PATCH 1/7] templates/index.mako: Convert to using functions

2013-10-17 Thread Dylan Baker
This is groundwork for moving more of the logic into mako and killing the HTMLIndex class in summary. --- templates/index.mako | 77 1 file changed, 47 insertions(+), 30 deletions(-) diff --git a/templates/index.mako b/templates/index.mako inde

[Piglit] [PATCH 2/7] summary.py: use mako's TemplateLookup

2013-10-17 Thread Dylan Baker
This buys two things, a little less code duplication, and allows us to load one mako template into another one. Signed-off-by: Dylan Baker --- framework/summary.py | 54 +++- 1 file changed, 24 insertions(+), 30 deletions(-) diff --git a

[Piglit] Replace the HTMLIndex class in summary

2013-10-17 Thread Dylan Baker
This is easily the ugliest remaining part of the new summary code, this series addresses this by first simplifying the class, and then moving the necessary parts into the mako template. Patches 1-3 lay groundwork for moving more logic into mako Patch 4 moves some content into the mako templates th

[Piglit] [PATCH 3/7] Move functions out of index.mako and into functions.mako

2013-10-17 Thread Dylan Baker
Signed-off-by: Dylan Baker --- templates/functions.mako | 61 templates/index.mako | 54 ++ 2 files changed, 68 insertions(+), 47 deletions(-) create mode 100644 templates/functions.mako diff --git a

[Piglit] [PATCH 4/7] HTML summary: Move the irregular entries to mako

2013-10-17 Thread Dylan Baker
This moves the irregular entries (like the tabs) to the mako template and out of the summary module. Signed-off-by: Dylan Baker --- framework/summary.py | 32 templates/index.mako | 31 +-- 2 files changed, 37 insertions(+), 26

[Piglit] [PATCH 5/7] summary.py: Simplify the way HTMLIndex works

2013-10-17 Thread Dylan Baker
Basically this patch replaces the returnList() function with os.path.relpath(), which can be used to return essentially the same output. Signed-off-by: Dylan Baker --- framework/summary.py | 116 ++- 1 file changed, 31 insertions(+), 85 deletions

[Piglit] [PATCH 7/7] Rename mako templates in format ..mako

2013-10-17 Thread Dylan Baker
This should make it a little easier for someone looking through the code to understand what these templates are for. example: index.mako -> index.html.mako Signed-off-by: Dylan Baker --- framework/summary.py | 8 +-- templates/empty_status.html.mako | 27 + templa

[Piglit] [PATCH 6/7] Completely replace HTMLIndex class

2013-10-17 Thread Dylan Baker
on to the process. Signed-off-by: Dylan Baker --- framework/summary.py | 124 ++- templates/functions.mako | 8 +-- templates/index.mako | 81 ++- 3 files changed, 66 insertions(+), 147 deletions(-) diff --

Re: [Piglit] [PATCH 4/4] arb_transform_feedback2: Misc. API error checks

2013-10-18 Thread Dylan Baker
the > subtests. This also eliminates the work-around for NVIDIA's > glEndTransformFeedback-while-paused bug. > > The code currently in all.tests for getting the list of subtests is > just a place holder. We'll want to refactor this out somewhere else &g

[Piglit] [PATCH] summary-html: Add Environment to HTML pages

2013-10-21 Thread Dylan Baker
Specifically for glean tests setting certain environment variables are needed to run a certain subtest in glean. This patch prints that in the HTML results. CC: matts...@gmail.com Signed-off-by: Dylan Baker --- framework/summary.py | 3 +++ templates/test_result.mako | 8 2 files

[Piglit] [PATCH] summary.py: Fix empty generation of problems, changes, etc

2013-10-21 Thread Dylan Baker
-by: Dylan Baker --- framework/summary.py | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/framework/summary.py b/framework/summary.py index 3e5c24e..6084621 100644 --- a/framework/summary.py +++ b/framework/summary.py @@ -361,8 +361,12 @@ class Summary: # Create

Re: [Piglit] [PATCH] Escape HTML output when generating test result pages.

2013-10-22 Thread Dylan Baker
Traceback > > - ${traceback} > + ${traceback | h} > > > > dmesg > > - ${dmesg} > + ${dmesg | h} > > > I had not idea mako had that feature, but it's dan

[Piglit] [PATCH v2 1/2] status.py: convert status object attributes from instance to class

2013-10-25 Thread Dylan Baker
This converts Status objects attributes to class attributes. This should reduce lookup time and memory consumption of these classes. Tested-by: Ben Widawsky Signed-off-by: Dylan Baker --- framework/status.py | 51 +++ 1 file changed, 35

[Piglit] [PATCH v2 2/2] summary.py: Replace buildDictionary function with a much simpler method

2013-10-25 Thread Dylan Baker
ested-by: Ben Widawsky Signed-off-by: Dylan Baker --- framework/status.py | 6 +- framework/summary.py | 153 +++ 2 files changed, 48 insertions(+), 111 deletions(-) diff --git a/framework/status.py b/framework/status.py index a265317..2fe153e 1

Re: [Piglit] [PATCH 4/4] arb_transform_feedback2: Misc. API error checks

2013-10-27 Thread Dylan Baker
On Sunday, October 27, 2013 04:31:21 PM Ian Romanick wrote: > On 10/18/2013 10:54 AM, Dylan Baker wrote: > > On Friday, October 04, 2013 06:11:01 PM Ian Romanick wrote: > >> From: Ian Romanick > >> > >> This covers most of the errors mentioned in the spec

Re: [Piglit] [PATCH] cl: Add sqrt tests

2013-10-27 Thread Dylan Baker
On Friday, October 25, 2013 05:40:47 PM Aaron Watry wrote: > Pretty basic, but we didn't have any tests for this before... > > Tested on r600g w/ CEDAR. > --- > generated_tests/generate-cl-math-builtins.py | 8 > 1 file changed, 8 insertions(+) > > diff --git a/generated_tests/generate-

Re: [Piglit] [PATCH v2 3/5] util: Add a -list-subtests option that will list all the subtests

2013-10-28 Thread Dylan Baker
On Monday, October 28, 2013 11:38:07 AM Ian Romanick wrote: > On 10/28/2013 10:29 AM, Kenneth Graunke wrote: > > On 10/15/2013 05:32 PM, Ian Romanick wrote: > >> From: Ian Romanick > >> > >> The utility is that all.tests can do 'sometest -list-subtests' to > >> automatically get the list of subte

Re: [Piglit] [PATCHv2] cl: Add complex real world test: Pyrit

2013-10-29 Thread Dylan Baker
On Tuesday, October 29, 2013 10:35:42 PM Peter Wu wrote: > Pyrit computes pairwise master keys (PMKs) to attack WPA/WPA2-PSK. This > test verifies two aspects: > > - Computation of the second round of a HMAC (using SHA-1). > - A calculation of the PMK key. > > Both tests use test vectors from I

Re: [Piglit] [PATCHv2] cl: Add complex real world test: Pyrit

2013-10-29 Thread Dylan Baker
On Tuesday, October 29, 2013 07:58:11 PM Tom Stellard wrote: > On Tue, Oct 29, 2013 at 04:42:19PM -0700, Dylan Baker wrote: > > On Tuesday, October 29, 2013 10:35:42 PM Peter Wu wrote: > > > Pyrit computes pairwise master keys (PMKs) to attack WPA/WPA2-PSK. This > > &g

Re: [Piglit] [PATCHv2] cl: Add complex real world test: Pyrit

2013-10-30 Thread Dylan Baker
On Wednesday, October 30, 2013 10:00:28 AM Peter Wu wrote: > (see below, it is about the Pyrit license) > > On Tuesday 29 October 2013 17:06:10 Dylan Baker wrote: > > On Tuesday, October 29, 2013 07:58:11 PM Tom Stellard wrote: > > > On Tue, Oct 29, 2013 at 04:42:19PM

Re: [Piglit] [PATCH 1/2] genclbuiltins.py: Add a arguments for funtion gen.

2013-10-30 Thread Dylan Baker
s/funtion/function/ On Wednesday, October 30, 2013 04:01:09 PM Yi Sun wrote: > Via the new arg, we can configure the vector size while generating the > test.cl. For NOT disturbing previous test cases, set a default value. > > Signed-off-by: Yi Sun > > diff --git a/generated_tests/genclbuiltins.

[Piglit] [PATCH] framework: use os.path instead of manual path management

2013-10-31 Thread Dylan Baker
Working with paths is hard, and we don't always do it right. Instead of trying to be perfect, just use python's os.path module to do all of the hard work for us Signed-off-by: Dylan Baker --- framework/core.py | 9 + framework/exectest.py | 2 +- framework/gleant

Re: [Piglit] [PATCH 13/13] cmake: use PythonInterp package and update version.

2013-10-31 Thread Dylan Baker
On Thursday, October 31, 2013 09:48:09 AM Kenney Phillis wrote: > The find_package(PythonInterp) for cmake version 2.8.6 and newer is > capable of properly handling multiple versions of python. This is > extremely useful on mixed systems where a person may have Python2 and > Python3 installed side

Re: [Piglit] [PATCH 11/13] framework/summary.py: add crashed page.

2013-10-31 Thread Dylan Baker
ns') > +pages = ('changes', 'problems', 'skipped', 'fixes', > 'regressions','crashed') You need a space after the comma between regressions and crashed You will also need to wrap the line, since with the extra element will exc

Re: [Piglit] [PATCH 1/2 v2] genclbuiltins.py: Add two new function types.

2013-10-31 Thread Dylan Baker
On Friday, November 01, 2013 12:20:46 AM Yi Sun wrote: > Sometimes we should handle scalar/vector types separately. > For example some builtin functions only support scalar type input, > and some relational builtin functions get different results between > scalar and vector type though with the sam

Re: [Piglit] [PATCH] update the HACKING file's Coding style section

2013-11-02 Thread Dylan Baker
Could you add a note about python code? Just something like: "All python code should conform to python's PEP8 standard, using only spaces and no tabs" would be great. On Fri, Nov 1, 2013 at 1:50 PM, Paul Berry wrote: > On 1 November 2013 08:14, Brian Paul wrote: > >> I've tried to describe Pi

[Piglit] [PATCH 5/6] summary.py: Simplify the way HTMLIndex works

2013-11-04 Thread Dylan Baker
This patch replaces home-rolled code with built-in python functions, this results in cleaner, simpler, and faster code. Signed-off-by: Dylan Baker --- framework/summary.py | 124 +++ 1 file changed, 36 insertions(+), 88 deletions(-) diff --git a

[Piglit] [PATCH 3/6] Summary.py: Move code out of HTMLIndex into a mako template

2013-11-04 Thread Dylan Baker
Moving the column headers out of the HTMLIndex class simplifies the class, since the code that existed for handling this was special case. Signed-off-by: Dylan Baker --- framework/summary.py | 17 + templates/index_columns.mako | 7 +++ 2 files changed, 12

[Piglit] [PATCH] tests/igt.tests: PEP8 compliance

2013-11-04 Thread Dylan Baker
formatting changes. - replace tabs with 8 spaces - fix long lines - remove trailing semicolons - fix hanging indent problems - add two spaces before and after top level classes and functions - use os.path.join instead of concat Signed-off-by: Dylan Baker --- tests/igt.tests | 73

[Piglit] [PATCH 6/6] Summary.py: Convert HTMLIndex class into a generator

2013-11-04 Thread Dylan Baker
This change does a couple of really nice things for us, first it cuts down on the memory consumption by using a generator (which is lazy). Further, as a part of the Summary.generate_html() method it doesn't need to have the summary instance passed to it, reducing complexity. Signed-off-by:

[Piglit] [PATCH 2/6] index.mako: Split index.mako into three files

2013-11-04 Thread Dylan Baker
This is groundwork for simplifying the generation of the HTML pages. Signed-off-by: Dylan Baker --- framework/summary.py | 25 -- templates/index.mako | 81 -- templates/index_body.mako | 41 +++ templates

[Piglit] [PATCH 1/6] Summary.py: use mako's TemplateLookup class

2013-11-04 Thread Dylan Baker
This change reduces code duplication by setting arguments to the templates to be set once, rather than once per template. Signed-off-by: Dylan Baker --- framework/summary.py | 56 ++-- 1 file changed, 24 insertions(+), 32 deletions(-) diff --git

[Piglit] [PATCH 4/6] templates/index_body.mako: remove unused subtestResult

2013-11-04 Thread Dylan Baker
This code was left over from an early iteration of the code, and isn't used. Signed-off-by: Dylan Baker --- templates/index_body.mako | 4 1 file changed, 4 deletions(-) diff --git a/templates/index_body.mako b/templates/index_body.mako index 0056912..9e67311 100644 --- a/temp

Re: [Piglit] [PATCH 0/7] Reducing ortho use in shader_runner

2013-11-05 Thread Dylan Baker
On Tuesday, November 05, 2013 09:38:16 AM Ian Romanick wrote: > On 11/04/2013 10:18 PM, Matt Turner wrote: > > We'd like to shrink the window sizes of shader runner when running in > > simulation, and ortho tests make it difficult to reason about reducing > > the window size. > > > > The following

Re: [Piglit] [PATCH 0/7] Reducing ortho use in shader_runner

2013-11-05 Thread Dylan Baker
es don't try to place invalid > characters that lead to programs failing. > > > As a tip, Just run the glean tests on windows and then try to make a html > output for it... It'll fail every time due to invalid characters... I have > tested this on Windows 7 and it sh

[Piglit] [PATCH 2/2] core.py: don't write subtests as full entries

2013-11-05 Thread Dylan Baker
This stops subtests from being written as full entries in the json. Instead, in the summary code the test with subtests is treated as a group, and the subtests as real tests. Signed-off-by: Dylan Baker --- framework/core.py | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git

[Piglit] [PATCH 1/2] summary.py: Treat subtests as groups

2013-11-05 Thread Dylan Baker
This patch causes tests with subtests to be treated as a group, rather than as a test. This means that the status the test itself stores will be overwritten by those in the subtest. Signed-off-by: Dylan Baker --- framework/summary.py | 33 +++-- 1 file changed, 31

  1   2   3   4   5   6   7   8   9   10   >