arb_draw_indirect: add test for api errors

This initial test covers the new buffer binding point and expected API errors only;
no successful Draw*Indirect calls are made.

Future tests will exercise positive cases.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
arb_draw_indirect: add new test for glDrawArraysIndirect

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
arb_draw_indirect: add test for DrawElementsIndirect

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
arb_draw_indirect: add test for DrawArraysIndirect with base instance

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
arb_draw_indirect: add test for DrawElementsIndirect with base instance

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
arb_draw_indirect: add test for glDrawElementsIndirect with primitive restart

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
arb_draw_indirect: add ugly primitive restart case

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
arb_draw_indirect: add instances test

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
arb_texture_view: add test for glCopyTexSubImage with MinLayer

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Jon Ashburn <jon@lunarg.com>
arb_texture_view: Move declarations to beginning of block.

Should fix MSVC build.

Trivial.
util/egl: Fix error message

Add missing newline to error message in piglit_egl_bind_api().

Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
getteximage-targets: Refactor and cleanup with generalized texture targets

Reviewed-by: Chia-I Wu <olv@lunarg.com>
getteximage-targets: Add read texture image into PBO case for each target

Reviewed-by: Chia-I Wu <olv@lunarg.com>
Replace end_config with 'end config' in glsl parser tests

The example glsl parser test doesn't list end_config as acceptable, and
there are only 5 tests using end_config, so it makes sense to just fix
those tests rather than generating slower more complicated regex for
handling end_config.

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
shader_tests_tests.py: Adds some tests for the shader_test module

This adds some additional tests for ShaderTest behavior. Some of these
tests fail because of dumb implementation details.

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
framework/shader_test.py: Remove standalone capability

Shader_test has a bizarre capability to be run as a standalone script as
well as be used as a module. This was probably useful when developing
the original shader_test implementation, but at this point it's unused
code just waiting to bit-rot adding needless complexity

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
framework/shader_test.py: simplify ShaderTest

This patch almost completely reworks ShaderTest. It was originally much
more complicated than was necessary, this code should be much easier to
work with, and removes some quirks. One of those was that ShaderTest
inherited from PlainExecTest, but used ExecTest's __init__ method, which
has implications for changing either of those classes.

v2: - remove shader_test_tests. This only had an initializer test, and
      that no longer applies since ShaderTest is now a function
v3: - Don't remove shader_test_tests
    - Keep ShaderTest as a class rather than function
    - make looping over test files more efficient
    - make errors more specific
    - make tests more precise

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
Adds some tests for glsl_parser_tests.py

These tests model future behavior rather than current behavior, some of
them pass, others fail.

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
glsl_parser_test.py: Remove standalone functionality.

This removes the standalone run functionality from glsl_parser_test.
Like shader_test this was probably useful for testing while in
development, but at this point it's just dead code.

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

This vastly simplifies the way that GLSLParserTest works. This
simplification has a couple of advantages. First, we call
PlainExecTest's __init__ rather than ExecTest's __init__, which is good
OO practice.

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