[Piglit] [PATCH 1/6] nv_non_square_matrices: Add negative compile tests

Fabian Bieler fabianbieler at fastmail.fm
Wed Feb 26 12:13:19 PST 2014


On 2014-02-26 17:23, Rafal Mielniczuk wrote:
> ---
>   tests/all.py                                                     | 6 ++++++
>   .../compiler/missing-extension-mat2x3.vert                       | 9 +++++++++
>   .../compiler/missing-extension-mat2x4.vert                       | 9 +++++++++
>   .../compiler/missing-extension-mat3x2.vert                       | 9 +++++++++
>   .../compiler/missing-extension-mat3x4.vert                       | 9 +++++++++
>   .../compiler/missing-extension-mat4x2.vert                       | 9 +++++++++
>   .../compiler/missing-extension-mat4x3.vert                       | 9 +++++++++
>   7 files changed, 60 insertions(+)
>   create mode 100644 tests/spec/nv_non_square_matrices/compiler/missing-extension-mat2x3.vert
>   create mode 100644 tests/spec/nv_non_square_matrices/compiler/missing-extension-mat2x4.vert
>   create mode 100644 tests/spec/nv_non_square_matrices/compiler/missing-extension-mat3x2.vert
>   create mode 100644 tests/spec/nv_non_square_matrices/compiler/missing-extension-mat3x4.vert
>   create mode 100644 tests/spec/nv_non_square_matrices/compiler/missing-extension-mat4x2.vert
>   create mode 100644 tests/spec/nv_non_square_matrices/compiler/missing-extension-mat4x3.vert
>
> diff --git a/tests/all.py b/tests/all.py
> index 590c832..3ca1c24 100644
> --- a/tests/all.py
> +++ b/tests/all.py
> @@ -3043,6 +3043,12 @@ nv_conditional_render['drawpixels'] = PlainExecTest(['nv_conditional_render-draw
>   nv_conditional_render['generatemipmap'] = PlainExecTest(['nv_conditional_render-generatemipmap', '-auto'])
>   nv_conditional_render['vertex_array'] = PlainExecTest(['nv_conditional_render-vertex_array', '-auto'])
>
> +nv_non_square_matrices = Group()
> +spec['NV_non_square_matrices'] = nv_non_square_matrices
> +import_glsl_parser_tests(spec['NV_non_square_matrices'],
> +			 os.path.join(testsDir, 'spec', 'nv_non_square_matrices'),
> +			 ['compiler'])
Please don't introduce new tabs to python files. It breaks py3k 
compatibility (applies to patch 4 as well).
> +
>   oes_compressed_paletted_texture = Group()
>   spec['OES_compressed_paletted_texture'] = oes_compressed_paletted_texture
>   oes_compressed_paletted_texture['invalid formats'] = concurrent_test('arb_texture_compression-invalid-formats paletted')
> diff --git a/tests/spec/nv_non_square_matrices/compiler/missing-extension-mat2x3.vert b/tests/spec/nv_non_square_matrices/compiler/missing-extension-mat2x3.vert
> new file mode 100644
> index 0000000..56d7f06
> --- /dev/null
> +++ b/tests/spec/nv_non_square_matrices/compiler/missing-extension-mat2x3.vert
> @@ -0,0 +1,9 @@
> +// [config]
> +// expect_result: fail
> +// glsl_version: 1.00
> +// [end config]
> +#version 100
> +uniform mat2x3 u;
> +void main() {
> +    gl_Position = vec4(0.0);
> +}
> diff --git a/tests/spec/nv_non_square_matrices/compiler/missing-extension-mat2x4.vert b/tests/spec/nv_non_square_matrices/compiler/missing-extension-mat2x4.vert
> new file mode 100644
> index 0000000..7ba338a
> --- /dev/null
> +++ b/tests/spec/nv_non_square_matrices/compiler/missing-extension-mat2x4.vert
> @@ -0,0 +1,9 @@
> +// [config]
> +// expect_result: fail
> +// glsl_version: 1.00
> +// [end config]
> +#version 100
> +uniform mat2x4 u;
> +void main() {
> +    gl_Position = vec4(0.0);
> +}
> diff --git a/tests/spec/nv_non_square_matrices/compiler/missing-extension-mat3x2.vert b/tests/spec/nv_non_square_matrices/compiler/missing-extension-mat3x2.vert
> new file mode 100644
> index 0000000..7cdb044
> --- /dev/null
> +++ b/tests/spec/nv_non_square_matrices/compiler/missing-extension-mat3x2.vert
> @@ -0,0 +1,9 @@
> +// [config]
> +// expect_result: fail
> +// glsl_version: 1.00
> +// [end config]
> +#version 100
> +uniform mat3x2 u;
> +void main() {
> +    gl_Position = vec4(0.0);
> +}
> diff --git a/tests/spec/nv_non_square_matrices/compiler/missing-extension-mat3x4.vert b/tests/spec/nv_non_square_matrices/compiler/missing-extension-mat3x4.vert
> new file mode 100644
> index 0000000..8de128e
> --- /dev/null
> +++ b/tests/spec/nv_non_square_matrices/compiler/missing-extension-mat3x4.vert
> @@ -0,0 +1,9 @@
> +// [config]
> +// expect_result: fail
> +// glsl_version: 1.00
> +// [end config]
> +#version 100
> +uniform mat3x4 u;
> +void main() {
> +    gl_Position = vec4(0.0);
> +}
> diff --git a/tests/spec/nv_non_square_matrices/compiler/missing-extension-mat4x2.vert b/tests/spec/nv_non_square_matrices/compiler/missing-extension-mat4x2.vert
> new file mode 100644
> index 0000000..4f3c699
> --- /dev/null
> +++ b/tests/spec/nv_non_square_matrices/compiler/missing-extension-mat4x2.vert
> @@ -0,0 +1,9 @@
> +// [config]
> +// expect_result: fail
> +// glsl_version: 1.00
> +// [end config]
> +#version 100
> +uniform mat4x2 u;
> +void main() {
> +    gl_Position = vec4(0.0);
> +}
> diff --git a/tests/spec/nv_non_square_matrices/compiler/missing-extension-mat4x3.vert b/tests/spec/nv_non_square_matrices/compiler/missing-extension-mat4x3.vert
> new file mode 100644
> index 0000000..9de685b
> --- /dev/null
> +++ b/tests/spec/nv_non_square_matrices/compiler/missing-extension-mat4x3.vert
> @@ -0,0 +1,9 @@
> +// [config]
> +// expect_result: fail
> +// glsl_version: 1.00
> +// [end config]
> +#version 100
> +uniform mat4x3 u;
> +void main() {
> +    gl_Position = vec4(0.0);
> +}
>


More information about the Piglit mailing list