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>
framework: Make core side-effects a function

Currently when core is imported as a side effect the environment
variables PIGLIT_SOURCE_DIR and MEAA_DEBUG are altered. Doing this as a
side effect is not good programming and creates lots of places for
piglit to fail in odd ways. This patch turns them into an explicit
function, and calls them at the start of all piglit commands

v2: - Add this patch, it's a bug fix for running piglit out of tree

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
framework: Split code out of framework.core

This splits results code out of core into its own module. This makes the
code cleaner and easier to understand, and is groundwork for coming
patches.
results.py: Replace JSONEncoder subclass with default method

Both methods are equally viable solution when using the builtin json
module, but using defaults is superior when using simplejson (a C based
implementation of the json module providing an identical interface but
vastly better performance) which can be used with piglit if it's
installed.

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
results.py: Modernize some things

Use super() instead of an explicit call to the parent class in one case,
and make all classes descend from object (make them new-style classes)

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
results.py: Cleanup pylint warnings

These are mostly from one of two sources:
1. overriding builtin names
2. pep8 compliance issues

A couple of the other errors:
- an unused keyword argument
- extra grouping parens

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
results.py: Simplify TestrunResult.write()

This simplifies TestrunResult.write() to use a generator expression.
This method isn't currently used, but it will be useful in a patch later
in this series.

This also adds a testcase for this function to ensure that what it
writes is equivalent to what it reads.

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
framework: consolidate boilerplate in JSNOWriter class

This moves all of the code for writing the name, the options, etc out of
run and resume and into a single method of JSONWriter. This should
reduce errors, code duplication, and help abstract a lot of problems
with future changes to the json away.

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>