ARB_explicit_uniform_location: bump gl and glsl version requirement

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
fp-abs-01: use default window size

v2: use max of default window size, and required tests size.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
tex-skipped-unit: use default window size

Reviewed-by: José Fonseca <jfonseca@vmware.com>
pbo-readpixels-small: use default window size

Reviewed-by: José Fonseca <jfonseca@vmware.com>
depth-tex-modes-rg: fix initial window size

Use the larger of the default window size and the size required by
the test parameters.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
remove glean/tbufferobject test

Everything it tests is already covered by other piglit tests.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
ext_packed_depth_stencil: new errors test

A replacement for part of a glean test.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
ext_packed_depth_stencil: new glRead/DrawPixels test

To replace part of a glean test.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
remove glean depthstencil test

Replaced by piglit tests in previous two commits.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
util: Ensure that stdout and stderr are flushed on exceptions.

Also return the exception code as the program return code, which matches
the normal behaviour of uncaught exceptions.

Currently I see several tests failing on Windows, but with no clue
(in stdout, stderr, or exit code) as to why.  This should help.

Trivial.  Only affects Windows.

Reviewed-by: Brian Paul <brianp@vmware.com>
framework/summary/junit: Report crashes as junit errors.

Jenkins doesn't make a huge distinction between failures and errors though.

Reviewed-by: Brian Paul <brianp@vmware.com>
framework: Recognise more crashes return codes.

From what I gathered, both on Linux and Windows, uncaught
exceptions/signals lead to a negative return code.

Reviewed-by: Brian Paul <brianp@vmware.com>
util/framework/glut: Auto-detect glutInitErrorFunc support.

Should fix https://bugs.freedesktop.org/show_bug.cgi?id=79745

Tested-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
templates: add the totals to testrun_info

Add the totals to the testrun_info template, including the total number
of tests evaluated.

Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Reviewed-by: Dylan Baker <baker.dylan.c@gmail.com>
ARB_shader_bit_encoding: add a test which exercises an nvidia bug

With nvidia's 325.15 driver (at least) the GLSL compiler generates invalid
code.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
exectest.py: Return early if _run_command() hits the except block

If the except block is hit in Test._run_command(), the test has a status
of skip, but the test continues to run anyway. This is not consistent
with the way Test.check_for_skip_scenario() works (which returns early
if true). The effect of this inconsistency is that tests with a known
value still call interpret_result(). This wastes time in python
processing.

This patch causes a failure in Test._run_command() to set
self.result['result'] to 'skip' (it should be 'fail' before this). When
Test._run_command() is called by Test.run(), if self.result['result'] is
'skip' then run() will return early.

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
cmake: Build a few more tests with MSVC.

It seems at least that newer MSVC versions can compile these without
problems.

Also add comment explaining why some tests still can't be built for
future reference.

Trivial.  Only affects MSVC builds.
registry: Import gl.xml from Khronos registry

Import revision 26792 on 2014-05-22 from
(https://cvs.khronos.org/svn/repos/ogl/trunk/doc/registry/public/api/gl.xml).

I want to generate piglit-dispatch code from the official Khronos XML
rather than scraping GL headers and unmaintained *.spec files.

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
dispatch: Generate piglit-dispatch from Khronos XML

Khronos now generates its headers from XML and no longer maintains the
old, crufty *.spec files. Piglit should do the same. Otherwise,
piglit-dispatch won't be able to pick up new extension functions.

As a really really big bonus, after Piglit starts generating its
GL dispatch code from the Khronos XML, it's a small leap to start
generating EGL and GLX dispatch too.

This patch imports 'gl.xml' into a new toplevel 'registry directory, to
follow the precedent of libepoxy.

I did *not* try to redesign piglit-dispatch in this patch. To the
contrary, I attempted to keep the newly generated dispatch code to be as
similar as possible as the old generated code.

I strove to keep separate concerns in separate files. The file
registry/gl.py parsed registry/gl.xml, and file
tests/util/gen_dispatch.py consumes the parse result to generate the
code.

I hope everyone finds the rewritten gen_dispatch.py more maintainable
and eas to read.

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
util: Generate piglit_get_gl_enum_name() and friends

This patch removes files piglit-util-gl*-enum.c and instead generates
a single piglit-util-gl-enum-gen.c from the Khronos XML.

The two functions impacted are:
    piglit_get_gl_enum_name(GLenum param)
    piglit_get_prim_name(GLenum prim)

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>