[Piglit] [PATCH 02/13] cmake: link OpenGL and OpenGL ES utility libs to piglitutil.

2013-10-31 Thread Kenney Phillis
it's a good idea to make sure the dependency trees are properly set to where all utilities are based on what is found in the noapi (piglitutil) debugger. --- tests/util/CMakeLists.gl.txt|4 tests/util/CMakeLists.gles1.txt |1 + tests/util/CMakeLists.gles2.txt |1 + tests/util/

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

2013-10-31 Thread Kenney Phillis
Sometimes a user just wants to be able to painlessly get a visual on what crashed. --- framework/summary.py |9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/framework/summary.py b/framework/summary.py index f5af627..0105bf0 100644 --- a/framework/summary.py +++ b/fr

[Piglit] [PATCH 03/13] util: Implement signal handler support.

2013-10-31 Thread Kenney Phillis
sighandler-none.c new file mode 100644 index 000..9b98976 --- /dev/null +++ b/tests/util/piglit-sighandler/piglit-sighandler-none.c @@ -0,0 +1,37 @@ +/* + * Copyright © 2013 Kenney Phillis + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and

[Piglit] [PATCH 06/13] cmake: make sure the hiz tests link against piglitutil.

2013-10-31 Thread Kenney Phillis
Another library set that does not directly link gainst piglitutil. --- tests/hiz/CMakeLists.gl.txt |1 + 1 file changed, 1 insertion(+) diff --git a/tests/hiz/CMakeLists.gl.txt b/tests/hiz/CMakeLists.gl.txt index d1615fc..7005880 100644 --- a/tests/hiz/CMakeLists.gl.txt +++ b/tests/hiz/CMakeL

[Piglit] [PATCH 00/13] Signal Handler and GLFW framework

2013-10-31 Thread Kenney Phillis
001): Under the Hood: New Vectored Exception Handling in Windows XP http://msdn.microsoft.com/en-us/magazine/cc301714.aspx [2] GLFW - An OpenGL Library http://www.glfw.org/ Kenney Phillis (13): util: add PIGLIT_CRASH to the list of valid results. cmake: link OpenGL and OpenGL ES utility lib

[Piglit] [PATCH 09/13] tests/glx: Enable signal handler support.

2013-10-31 Thread Kenney Phillis
--- tests/glx/glx-close-display.c |3 +++ tests/glx/glx-copy-sub-buffer.c|2 ++ tests/glx/glx-destroycontext-1.c |4 +++- tests/glx/glx-destroycontext-2.c |2 ++ tests/glx/glx-dont-care-mask.c |2 ++ tests/glx/glx-fbconfi

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

2013-10-31 Thread Kenney Phillis
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 by side. --- CMakeLists.txt | 27 ++- 1 file

[Piglit] [PATCH 10/13] tests/egl: add support for signal handler.

2013-10-31 Thread Kenney Phillis
--- tests/egl/egl-create-surface.c |2 ++ tests/egl/egl-nok-swap-region.c |2 ++ tests/egl/egl-nok-texture-from-pixmap.c |2 ++ tests/egl/egl-query-surface.c |2 ++ 4 files changed, 8 insertions(+) diff --git a/tests/egl/egl-create-surface.c b/tests/egl/

[Piglit] [PATCH 01/13] util: add PIGLIT_CRASH to the list of valid results.

2013-10-31 Thread Kenney Phillis
Add Crash to the list of reports possible for programs using the piglit utility library. --- tests/util/piglit-util.c |5 + tests/util/piglit-util.h |3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/util/piglit-util.c b/tests/util/piglit-util.c index 9b7a351..

[Piglit] [PATCH 04/13] piglit-framework-gl: Add piglit signal handler.

2013-10-31 Thread Kenney Phillis
The signal handler in general is really important for platforms like windows where a program will generate some dialog automatically when running a program. --- tests/util/piglit-framework-gl.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/tests/util/piglit-framework-gl.h b/tes

[Piglit] [PATCH 08/13] piglit-framework: Add support for static glfw usage.

2013-10-31 Thread Kenney Phillis
Static glfw is to simplify platforms that do not have good support for waffle. To make use of this feature, Simply download the latest GLFW release ( for example 3.0.3 ) and follow the next steps. 1) decompress the source release. 2) rename the source release folder to glfw. 3) verify the file lay

[Piglit] [PATCH 05/13] util: Implement signal handler on windows.

2013-10-31 Thread Kenney Phillis
2013 Kenney Phillis + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, mod

[Piglit] [PATCH 12/13] cmake: Relax waffle requirement.

2013-10-31 Thread Kenney Phillis
GLFW also works on linux so allow proper fallback handling of tests. This means Waffle to GLFW to GLUT. --- CMakeLists.txt | 56 +++- 1 file changed, 27 insertions(+), 29 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3dd488f.

[Piglit] [PATCH 07/13] piglit-framework: Implement glfw support.

2013-10-31 Thread Kenney Phillis
l/piglit-framework-gl/piglit_glfw_framework.c new file mode 100644 index 000..ab2ded8 --- /dev/null +++ b/tests/util/piglit-framework-gl/piglit_glfw_framework.c @@ -0,0 +1,407 @@ +/* + * Copyright © 2013 Kenney Phillis + * + * Permission is hereby granted, free of charge, to any person obtain

[Piglit] [PATCH 7/8] piglit-util-gl-common: Add Function to clear extensions list.

2013-09-30 Thread Kenney Phillis
The default handling of Extension fall backs does not work in specific cases where the list of supported extensions changes. The list of extensions for a Core profile may be different from the same context created using a Compatibility profile. V2: applied the changes suggested by Chad to improve

[Piglit] [PATCH 8/8] util/waffle: reinitialize extensions

2013-09-30 Thread Kenney Phillis
Implements reinitialization on waffle based contexts to allow context fallbacks to work as intended. v2: applied the changes that Chad suggested. --- .../piglit-framework-gl/piglit_wfl_framework.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/util/piglit-framework-gl/piglit_w

[Piglit] [PATCH 3/8] cmake: add *.cl to the list of installed generated tests.

2013-09-30 Thread Kenney Phillis
Files with the extension ".cl" are usually used for OpenCL and this installs all .cl files that are in the generated_tests folder when either making a package or actually installing the tests on a system. --- CMakeLists.txt |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMa

[Piglit] [PATCH 4/8] cmake: ignore the "CMakeFiles" folder in generated_tests installer

2013-09-30 Thread Kenney Phillis
This is an Automatically generated file that is not used by any test and only appears during build. --- CMakeLists.txt |1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 775b25a..f064b35 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -319,6 +319,7 @@

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

2013-09-30 Thread Kenney Phillis
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(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f064b35..

[Piglit] [PATCH 2/8] cmake: add *.geom to the list of installed files.

2013-09-30 Thread Kenney Phillis
*.geom files are the shader files used for testing geometry shaders. --- CMakeLists.txt |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c86ffe5..8404d9a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -312,13 +312,13 @@ install (

[Piglit] [PATCH 6/8] config.h.in: add define for HAVE_STRNDUP

2013-09-30 Thread Kenney Phillis
This fixes compile problems on various systems where strndup can be found but the HAVE_STRNDUP define is not being set. V2: Made the changes that Petri Latvala suggested. However the exact line for the define of HAVE_STRNDUP needed to be placed next to the other function defines in config.

[Piglit] [PATCH 1/8] cmake: fix out of tree Installation and package generation.

2013-09-30 Thread Kenney Phillis
When building and installing out of source tree the generated tests are not installed. This commit fixes that. --- CMakeLists.txt |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a39d9df..c86ffe5 100644 --- a/CMakeLists.txt +++ b/CMakeLis

[Piglit] [PATCH 0/8] Various Fixes on Cmake and opengl.

2013-09-30 Thread Kenney Phillis
Cmake fix 1: Fix problems involving out of tree builds cmake fix 2: fix some missing files from installer. config.h.in: applied a slightly more correct location for the HAVE_STRNDUP define. tests/util fixes: Updated changelog from previous commit. Kenney Phillis (8): cmake: fix out of tree

[Piglit] [PATCH 1/3] tests/util: fix detection of strndup

2013-09-21 Thread Kenney Phillis
There is no guarantee that cmake will blindly pass all of the defines to the preprocessor. --- tests/util/CMakeLists.txt |5 + 1 file changed, 5 insertions(+) diff --git a/tests/util/CMakeLists.txt b/tests/util/CMakeLists.txt index 8f1420c..1b09437 100644 --- a/tests/util/CMakeLists.txt +

[Piglit] [PATCH 2/3] piglit-util-gl-common: Add Function to clear extensions list.

2013-09-21 Thread Kenney Phillis
The default handling of Extension fall backs does not work in specific cases where the list of supported extensions changes. The list of extensions for a Core profile may be different from the same context created using a Compatibility profile. --- tests/util/piglit-util-gl-common.c |8 +++

[Piglit] [PATCH 3/3] util/waffle: reinitialize extensions

2013-09-21 Thread Kenney Phillis
Implements reinitialization on waffle based contexts to allow context fallbacks to work as intended. --- .../piglit-framework-gl/piglit_wfl_framework.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/util/piglit-framework-gl/piglit_wfl_framework.c b/tests/util/piglit-framework-

[Piglit] [PATCH v2 5/5] util/waffle: reinitialize extensions

2013-08-23 Thread Kenney Phillis
When context creation fails, Inform piglit to reinitialize the list of supported extensions. --- .../piglit-framework-gl/piglit_wfl_framework.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/util/piglit-framework-gl/piglit_wfl_framework.c b/tests/util/piglit-framework-gl/pigli

[Piglit] [PATCH v2 4/5] piglit-util-gl-common: Add Function to clear extensions list.

2013-08-23 Thread Kenney Phillis
The default handling of the extensions does not allow for proper fall back of contexts to work as inteded. There is currently no guarantee that any implementations of OpenGL will have the pointer of supported extensions will remain constant after contexts change. --- tests/util/piglit-util-gl-comm

[Piglit] [PATCH v2 3/5] fbo-storage-formats:minor improvements to error detection.

2013-08-23 Thread Kenney Phillis
sometimes errors can sneak in when generating the context and interfere with the test. This clears out all errors before the actual test begins. --- tests/fbo/fbo-storage-formats.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/fbo/fbo-storage-formats.c b/tests/fbo/fbo-storage-for

[Piglit] [PATCH v2 0/5] Minor Improvements.

2013-08-23 Thread Kenney Phillis
Applied some of the Suggested improvements to the previous patch set. Kenney Phillis (5): fbo-storage-formats: Fix reporting of invalid formats. fbo-storage-formats: enable tests for OpenGl 3.0 formats. fbo-storage-formats:minor improvements to error detection. piglit-util-gl-common: Add

[Piglit] [PATCH v2 1/5] fbo-storage-formats: Fix reporting of invalid formats.

2013-08-23 Thread Kenney Phillis
Currently Invalid formats is reported from the formats data structure. This is incorrect because the invalid formats set should not use this system. --- tests/fbo/fbo-storage-formats.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fbo/fbo-storage-formats.c b/tests/fb

[Piglit] [PATCH v2 2/5] fbo-storage-formats: enable tests for OpenGl 3.0 formats.

2013-08-23 Thread Kenney Phillis
Enable the Floating point and Interformats that are introduced in the OpenGL 3.0 specification. Currently the test uses an OpenGL 3.1 Core context for Mesa based drivers, and this test should also work just fine when Compatibility contexts support Opengl 3.1 or newer. --- tests/fbo/fbo-storage-for

[Piglit] [PATCH] framework/summary.py: Fix path resolution by using relative paths.

2013-08-20 Thread Kenney Phillis
Fixes problems with path resolution when files change location. NOTE: This patch is probably not be PEP8 Compliant. --- framework/summary.py |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/framework/summary.py b/framework/summary.py index 35500bf..3929fd1 100644 ---

[Piglit] [PATCH 1/4] piglit-util-gl-common: Add Function to clear extensions list.

2013-08-20 Thread Kenney Phillis
The default handling of Extension fall backs does not work in specific cases where the list of supported extensions changes. The list of extensions for a Core profile may be different from the same context created using a Compatibility profile. --- tests/util/piglit-util-gl-common.c |8 +++

[Piglit] [PATCH 0/4] Minor Improvements

2013-08-20 Thread Kenney Phillis
A couple of minor improvements in handling OpenGL Context fallback and how to determine feature support in fbo-storage-formats. Kenney Phillis (4): piglit-util-gl-common: Add Function to clear extensions list. util/waffle: reinitialize extensions fbo-storage-formats: Fix reporting of

[Piglit] [PATCH 2/4] util/waffle: reinitialize extensions

2013-08-20 Thread Kenney Phillis
Implements reinitialization on waffle based contexts to allow context fallbacks to work as intended. --- .../piglit-framework-gl/piglit_wfl_framework.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/util/piglit-framework-gl/piglit_wfl_framework.c b/tests/util/piglit-framework-

[Piglit] [PATCH 4/4] fbo-storage-formats: enable tests for OpenGl 3.0 formats.

2013-08-20 Thread Kenney Phillis
This enabled the Floating point and Integer formats introduced in OpenGL 3.0. This currently uses an OpenGL 3.1 Core context to enable this for Mesa based drivers, however the test should work without any faults on any drivers that also support Compatibility contexts that are OpenGl 3.0 or newer. -

[Piglit] [PATCH 3/4] fbo-storage-formats: Fix reporting of invalid formats.

2013-08-20 Thread Kenney Phillis
Currently Invalid formats is reported from the formats data structure. This is incorrect because the invalid formats set should not use this system. --- tests/fbo/fbo-storage-formats.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fbo/fbo-storage-formats.c b/tests/fb

[Piglit] [PATCH 2/2] framework/core.py: fix path resolution when loading test results.

2013-04-29 Thread Kenney Phillis
This has two main improvements that can be seen. 1) Relative paths can be used in lists files. This works great since it means that simpler scripts can be used to generate the list file itself. 2) Relative paths can be specified at all stages and it will not cause the scripts to break --- framewor

[Piglit] [PATCH 1/2] piglit-run.py: Fix Path resolution

2013-04-29 Thread Kenney Phillis
Path resolution should always be a resolved from relative path to absolute path. This is to allow for distributed testing where you build a single copy of piglit and then redistribute it over a network. --- piglit-run.py |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pig

[Piglit] [PATCH 0/2] Fixes for relative paths to absolute paths.

2013-04-29 Thread Kenney Phillis
A small set of fixes that are essential for distributed testing. This is important for when you are Building piglit once and then distributing the build over a network to multiple computers for serious regression testing. Kenney Phillis (2): piglit-run.py: Fix Path resolution framework

[Piglit] [PATCH 3/3] make some parts of the piglit framework unicode aware.

2013-02-07 Thread Kenney Phillis
This fixes resume failures when paths are interpreted as unicode when the script expects ascii. --- framework/shader_test.py |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/framework/shader_test.py b/framework/shader_test.py index 03478fc..f3920f9 100755 --- a/framewor

[Piglit] [PATCH 2/3] Fix piglit resume path resolving.

2013-02-07 Thread Kenney Phillis
Fixes resolution of relative paths to absolute paths. This will help keep piglit from crashing out when resume path is not within source path. This happens regularly when using distributed testing. --- piglit-run.py |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piglit-ru

[Piglit] [PATCH 1/3] Add the shell script identifiers to the tests.

2013-02-07 Thread Kenney Phillis
This is extremely useful for distributed testing where the test results are not in the same folder as piglit is. This happens regularly when piglit is installed through packages and then ran in the user home directory. --- tests/all.tests |1 + tests/external-glslparser.tests

[Piglit] [PATCH 0/3] Minor Fixes related to distributed testing.

2013-02-07 Thread Kenney Phillis
*** BLURB HERE *** Kenney Phillis (3): Add the shell script identifiers to the tests. Fix piglit resume path resolving. make some parts of the piglit framework unicode aware. framework/shader_test.py|5 +++-- piglit-run.py |2 +- tests/all.tests

[Piglit] [PATCH] Modified tests/all.tests to exclude glx profile when running on Windows.

2012-07-08 Thread Kenney Phillis
--- tests/all.tests |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/all.tests b/tests/all.tests index 869fb03..04eb81f 100644 --- a/tests/all.tests +++ b/tests/all.tests @@ -4,6 +4,7 @@ import itertools import os import os.path as path +import platform from fr

[Piglit] [PATCH] Added test to verify EGL Header exists before checking for the egl library.

2012-07-08 Thread Kenney Phillis
--- CMakeLists.txt |3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index effa8d8..806b56f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -176,10 +176,13 @@ else (APPLE) ) endif (APPLE) +check_include_file(EGL/egl.h OPENGL_egl_HEADER) +if(O

[Piglit] [PATCH 4/4] Fixed windows behavior on these a few tests to mirror behavior on non-windows platforms.

2012-07-07 Thread Kenney Phillis
--- tests/quick-driver.tests |1 + tests/quick.tests|2 ++ tests/r300.tests |1 + tests/r500.tests |1 + tests/r600.tests |1 + 5 files changed, 6 insertions(+) diff --git a/tests/quick-driver.tests b/tests/quick-driver.tests index 73bee46..4dfd

[Piglit] [PATCH 3/4] Modified tests/all.tests to exclude glx profile when running on Windows.

2012-07-07 Thread Kenney Phillis
--- tests/all.tests |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/all.tests b/tests/all.tests index 5670478..01b914d 100644 --- a/tests/all.tests +++ b/tests/all.tests @@ -4,6 +4,7 @@ import itertools import os import os.path as path +import sys from framewo

[Piglit] [PATCH 2/4] added functionality to piglit-run.py to automatically fix incorrect key entries in test results that are broken. This is done by simply resuming the tests.

2012-07-07 Thread Kenney Phillis
--- piglit-run.py |1 + 1 file changed, 1 insertion(+) diff --git a/piglit-run.py b/piglit-run.py index e24cf2a..a3b2a09 100755 --- a/piglit-run.py +++ b/piglit-run.py @@ -186,6 +186,7 @@ def main(): # from being run again. if OptionResume: for (key, value) in

[Piglit] [PATCH 1/4] Fixed glsl test parsing so that each key entry uses the / char instead of \\.

2012-07-07 Thread Kenney Phillis
--- framework/glsl_parser_test.py |4 1 file changed, 4 insertions(+) diff --git a/framework/glsl_parser_test.py b/framework/glsl_parser_test.py index 0d97986..f346531 100755 --- a/framework/glsl_parser_test.py +++ b/framework/glsl_parser_test.py @@ -33,6 +33,7 @@ usage_message = "usage:

[Piglit] [PATCH 0/4] various windows Compatiblity fixes

2012-07-07 Thread Kenney Phillis
I noticed that there was a few issues when comparing how piglet ran on windows and other platforms. These patches improve the overall quality of the tests ran, and also allows simpler results comparisions when comparing a windows based system and a linux based system. Kenney Phillis (4): Fixed