1
0
Fork 0

cogl/tests: Remove a few defunct 'test requirements'

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2555>
This commit is contained in:
Jonas Ådahl 2022-08-04 19:32:52 +02:00 committed by Marge Bot
parent 3839fb49cb
commit 66004d82c7
3 changed files with 13 additions and 24 deletions

View file

@ -155,7 +155,7 @@ create_pipelines (CoglPipeline **pipelines,
} }
UNIT_TEST (check_pipeline_pruning, UNIT_TEST (check_pipeline_pruning,
TEST_REQUIREMENT_GLSL, /* requirements */ 0, /* requirements */
0 /* no failure cases */) 0 /* no failure cases */)
{ {
CoglPipeline *pipelines[18]; CoglPipeline *pipelines[18];

View file

@ -32,15 +32,9 @@ typedef enum _TestFlags
{ {
TEST_KNOWN_FAILURE = 1<<0, TEST_KNOWN_FAILURE = 1<<0,
TEST_REQUIREMENT_GL = 1<<1, TEST_REQUIREMENT_GL = 1<<1,
TEST_REQUIREMENT_NPOT = 1<<2,
TEST_REQUIREMENT_TEXTURE_RECTANGLE = 1<<4,
TEST_REQUIREMENT_TEXTURE_RG = 1<<5, TEST_REQUIREMENT_TEXTURE_RG = 1<<5,
TEST_REQUIREMENT_POINT_SPRITE = 1<<6,
TEST_REQUIREMENT_MAP_WRITE = 1<<8, TEST_REQUIREMENT_MAP_WRITE = 1<<8,
TEST_REQUIREMENT_GLSL = 1<<9,
TEST_REQUIREMENT_OFFSCREEN = 1<<10,
TEST_REQUIREMENT_FENCE = 1<<11, TEST_REQUIREMENT_FENCE = 1<<11,
TEST_REQUIREMENT_PER_VERTEX_POINT_SIZE = 1<<12
} TestFlags; } TestFlags;
/** /**

View file

@ -62,7 +62,7 @@ main (int argc, char **argv)
ADD_TEST (test_pipeline_user_matrix, 0, 0); ADD_TEST (test_pipeline_user_matrix, 0, 0);
ADD_TEST (test_premult, 0, 0); ADD_TEST (test_premult, 0, 0);
UNPORTED_TEST (test_readpixels); UNPORTED_TEST (test_readpixels);
ADD_TEST (test_backface_culling, 0, TEST_REQUIREMENT_NPOT); ADD_TEST (test_backface_culling, 0, 0);
ADD_TEST (test_layer_remove, 0, 0); ADD_TEST (test_layer_remove, 0, 0);
ADD_TEST (test_sparse_pipeline, 0, 0); ADD_TEST (test_sparse_pipeline, 0, 0);
@ -88,33 +88,28 @@ main (int argc, char **argv)
ADD_TEST (test_primitive, 0, 0); ADD_TEST (test_primitive, 0, 0);
ADD_TEST (test_just_vertex_shader, TEST_REQUIREMENT_GLSL, 0); ADD_TEST (test_just_vertex_shader, 0, 0);
ADD_TEST (test_pipeline_uniforms, TEST_REQUIREMENT_GLSL, 0); ADD_TEST (test_pipeline_uniforms, 0, 0);
ADD_TEST (test_snippets, TEST_REQUIREMENT_GLSL, 0); ADD_TEST (test_snippets, 0, 0);
ADD_TEST (test_custom_attributes, TEST_REQUIREMENT_GLSL, 0); ADD_TEST (test_custom_attributes, 0, 0);
ADD_TEST (test_offscreen, 0, 0); ADD_TEST (test_offscreen, 0, 0);
ADD_TEST (test_journal_unref_flush, 0, 0); ADD_TEST (test_journal_unref_flush, 0, 0);
ADD_TEST (test_framebuffer_get_bits, ADD_TEST (test_framebuffer_get_bits,
TEST_REQUIREMENT_OFFSCREEN | TEST_REQUIREMENT_GL, TEST_REQUIREMENT_GL,
0); 0);
ADD_TEST (test_point_size, 0, 0); ADD_TEST (test_point_size, 0, 0);
ADD_TEST (test_point_size_attribute, ADD_TEST (test_point_size_attribute,
TEST_REQUIREMENT_PER_VERTEX_POINT_SIZE, 0); 0, 0);
ADD_TEST (test_point_size_attribute_snippet, ADD_TEST (test_point_size_attribute_snippet,
TEST_REQUIREMENT_PER_VERTEX_POINT_SIZE | 0, 0);
TEST_REQUIREMENT_GLSL, 0);
ADD_TEST (test_point_sprite, ADD_TEST (test_point_sprite,
TEST_REQUIREMENT_POINT_SPRITE, 0, 0);
0);
ADD_TEST (test_point_sprite_orientation, ADD_TEST (test_point_sprite_orientation,
TEST_REQUIREMENT_POINT_SPRITE, 0, TEST_KNOWN_FAILURE);
TEST_KNOWN_FAILURE);
ADD_TEST (test_point_sprite_glsl, ADD_TEST (test_point_sprite_glsl,
TEST_REQUIREMENT_POINT_SPRITE | 0, 0);
TEST_REQUIREMENT_GLSL,
0);
ADD_TEST (test_alpha_test, 0, 0); ADD_TEST (test_alpha_test, 0, 0);
@ -125,7 +120,7 @@ main (int argc, char **argv)
ADD_TEST (test_copy_replace_texture, 0, 0); ADD_TEST (test_copy_replace_texture, 0, 0);
ADD_TEST (test_pipeline_cache_unrefs_texture, 0, 0); ADD_TEST (test_pipeline_cache_unrefs_texture, 0, 0);
ADD_TEST (test_pipeline_shader_state, TEST_REQUIREMENT_GLSL, 0); ADD_TEST (test_pipeline_shader_state, 0, 0);
UNPORTED_TEST (test_viewport); UNPORTED_TEST (test_viewport);