[waffle] [PATCH 7/7] tests/gl_basic_test: Support platform surfaceless_egl
Chad Versace
chadversary at chromium.org
Tue Oct 18 17:33:05 UTC 2016
Run with `bin/gl_basic_test --platform=surfaceless_egl`.
All the tests fail! The rgba pixels returned by glReadPixels are
black (0x0, 0x0, 0x0, 0xff), but the test expects magenta (0xff, 0x0,
0xff, 0xff). I don't know why.
Cc: Gurchetan Singh <gurchetansingh at chromium.org>
Cc: Haixia Shi <hshi at chromium.org>
---
tests/functional/gl_basic_test.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/tests/functional/gl_basic_test.c b/tests/functional/gl_basic_test.c
index 4a90dfd..c3c7774 100644
--- a/tests/functional/gl_basic_test.c
+++ b/tests/functional/gl_basic_test.c
@@ -703,6 +703,17 @@ CREATE_TESTSUITE(WAFFLE_PLATFORM_GLX, glx)
#endif // WAFFLE_HAS_GLX
+#ifdef WAFFLE_HAS_SURFACELESS_EGL
+
+#define unit_test_make(name) \
+ cmocka_unit_test_setup_teardown(name, setup_surfaceless_egl, gl_basic_fini)
+
+CREATE_TESTSUITE(WAFFLE_PLATFORM_SURFACELESS_EGL, surfaceless_egl)
+
+#undef unit_test_make
+
+#endif // WAFFLE_HAS_GBM
+
#ifdef WAFFLE_HAS_WAYLAND
#define unit_test_make(name) \
@@ -819,6 +830,8 @@ static const struct enum_map platform_map[] = {
{WAFFLE_PLATFORM_WAYLAND, "wayland" },
{WAFFLE_PLATFORM_WGL, "wgl" },
{WAFFLE_PLATFORM_X11_EGL, "x11_egl" },
+ {WAFFLE_PLATFORM_SURFACELESS_EGL, "surfaceless_egl" },
+ {WAFFLE_PLATFORM_SURFACELESS_EGL, "sl" },
{0, 0 },
};
@@ -923,6 +936,10 @@ main(int argc, char *argv[])
case WAFFLE_PLATFORM_GLX:
return testsuite_glx();
#endif
+#ifdef WAFFLE_HAS_SURFACELESS_EGL
+ case WAFFLE_PLATFORM_SURFACELESS_EGL:
+ return testsuite_surfaceless_egl();
+#endif
#ifdef WAFFLE_HAS_WAYLAND
case WAFFLE_PLATFORM_WAYLAND:
return testsuite_wayland();
--
2.10.0
More information about the waffle
mailing list