[Piglit] [PATCH 2/2] framework/summary/common.py: Add enabled, disabled, and skip to changes

2015-10-21 Thread baker . dylan . c
From: Dylan Baker This changes the changes category to include every case were the first status is not the same as the previous status, including <-> notrun, even when is skip. This fixes the failing unit tests from the previous commit. cc: Michel Dänzer

[Piglit] [PATCH 1/2] framework/tests/summary_common_tests.py: Add enabled/disabled and skips to changes

2015-10-21 Thread baker . dylan . c
From: Dylan Baker This test changes the behavior of the changes group to include enabled and disabled tests, as well as fixes and regressions. This adds 3 expected failures to the piglit framework unit tests. Signed-off-by: Dylan Baker ---

[Piglit] [PATCH v2 2/2] framework/summary/common.py: Add enabled, disabled, and skip to changes

2015-10-21 Thread baker . dylan . c
From: Dylan Baker This changes the changes category to include every case were the first status is not the same as the previous status, including <-> notrun, except when is skip. This fixes the failing unit tests from the previous commit. v2: - don't include skip <->

[Piglit] [PATCH v2 1/2] framework/tests/summary_common_tests.py: Add enabled/disabled and skips to changes

2015-10-21 Thread baker . dylan . c
From: Dylan Baker This test changes the behavior of the changes group to include enabled and disabled tests, as well as fixes and regressions. This adds 3 expected failures to the piglit framework unit tests. v2: - dont add test <-> notrun (Ilia) Signed-off-by: Dylan

[Piglit] [RESEND RFC 09/25] gen_tcs_input_tests.py: remove unnecessary semicolons

2015-10-21 Thread baker . dylan . c
From: Dylan Baker Signed-off-by: Dylan Baker --- generated_tests/gen_tcs_input_tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generated_tests/gen_tcs_input_tests.py b/generated_tests/gen_tcs_input_tests.py

[Piglit] [RESEND RFC 06/25] gen_tes_input_tests.py: use six.moves.range

2015-10-21 Thread baker . dylan . c
From: Dylan Baker This maintains python 2.x and 3.x compatibility, while still using an efficient iterator function (unlike range in python 2.x which returns a list) Signed-off-by: Dylan Baker --- generated_tests/gen_tes_input_tests.py | 12

[Piglit] [RESEND RFC 15/25] gen_tcs_input_tests.py: use textwrap.dedent

2015-10-21 Thread baker . dylan . c
From: Dylan Baker Signed-off-by: Dylan Baker --- generated_tests/gen_tcs_input_tests.py | 191 + 1 file changed, 96 insertions(+), 95 deletions(-) diff --git a/generated_tests/gen_tcs_input_tests.py

[Piglit] [RESEND RFC 17/25] generated_tests: combine gen_{tcs, tes}_input_tests

2015-10-21 Thread baker . dylan . c
From: Dylan Baker These two generators share a lot of boilerplate, and all of the interesting logic is contained in the Test class. A little simple renaming and the generators can be combined, reducing the amount of boilerplate needed. Signed-off-by: Dylan Baker

[Piglit] [RESEND RFC 20/25] gen_tess_input_tests.py: Use mako to generate tests

2015-10-21 Thread baker . dylan . c
From: Dylan Baker This gives us a cached template, speeding up regenerating these tests, which is especially helpful in a CI system like Jenkins. Signed-off-by: Dylan Baker --- generated_tests/CMakeLists.txt | 5 +-

[Piglit] [RESEND RFC 25/25] gen_tess_input_tests.py: Reduce code duplication

2015-10-21 Thread baker . dylan . c
From: Dylan Baker This uses a couple of mixin classes to reduce code duplication. It splits the identical 'generate' functions out into a mixin, as well as the 'components' and 'test_data' methods into a second mixin. It then makes filename a lazy_property, to make even

[Piglit] [RESEND RFC 14/25] gen_tcs_input_tests.py: use six.moves.range

2015-10-21 Thread baker . dylan . c
From: Dylan Baker Signed-off-by: Dylan Baker --- generated_tests/gen_tcs_input_tests.py | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/generated_tests/gen_tcs_input_tests.py

[Piglit] [RESEND RFC 22/25] gen_tess_input_tests.py: use numpy for random data

2015-10-21 Thread baker . dylan . c
From: Dylan Baker Python 2.x and python 3.x produce different results. This is probably a difference between the implementations. This result is largely the same in order of magnitude differences, but the numbers themselves are sometimes significantly different. This

[Piglit] [RESEND RFC 07/25] gen_tes_input_tests.py: use texwrap.dedent

2015-10-21 Thread baker . dylan . c
From: Dylan Baker This increases the readability of the file by allowing the long test string to be indented. Signed-off-by: Dylan Baker --- generated_tests/gen_tes_input_tests.py | 189 + 1 file changed, 95

[Piglit] [RESEND RFC 12/25] gen_tcs_input_tests.py: fix imports

2015-10-21 Thread baker . dylan . c
From: Dylan Baker Signed-off-by: Dylan Baker --- generated_tests/gen_tcs_input_tests.py | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/generated_tests/gen_tcs_input_tests.py b/generated_tests/gen_tcs_input_tests.py

[Piglit] [RESEND RFC 04/25] gen_tes_input_tests.py: Cleanup imports

2015-10-21 Thread baker . dylan . c
From: Dylan Baker one import per line per PEP8, and use the __future__ imports to enforce python 2.x and python 3.x compatibility. Signed-off-by: Dylan Baker --- generated_tests/gen_tes_input_tests.py | 5 - 1 file changed, 4

[Piglit] [RESEND RFC 21/25] gen_tess_input_tests.py: move some formatting logic into the templates

2015-10-21 Thread baker . dylan . c
From: Dylan Baker This logic was purely used for making content to appear in the generated files. It is both simpler and less code if it put in the template. Signed-off-by: Dylan Baker --- generated_tests/gen_tess_input_tests.py|

[Piglit] [RESEND RFC 19/25] gen_tess_input_tests.py: add missing docstring

2015-10-21 Thread baker . dylan . c
From: Dylan Baker Signed-off-by: Dylan Baker --- generated_tests/gen_tess_input_tests.py | 1 + 1 file changed, 1 insertion(+) diff --git a/generated_tests/gen_tess_input_tests.py b/generated_tests/gen_tess_input_tests.py index

[Piglit] Cleanup tesselation generators

2015-10-21 Thread baker . dylan . c
This is a resend of the previous series (I have my send-email problems mostly sorted at this point) This has been rebased on master, and some of the commit messages updated since the last send. ___ Piglit mailing list Piglit@lists.freedesktop.org

[Piglit] [RESEND RFC 10/25] gen_tcs_input_tests.py: replace tabs with spaces

2015-10-21 Thread baker . dylan . c
From: Dylan Baker Signed-off-by: Dylan Baker --- generated_tests/gen_tcs_input_tests.py | 60 +- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/generated_tests/gen_tcs_input_tests.py

[Piglit] [RESEND RFC 11/25] gen_tcs_input_tests.py: Use a proper docstring

2015-10-21 Thread baker . dylan . c
From: Dylan Baker Signed-off-by: Dylan Baker --- generated_tests/gen_tcs_input_tests.py | 26 ++ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/generated_tests/gen_tcs_input_tests.py

[Piglit] [RESEND RFC 16/25] gen_tcs_input_tests.py: replace unused variable with _

2015-10-21 Thread baker . dylan . c
From: Dylan Baker Signed-off-by: Dylan Baker --- generated_tests/gen_tcs_input_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generated_tests/gen_tcs_input_tests.py b/generated_tests/gen_tcs_input_tests.py index

[Piglit] [RESEND RFC 03/25] gen_tes_input_tests.py: replace tabs with spaces

2015-10-21 Thread baker . dylan . c
From: Dylan Baker This breaks python 3 compatibility Signed-off-by: Dylan Baker --- generated_tests/gen_tes_input_tests.py | 50 +- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git

[Piglit] [RESEND RFC 18/25] gen_tess_input_tests.py: use modules.utils.safe_makedirs

2015-10-21 Thread baker . dylan . c
From: Dylan Baker This if much like os.makedirs, but catches extra errors to handle corner cases. Signed-off-by: Dylan Baker --- generated_tests/gen_tess_input_tests.py | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[Piglit] [RESEND RFC 02/25] gen_tes_input_tests.py: remove unnecissary ; at end of python lines

2015-10-21 Thread baker . dylan . c
From: Dylan Baker python allows these, but they're not necessary and not normal Signed-off-by: Dylan Baker --- generated_tests/gen_tes_input_tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[Piglit] [RESEND RFC 24/25] gen_tess_input_tests.py: homogenize {Tes, Tcs}Test

2015-10-21 Thread baker . dylan . c
From: Dylan Baker This is going to allow for code sharing in the next patch. Signed-off-by: Dylan Baker --- generated_tests/gen_tess_input_tests.py | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git

[Piglit] [RESEND RFC 05/25] gen_tes_input_tests.py: cleanup whitespace issues

2015-10-21 Thread baker . dylan . c
From: Dylan Baker these are mostly bad hanging indents or oddly placed spaces Signed-off-by: Dylan Baker --- generated_tests/gen_tes_input_tests.py | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git

[Piglit] [RESEND RFC 08/25] gen_tes_input_tests.py: replace unused variable with _

2015-10-21 Thread baker . dylan . c
From: Dylan Baker Signed-off-by: Dylan Baker --- generated_tests/gen_tes_input_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generated_tests/gen_tes_input_tests.py b/generated_tests/gen_tes_input_tests.py index

[Piglit] [RESEND RFC 13/25] gen_tcs_input_tests.py: fix whitespace errors

2015-10-21 Thread baker . dylan . c
From: Dylan Baker Signed-off-by: Dylan Baker --- generated_tests/gen_tcs_input_tests.py | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/generated_tests/gen_tcs_input_tests.py

[Piglit] [RESEND RFC 23/25] gen_tess_input_tests.py: simplify some of the logic

2015-10-21 Thread baker . dylan . c
From: Dylan Baker This produces the same result, but it's much clearer what's happening. Signed-off-by: Dylan Baker --- generated_tests/gen_tess_input_tests.py | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git

[Piglit] [RESEND RFC 01/25] gen_tes_input_tests.py: use a proper docstring

2015-10-21 Thread baker . dylan . c
From: Dylan Baker This is just syntactic sugar. Signed-off-by: Dylan Baker --- generated_tests/gen_tes_input_tests.py | 32 +--- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git

[Piglit] [PATCH] framework: resmove es3conform support

2015-10-27 Thread baker . dylan . c
From: Dylan Baker This is the old Khronos suite, which has been superseded by CTS. Since piglit can wrap cts it seems rather silly to have both CTS and es3conform support. cc: Eric Anholt Signed-off-by: Dylan Baker --- Eric,

[Piglit] [PATCH v2 6/9] tests/oglconform.py: Fix style issues indentified by pylint

2015-10-26 Thread baker . dylan . c
From: Dylan Baker Fixes the following warnings from pylint: - constants should be ALL_CAPS - shadowing names from the outer scope Signed-off-by: Dylan Baker Reviewed-by: Vinson Lee --- tests/oglconform.py | 18

[Piglit] [PATCH v2 4/9] tests/oglconform.py: override command.getter

2015-10-26 Thread baker . dylan . c
From: Dylan Baker This moves some constant arguments out of the permanently stored values in each test instance into a getter, which reduces the number of duplicate elements that need to be stored per instance. This reduces memory usage a little. Signed-off-by: Dylan

[Piglit] [PATCH v2 7/9] tests/oglconform.py: simplify writing to /dev/null

2015-10-26 Thread baker . dylan . c
From: Dylan Baker I'm a little surprised this actually works in current form, since it's currently pointing to an int, rather than a file-like object. This patch simplifies the code by pointing at the open file-like object. Signed-off-by: Dylan Baker

[Piglit] [PATCH v2 8/9] tests/oglconform.py: fix imports

2015-10-26 Thread baker . dylan . c
From: Dylan Baker Currently Test is imported from framework.profile and this happens to work. However, this isn't the correct place to get Test from, and it isn't guaranteed to continue working in the future. Signed-off-by: Dylan Baker ---

[Piglit] [PATCH v2 2/9] tests/oglconform.py: Use tempfile module instead of hard-coded filename

2015-10-26 Thread baker . dylan . c
From: Dylan Baker This is a nice cleanup, since it allows us to a) not have a hardcoded dependency of /tmp existing, b) it means that the temporary file is removed after it's used automatically, and c) it allows us to test the _make_profile function. I would really

[Piglit] cleanup oglconform v2

2015-10-26 Thread baker . dylan . c
This is exactly as the previous incarnation, except that it replaces the 'str in str' patch with a patch that makes interpret_result faster in most cases (instead of slightly slower). ___ Piglit mailing list Piglit@lists.freedesktop.org

[Piglit] [PATCH v2 1/9] tests/oglconform.py: wrap profile creation in a function

2015-10-26 Thread baker . dylan . c
From: Dylan Baker This makes generating the profile a cleaner affair, and enables testing it. It also pulls variables out of the global scope that don't belong in the global scope. Signed-off-by: Dylan Baker --- tests/oglconform.py | 35

[Piglit] [PATCH v2 5/9] tests/oglconform.py: minor refactor to simplify try/except block

2015-10-26 Thread baker . dylan . c
From: Dylan Baker This moves code out of the try/except block that we don't mean to catch exceptions in, which is better coding practice. This also sets the except block to ValueError only, which is the error that will occur if there aren't enough values to unpack,

[Piglit] [PATCH v2 9/9] tests/oglconform.py: make interpret_result() faster in most cases

2015-10-26 Thread baker . dylan . c
From: Dylan Baker This optimizes the common paths of OGLCTest.interpret_result(): pass and the common skip case. For most OGLCTest cases the result will be in the final 3 lines of stdout. In this case it is substantially faster to split the last 3 lines, and then check

[Piglit] Use subprocess32 for timeouts (v2)

2015-10-23 Thread baker . dylan . c
Changes since v1: - Handle forking processes properly (there is a test in the last patch for this which probably deserves review, I've learned a lot about how POSIX processes work for this series and may or may not have gotten it right) - Split the timeout code into a Mixin. This

[Piglit] [PATCH v2 3/6] framework/tests/base_tests.py: use utils helper to simplify test

2015-10-23 Thread baker . dylan . c
From: Dylan Baker This just saves some code duplication. Signed-off-by: Dylan Baker --- framework/tests/base_tests.py | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/framework/tests/base_tests.py

[Piglit] [PATCH v2 5/6] framework/test/base.py: Split timeout code into a mixin.

2015-10-23 Thread baker . dylan . c
From: Dylan Baker This splits the timeout code into a mixin class which is guarded by a check to ensure that the os is not windows (piglit supports only modern *nix systems and windows, so checks for old mac os and similar don't make sense). It then provides this mixin

[Piglit] [PATCH v2 2/6] framework/tests/base_tests.py: fix descriptions of two timeout tests

2015-10-23 Thread baker . dylan . c
From: Dylan Baker These tests claimed to test the timeout mechanism, but what they're really testing is the status changing ability of the timeout mechanism. Signed-off-by: Dylan Baker --- framework/tests/base_tests.py | 4 ++-- 1 file

[Piglit] [PATCH v2 6/6] framework/test/base.py: use subprocess32 for timeouts.

2015-10-23 Thread baker . dylan . c
From: Dylan Baker Subprocess32 provides a backport of (ironically) python 3.3's subprocess module, which has a timeout parameter. When the timeout runs out then an exception is raised, and when that exception is caught we can kill the process. This is fairly similar to

[Piglit] [PATCH v2 4/6] framework/test/base.py: split protected method in Test

2015-10-23 Thread baker . dylan . c
From: Dylan Baker This is groundwork to split timeout into a Mixin, which is going to be a cleaner solution than trying to build timeout into the base class. The reason this is going to be cleaner is that for python 2.x it is much simpler and cleaner to use subprocess32

[Piglit] [PATCH 5/9] tests/oglconform.py: override command.getter

2015-10-21 Thread baker . dylan . c
From: Dylan Baker This moves some constant arguments out of the permanently stored values in each test instance into a getter, which reduces the number of duplicate elements that need to be stored per instance. This reduces memory usage a little. Signed-off-by: Dylan

[Piglit] [PATCH 8/9] tests/oglconform.py: simplify writing to /dev/null

2015-10-21 Thread baker . dylan . c
From: Dylan Baker I'm a little surprised this actually works, since it's currently pointing to an int, rather than a file-like object. This patch simplifies the code by pointing at the open file-like object. Signed-off-by: Dylan Baker ---

[Piglit] [PATCH 3/9] framework/tests/oglconform_tests.py: Add tests for tests/oglconform.py

2015-10-21 Thread baker . dylan . c
From: Dylan Baker This adds a pretty extensive set of tests for oglconform.py, with the goal of making further cleanups and refactors easier and not introducing regressions. This adds a dependency of mock for the unittests. No production code needs this dependency, so

[Piglit] [PATCH 4/9] tests/oglconform.py: replace re with 'str in str'

2015-10-21 Thread baker . dylan . c
From: Dylan Baker This is a simpler solution. In some cases this may be more expensive than the re, but in others it will be cheaper. Even if keeping the re it should be compiled for performance reasons. Signed-off-by: Dylan Baker ---

[Piglit] [PATCH 7/9] tests/oglconform.py: Fix style issues indentified by pylint

2015-10-21 Thread baker . dylan . c
From: Dylan Baker - constants should be ALL_CAPS - shadowing names from the outer scope Signed-off-by: Dylan Baker --- tests/oglconform.py | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git

[Piglit] [PATCH 2/9] tests/oglconform.py: Use tempfile module instead of hard-coded filename

2015-10-21 Thread baker . dylan . c
From: Dylan Baker This is a nice cleanup, since it allows us to a) not have a hardcoded dependency of /tmp existing, b) it means that the temporary file is removed after it's used automatically, and c) it allows us to test the _make_profile function. I would really

[Piglit] tests and cleanups for oglconform integration

2015-10-21 Thread baker . dylan . c
This adds unit tests and some small cleanups for the oglconform suite integration module. I'm planning to add similar cleanups and tests for other integration suites, so that I can stop breaking them all the time. This is available at my github: https://github.com/dcbaker/piglit

[Piglit] [PATCH 6/9] tests/oglconform.py: minor refactor to simplify try/except block

2015-10-21 Thread baker . dylan . c
From: Dylan Baker This moves code out of the try/except block that we don't mean to catch exceptions in, which is better coding practice. This also sets the except block to ValueError only, which is the error that will occur if there aren't enough values to unpack,

[Piglit] [PATCH 9/9] tests/oglconform.py: fix imports

2015-10-21 Thread baker . dylan . c
From: Dylan Baker Currently Test is imported from framework.profile and this happens to work. However, this isn't the correct place to get Test from, and it isn't guaranteed to continue working in the future. Signed-off-by: Dylan Baker ---

[Piglit] [PATCH 1/9] tests/oglconform.py: wrap profile creation in a function

2015-10-21 Thread baker . dylan . c
From: Dylan Baker This makes generating the profile a cleaner affair, and enables testing it. It also pulls variables out of the global scope that don't belong in the global scope. Signed-off-by: Dylan Baker --- tests/oglconform.py | 35

[Piglit] [PATCH] glsl_parser_test.py: Fix which versions are sent to glslparsertest_gles2

2015-11-09 Thread baker . dylan . c
From: Dylan Baker There are two versions of glslparsertest, an undecorated one for desktop OpenGL, and a '_gles2' suffixed one for OpenGL ES. Piglit should pass 3.1 and 3.2 to the '_gles2' version like it does for GLES 2 and GLES 3.0 This also extends the test generator

[Piglit] [PATCH v3 4/4] framework/test/base.py: use subprocess32 for timeouts.

2015-11-12 Thread baker . dylan . c
From: Dylan Baker Subprocess32 provides a backport of (ironically) python 3.3's subprocess module, which has a timeout parameter. When the timeout runs out then an exception is raised, and when that exception is caught we can kill the process. This is fairly similar to

[Piglit] [PATCH v3 3/4] framework/tests/base_tests.py: use utils helper to simplify test

2015-11-12 Thread baker . dylan . c
From: Dylan Baker This just saves some code duplication. v3: - fix tests to actually work. Signed-off-by: Dylan Baker --- framework/tests/base_tests.py | 20 1 file changed, 8 insertions(+), 12 deletions(-) diff --git

[Piglit] [PATCH v3 2/4] framework/tests/base_tests.py: fix descriptions of two timeout tests

2015-11-12 Thread baker . dylan . c
From: Dylan Baker These tests claimed to test the timeout mechanism, but what they're really testing is the status changing ability of the timeout mechanism. Signed-off-by: Dylan Baker --- framework/tests/base_tests.py | 4 ++-- 1 file

[Piglit] [PATCH v3 0/4] Use subprocess32 for timeouts

2015-11-12 Thread baker . dylan . c
From: Dylan Baker This is the 3rd revision of my series to use subprocess32 for test timeouts. This has some cleanups as requested by Thomas, and a few unittest problems I noticed are fixed. The biggest change however is the removal of the mixin for timeouts, and them

[Piglit] [PATCH v2] framework: handle crash codes like piglit native tests.

2015-11-12 Thread baker . dylan . c
From: Dylan Baker This changes the behavior of the dEQP integration such that a status that is < 0 on unix or (< 0 || == 3) on windows will be a crash rather than a fail. A status > 0 (except 3 on windows) will still be marked fail. This makes use of the helper function

[Piglit] [PATCH v3 1/4] framework/tests: add helper for checking for 3rd party modules

2015-11-12 Thread baker . dylan . c
From: Dylan Baker This little helper skips a test if a module isn't available. Signed-off-by: Dylan Baker --- framework/tests/junit_backends_tests.py | 3 +-- framework/tests/utils.py| 9 + 2 files changed, 10

[Piglit] [PATCH v2 3/3] framework/test/glsl_parser_test.py: allow forcing the desktop version

2015-11-16 Thread baker . dylan . c
From: Dylan Baker This adds a new environment variable, PIGLIT_FORCE_GLSLPARSER_DESKTOP, which forces glsl_parser_test.py to use "glslparsertest" for GLES tests (instead of "glslparsertest_gles2"). This could be used to force testing ES__compatibility extensions even

[Piglit] [PATCH v2 2/3] framework/test/glsl_parser_test.py: Handle gl versions correctly

2015-11-16 Thread baker . dylan . c
From: Dylan Baker This patch fixes the behavior of glsl_parser_test in cases other that OpenGL and OpenGL ES are available. This means that if OpenGL ES isn't available then OpenGL ES shaders will be passed to the regular version of glslparsertest, which can run them

[Piglit] [PATCH v2 1/3] glsl_parser_test.py: Fix which versions are sent to glslparsertest_gles2

2015-11-16 Thread baker . dylan . c
From: Dylan Baker There are two versions of glslparsertest, an undecorated one for desktop OpenGL, and a '_gles2' suffixed one for OpenGL ES. Piglit should pass 3.1 and 3.2 to the '_gles2' version like it does for GLES 2 and GLES 3.0 This also extends the test generator

[Piglit] [PATCH v2 0/3] Fix glslparsertest python version handling

2015-11-16 Thread baker . dylan . c
From: Dylan Baker This fixes the way that glslparsertest in the python layer handles versions. Specifically with this series: - the python layer makes smarter decisions about using glslparsertest or glslparsertest_gles2, especially in cases where only one has been

[Piglit] [PATCH] generated_tests/builtin_function.py: fix running with python 3.x

2015-11-11 Thread baker . dylan . c
From: Dylan Baker The current code works under python 2.7, but not python 3.x. This patch corrects that by making the code work for both. Signed-off-by: Dylan Baker --- generated_tests/builtin_function.py | 6 -- 1 file changed, 4

[Piglit] [PATCH v2 3/3] framework/test/glsl_parser_test.py: allow forcing the desktop version

2015-11-09 Thread baker . dylan . c
From: Dylan Baker This adds a new environment variable, PIGLIT_FORCE_GLSLPARSER_DESKTOP, which forces glsl_parser_test.py to use "glslparsertest" for GLES tests (instead of "glslparsertest_gles2"). This could be used to force testing ES__compatibility extensions even

[Piglit] [PATCH v2 2/3] framework/test/glsl_parser_test.py: Handle gl versions correctly

2015-11-09 Thread baker . dylan . c
From: Dylan Baker This patch fixes the behavior of glsl_parser_test in cases other that OpenGL and OpenGL ES are available. This means that if OpenGL ES isn't available then OpenGL ES shaders will be passed to the regular version of glslparsertest, which can run them

[Piglit] [PATCH v2 1/3] glsl_parser_test.py: Fix which versions are sent to glslparsertest_gles2

2015-11-09 Thread baker . dylan . c
From: Dylan Baker There are two versions of glslparsertest, an undecorated one for desktop OpenGL, and a '_gles2' suffixed one for OpenGL ES. Piglit should pass 3.1 and 3.2 to the '_gles2' version like it does for GLES 2 and GLES 3.0 This also extends the test generator

[Piglit] Make options a global variable

2015-10-30 Thread baker . dylan . c
One of the awkward things in piglit is passing the options object around everyplace we need it, which is a lot of places. This creates a lot of code, and a lot of passing, and a lot of places for something to fail. This small series turns options into a global variable, which can be mutated

[Piglit] [PATCH 2/2] framework: Convert the codebase to use the new global Options

2015-10-30 Thread baker . dylan . c
From: Dylan Baker This is the plunge to change over from the old options model to the new one. After this change Options is a global value, and no more passing or creation of new instances is done (except for testing). Signed-off-by: Dylan Baker

[Piglit] [PATCH] glslparsertest: Update for gles3.1 and gles3.2

2015-11-04 Thread baker . dylan . c
From: Dylan Baker I noticed during my fast-skip work that one test[1] changed status (from fail -> skip), what I realized is that glslparsertest doesn't know how to handle gles3.1 or gles3.2. This patch adds support for checking 3.1 and 3.2 glsl versions, both in

[Piglit] [PATCH] gl-layer-render-storage.c: remove unused variable.

2015-11-05 Thread baker . dylan . c
From: Dylan Baker cc: Ilia Mirkin Signed-off-by: Dylan Baker --- tests/spec/gl-3.2/layered-rendering/gl-layer-render-storage.c | 1 - 1 file changed, 1 deletion(-) diff --git

[Piglit] [PATCH 02/11] framework: Convert the codebase to use the new global Options

2015-11-05 Thread baker . dylan . c
From: Dylan Baker This is the plunge to change over from the old options model to the new one. After this change Options is a global value, and no more passing or creation of new instances is done (except for testing). Signed-off-by: Dylan Baker

[Piglit] [PATCH 07/11] framework/test/shader_test.py: Add fast skipping support for extensions

2015-11-05 Thread baker . dylan . c
From: Dylan Baker This hooks up the new mixin from the previous patch in ShaderTest (the class used to run shader_runner). This patch gives me a ~40 second reduction in runtime for shader.py (a profile that runs only shader_test files). My setup is as follows: HSW

[Piglit] [PATCH 06/11] framework/test/opengl.py: Add GLSL and GLSL ES fast skipping

2015-11-05 Thread baker . dylan . c
From: Dylan Baker This adds support to the FastSKipMixin for checking GLSL and GLSL ES versions. Signed-off-by: Dylan Baker --- framework/test/opengl.py| 58 +++ framework/tests/opengl_tests.py | 122

[Piglit] [PATCH 04/11] framework/test/opengl.py: Add FastSkipMixin which checks extensions

2015-11-05 Thread baker . dylan . c
From: Dylan Baker This Mixin provides a way for OpenGL tests to skip very fast. Currently it only applies to GL extensions, but will be extended to cover GLSL version requirements and GL version requirements (and ES)> This is split into a separate module because it's

[Piglit] [PATCH 09/11] framework/test/shader_test.py: add GLSL (ES) based skipping.

2015-11-05 Thread baker . dylan . c
From: Dylan Baker This adds support to ShaderTest to scrape the GLSL requirements, and provide them to the FasSkipMixin. This reduces run time by ~15 seconds on my HSW. Signed-off-by: Dylan Baker --- framework/test/shader_test.py| 21

[Piglit] [PATCH 05/11] framework/test/opengl.py: add support for GL(ES) version skipping.

2015-11-05 Thread baker . dylan . c
From: Dylan Baker This patch adds support to the FasSkipMixin for skipping on GL and GLES versions. It does this by querying wflinfo for the highest supported This skipping only supports checking that the requirement is <= to the maximum GL(ES) provided. There are some

[Piglit] [PATCH 00/11] OpenGL fast skipping for native tests.

2015-11-05 Thread baker . dylan . c
From: Dylan Baker One of the problems with piglit is the runtime, especially on older platforms where large numbers of tests skip. The average runtime on HSW for a shader_runner test that skips is about .05 seconds. This seems pretty small, until one considers that there

[Piglit] [PATCH 08/11] framework/test/shader_test.py: add GL and GLES version fast skipping.

2015-11-05 Thread baker . dylan . c
From: Dylan Baker This implements a similar mechanism to check GL or GLES version support on the current driver. Signed-off-by: Dylan Baker --- framework/test/shader_test.py| 11 +++ framework/tests/shader_test_tests.py | 26

[Piglit] [PATCH 03/11] gen_builtin_uniform_tests.py: Add extensions to require section

2015-11-05 Thread baker . dylan . c
From: Dylan Baker This generator adds required extensions to the shaders, but not the require section. This patch fixes that. Signed-off-by: Dylan Baker --- generated_tests/gen_builtin_uniform_tests.py | 2 ++ 1 file changed, 2 insertions(+)

[Piglit] [PATCH] generated_tests/builtin_function.py: hide RuntimeWarnings

2015-11-06 Thread baker . dylan . c
From: Dylan Baker These warnings are expected, it's better to hide expected warnings and provide a comment about them being expected than to have them clutter the output of the build system. Signed-off-by: Dylan Baker --- The fact that these

[Piglit] [PATCH 2/2] generated_tests/test_generators.py: Add support for expected failures

2015-10-15 Thread baker . dylan . c
From: Dylan Baker There are a number of tests with expected failures that there are patches for, but have not been reviewed or landed. This in the meantime makes tox turn green, which is what we expect. Signed-off-by: Dylan Baker ---

[Piglit] [PATCH 1/2] tox.ini: run generator tests with python 2.7 as well

2015-10-15 Thread baker . dylan . c
From: Dylan Baker Signed-off-by: Dylan Baker --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index ca97a51..7aa741a 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist =

[Piglit] [PATCH 2/3] framework/tests/summary_common_tests.py: Add tests for subtests in Names

2015-10-19 Thread baker . dylan . c
From: Dylan Baker There is currently a bug in summary.Names that means that subtests are added to the 'all' page (index.html), but not to the subset pages (fixes.html, problems.html, etc). These demonstrate that problem. This introduces 7 expected failures to the piglit

[Piglit] [PATCH 1/3] framework/results.py: Add a get_result method to TestrunResult

2015-10-19 Thread baker . dylan . c
From: Dylan Baker This provides a single source of getting results from tests or subtests, and hides the magic of differentiating the two. This will make it easier to work with subtests in the Summary module, since we can easily know that we've checked subtests.

[Piglit] [PATCH 3/3] framework/sumamry/common.py: Fix subtest handling in non-all groups

2015-10-19 Thread baker . dylan . c
From: Dylan Baker The gist of the problem is that we handle lookup for subtests in the all group correctly, but when we went to compare between multiple results we don't. This patch makes use of the get_result from the previous patch to simplify test name lookups, and

[Piglit] [PATCH 2/6] framework/test/gtest.py: add super call in interpret_result

2015-10-20 Thread baker . dylan . c
From: Dylan Baker This is required to get the crash and warn status. Signed-off-by: Dylan Baker --- framework/test/gtest.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/framework/test/gtest.py

[Piglit] [PATCH 4/6] tests/igt.py: move timeout parameter to class level

2015-10-20 Thread baker . dylan . c
From: Dylan Baker It's constant across the class and this will save a tiny bit of memory. Signed-off-by: Dylan Baker --- tests/igt.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/igt.py b/tests/igt.py index

[Piglit] [PATCH 3/6] tests/igt.py: add super call for interpret_result()

2015-10-20 Thread baker . dylan . c
From: Dylan Baker Fixes crash/warn status handling. Signed-off-by: Dylan Baker --- tests/igt.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/igt.py b/tests/igt.py index 7ba7842..4f970a8 100644 --- a/tests/igt.py +++

[Piglit] [PATCH 1/6] framework/test/gleantest.py: call super in interpret_result()

2015-10-20 Thread baker . dylan . c
From: Dylan Baker This adds crash and warn statuses back and should have been handled as part of commit 947b212a39304, but was not. Signed-off-by: Dylan Baker --- framework/test/gleantest.py | 1 + 1 file changed, 1 insertion(+) diff --git

[Piglit] [PATCH 5/6] tests/xts.py: call super in intpret_result()

2015-10-20 Thread baker . dylan . c
From: Dylan Baker Fix crash/warn handling. Signed-off-by: Dylan Baker --- tests/xts.py | 4 1 file changed, 4 insertions(+) diff --git a/tests/xts.py b/tests/xts.py index de560c4..a078056 100644 --- a/tests/xts.py +++ b/tests/xts.py @@

[Piglit] [PATCH 6/6] tests/oglconform.py: add super call to interpret_result()

2015-10-20 Thread baker . dylan . c
From: Dylan Baker fix crash/warn handling. cc: Kenneth Graunke Signed-off-by: Dylan Baker --- tests/oglconform.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/oglconform.py b/tests/oglconform.py index

[Piglit] Add tox for running framework tests with different configurations

2015-10-08 Thread baker . dylan . c
Disclaimer: This little series only touches the python framework tests, and I think I'm the only one who cares about them, so if I don't see any review in a day or so I'll just push these. This cleans up a few tests, fixes a few others, removes some hand rolled code in favor of code that is part

[Piglit] [PATCH 6/7] tox: Add a test module for testing the generators.

2015-10-08 Thread baker . dylan . c
From: Dylan Baker This test module provides a function that enumerates the test generators (it assumes that all files ending in .py are generators unless they're black listed), and generates a nose job for each of them. This allows us to ensure that the generators work

[Piglit] [PATCH 2/7] framework/tests: replace custom decorator with nose's attr decorator

2015-10-08 Thread baker . dylan . c
From: Dylan Baker This is a more standard way to mark tests out as special case, and not rolling our own code is good. Signed-off-by: Dylan Baker --- framework/tests/dmesg_tests.py | 7 --- framework/tests/utils.py | 12

[Piglit] [PATCH 5/7] framework: add tox testing support

2015-10-08 Thread baker . dylan . c
From: Dylan Baker tox is a python test manager that runs the tests in isolated environments with their own copies of dependent libraries, and can be used to test against multiple versions of python. This allows us to easily test the framework with and without the

  1   2   3   >