summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChad Versace <chad.versace@linux.intel.com>2012-10-27 13:48:09 -0700
committerChad Versace <chad.versace@linux.intel.com>2012-10-29 09:19:38 -0700
commit163675279dd87ebe65b05bb9503e9693a6d61591 (patch)
tree7f48dd50341af5d84f54a1cd3ea06a466d8fbe33 /tests
parentc2268a303f365b3f40e7e84edf3a0f10cdbecbf4 (diff)
tests/gl_basic: Check that CGL does not support ES1 and ES2
Add tests: gl_basic.cgl_gles1_unsupported gl_basic.cgl_gles2_unsupported Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/functional/gl_basic_test.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/functional/gl_basic_test.c b/tests/functional/gl_basic_test.c
index fbb174a..df42232 100644
--- a/tests/functional/gl_basic_test.c
+++ b/tests/functional/gl_basic_test.c
@@ -265,6 +265,20 @@ TEST(gl_basic, cgl_init)
gl_basic_init(WAFFLE_PLATFORM_CGL);
}
+TEST(gl_basic, cgl_gles1_unsupported)
+{
+ gl_basic_draw(WAFFLE_CONTEXT_OPENGL_ES1,
+ 0 /*alpha*/,
+ true /*expect_config_unsupported*/);
+}
+
+TEST(gl_basic, cgl_gles2_unsupported)
+{
+ gl_basic_draw(WAFFLE_CONTEXT_OPENGL_ES2,
+ 0 /*alpha*/,
+ true /*expect_config_unsupported*/);
+}
+
TEST(gl_basic, cgl_gl_rgb)
{
gl_basic_draw(WAFFLE_CONTEXT_OPENGL,
@@ -283,6 +297,10 @@ static void
testsuite_cgl(void)
{
TEST_RUN(gl_basic, cgl_init);
+
+ TEST_RUN(gl_basic, cgl_gles1_unsupported);
+ TEST_RUN(gl_basic, cgl_gles2_unsupported);
+
TEST_RUN(gl_basic, cgl_gl_rgb);
TEST_RUN(gl_basic, cgl_gl_rgba);
}