arb-shader-clock: add some basic tests

Submitted by Emil Velikov on Oct. 20, 2015, 5:18 p.m.

Details

Message ID 1445361504-27285-1-git-send-email-emil.l.velikov@gmail.com
State New
Headers show

Not browsing as part of any series.

Commit Message

Emil Velikov Oct. 20, 2015, 5:18 p.m.
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
---

My glsl is a bit rusty, and the glsl_version is rather random :-]
Open to suggestions and recommendations though.

-Emil

 tests/spec/arb_shader_clock/linker/sanity.frag | 16 ++++++++++++++++
 tests/spec/arb_shader_clock/linker/sanity.vert | 16 ++++++++++++++++
 2 files changed, 32 insertions(+)
 create mode 100644 tests/spec/arb_shader_clock/linker/sanity.frag
 create mode 100644 tests/spec/arb_shader_clock/linker/sanity.vert

Patch hide | download patch | download mbox

diff --git a/tests/spec/arb_shader_clock/linker/sanity.frag b/tests/spec/arb_shader_clock/linker/sanity.frag
new file mode 100644
index 0000000..07f00e5
--- /dev/null
+++ b/tests/spec/arb_shader_clock/linker/sanity.frag
@@ -0,0 +1,16 @@ 
+// [config]
+// expect_result: pass
+// glsl_version: 1.30
+// require_extensions: GL_ARB_shader_clock
+// check_link: true
+// [end config]
+
+#version 130
+#extension GL_ARB_shader_clock: require
+
+out uvec2 color;
+
+void main()
+{
+        color = clock2x32ARB();
+}
diff --git a/tests/spec/arb_shader_clock/linker/sanity.vert b/tests/spec/arb_shader_clock/linker/sanity.vert
new file mode 100644
index 0000000..3d1d673
--- /dev/null
+++ b/tests/spec/arb_shader_clock/linker/sanity.vert
@@ -0,0 +1,16 @@ 
+// [config]
+// expect_result: pass
+// glsl_version: 1.30
+// require_extensions: GL_ARB_shader_clock
+// check_link: true
+// [end config]
+
+#version 130
+#extension GL_ARB_shader_clock: require
+
+out uvec2 x;
+
+void main() {
+        gl_Position = vec4(0.0);
+        x = clock2x32ARB();
+}