[Piglit] [PATCH 8/9] tests/fbo-storage-formats: enumerate subtests
Dylan Baker
dylan at pnwbakers.com
Sat Jan 20 00:26:03 UTC 2018
---
tests/fbo/fbo-storage-formats.c | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/tests/fbo/fbo-storage-formats.c b/tests/fbo/fbo-storage-formats.c
index 4db990d..a11335b 100644
--- a/tests/fbo/fbo-storage-formats.c
+++ b/tests/fbo/fbo-storage-formats.c
@@ -243,9 +243,31 @@ piglit_display(void)
}
+static void
+enumerate_subtests(void)
+{
+ static int len = ARRAY_SIZE(formats) + ARRAY_SIZE(invalid_formats);
+ const char* names[64];
+
+ int t = 0;
+ for (int i = 0; i < ARRAY_SIZE(formats); i++) {
+ names[t] = piglit_get_gl_enum_name(formats[i].format);
+ ++t;
+ }
+ for (int i = 0; i < ARRAY_SIZE(invalid_formats); i++) {
+ names[t] = piglit_get_gl_enum_name(invalid_formats[i]);
+ ++t;
+ }
+
+ piglit_enumerate_subtest_list(len, names);
+}
+
+
void
piglit_init(int argc, char**argv)
{
+ enumerate_subtests();
+
piglit_require_extension("GL_EXT_framebuffer_object");
have_extension[0] = GL_TRUE;
--
git-series 0.9.1
More information about the Piglit
mailing list