[v2,1/6] nv_non_square_matrices: Add negative compile tests

Submitted by Rafal Mielniczuk on Feb. 27, 2014, 2:02 p.m.

Details

Message ID 1393509748-12864-2-git-send-email-rafal.mielniczuk2@gmail.com
State New
Headers show

Not browsing as part of any series.

Commit Message

Rafal Mielniczuk Feb. 27, 2014, 2:02 p.m.
v2: - Convert tabs to spaces in tests/all.py

Signed-off-by: Rafal Mielniczuk <rafal.mielniczuk2@gmail.com>
---
 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

Patch hide | download patch | download mbox

diff --git a/tests/all.py b/tests/all.py
index 590c832..33606ec 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'])
+
 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);
+}