framework/exectest.py: Fix a few pylint warnings

This removes some unreachable code, adds an name definition to the Test
constructor, and comments a bare except. There are only a couple of
cases where a bare except is appropriate, most of the time it is a
problem, but we are using one the few cases where it is okay, we're
logging all exceptions to a file.

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
framework/exectest.py: Use __slots__ to limit memory consumption

This uses python's __slots__ attribute on Test. This limits the
attributes of the class to exclusively those defined by the __slots__
attribute. This saves memory since python doesn't need to allocate
additional memory for new attributes that might be added.

It is perfectly valid to extend this in a subclass by setting __slots__,
that list is appended to the lists in the parent classes, so only new
names need to be added.

This cut the memory usage of loading tests.quick (and only loading) on
my system from ~32M to ~24M.

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
gleantest.py: simplify interpret_result()

First, this replaces str.find() with 'if x in str', this is simpler and
easier to read, and unlike find(), short-circuits on the first True.
Second, it removes the check for skip. This isn't needed since if the
test is skipped it will return before reaching the interpret_result()
call, making this dead code.

v2: - split this change out of the next patch

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
gen_builtin_packing_tests.py: Use lowercase extension name in dir

This makes generated tests consistent with static tests

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
gen_builtin_uniform_tests.py: lowercase extensions names in dir name

This makes generated_tests/ consistent in naming with tests/

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
gen_constant_array_size_tests.py: lowercase extension names in dir

This makes generated_tests/ consistent in naming with tests/

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
gen_shader_bit_encoding_tests.py: lowercase extension name in dir

This makes generated_tests/ consistent in naming with tests/

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
gen_texture_lod_tests: lower case api in dir name

This makes generated_tests/ consistent in naming with tests/

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
gen_texture_query_lod_tests: lowercase api in dir name

This makes generated_tests/ consistent in naming with tests/

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
gen_texture_lod_tests.py: Give the tests insightful names

This is a trivial change that renames generated tests from 01, 02, 03...
to names that express what is actually being tested. This information
was already available to the function generating the tests, it just
wasn't used.

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
shader_runner: fix dmat parsing

this just fixes the dmat parsing so it gets the correct values
for uniforms.

Signed-off-by: Dave Airlie <airlied@redhat.com>
tests: fix require extension usage -- prepend GL/GLX in missing places

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
gen_texure_lod_tests.py: Fix python 2.6 compatablility

In python 2.6 classes created by the collections.namedtuple factory do
not have a __dict__ attribute. This means that calling
**<object>.__dict__ to fill a str.format() is impossible, and the
arguments must be spelled out verbosely.

bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=79092
Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
Tested-by: Vinson Lee <vlee@freedesktop.org>
README,cmake: Update Waffle's website url

Waffle now lives at http://www.waffle-gl.org.

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
vertexid: use default window size for gl_VertexID tests

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
glslparsertest: s/vesion/version/
arb_instanced_arrays: fix typo: s/istnanced/instanced/
arb_sac, arb_sso: Fix spelling of tessellation

The extension checks wouldn't have worked here; but may as well fix the
cases in output too.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
arb_gpu_shader5: add a very basic gl_SampleMaskIn test

Just ensures that without any MS set up, the coverage mask is 1.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
arb_vertex_array_bgra: Add tests for glGet*(GL_*_ARRAY_SIZE) == GL_BGRA.

Mesa didn't get this quite right, causing problems to ApiTrace --
https://github.com/apitrace/apitrace/issues/261 .

Reviewed-by: Brian Paul <brianp@vmware.com>