[mutter] cogl/tests: Remove a few defunct 'test requirements'



commit 66004d82c7a6cc79cdd0d45310b267f8e422b7a4
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Thu Aug 4 19:32:52 2022 +0200

    cogl/tests: Remove a few defunct 'test requirements'
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2555>

 cogl/cogl/cogl-pipeline-cache.c        |  2 +-
 cogl/test-fixtures/test-utils.h        |  6 ------
 cogl/tests/conform/test-conform-main.c | 29 ++++++++++++-----------------
 3 files changed, 13 insertions(+), 24 deletions(-)
---
diff --git a/cogl/cogl/cogl-pipeline-cache.c b/cogl/cogl/cogl-pipeline-cache.c
index 6bfc37732a..a8e3b8a19e 100644
--- a/cogl/cogl/cogl-pipeline-cache.c
+++ b/cogl/cogl/cogl-pipeline-cache.c
@@ -155,7 +155,7 @@ create_pipelines (CoglPipeline **pipelines,
 }
 
 UNIT_TEST (check_pipeline_pruning,
-           TEST_REQUIREMENT_GLSL, /* requirements */
+           0, /* requirements */
            0 /* no failure cases */)
 {
   CoglPipeline *pipelines[18];
diff --git a/cogl/test-fixtures/test-utils.h b/cogl/test-fixtures/test-utils.h
index 55cb70fe28..37154f9e3c 100644
--- a/cogl/test-fixtures/test-utils.h
+++ b/cogl/test-fixtures/test-utils.h
@@ -32,15 +32,9 @@ typedef enum _TestFlags
 {
   TEST_KNOWN_FAILURE = 1<<0,
   TEST_REQUIREMENT_GL = 1<<1,
-  TEST_REQUIREMENT_NPOT = 1<<2,
-  TEST_REQUIREMENT_TEXTURE_RECTANGLE = 1<<4,
   TEST_REQUIREMENT_TEXTURE_RG = 1<<5,
-  TEST_REQUIREMENT_POINT_SPRITE = 1<<6,
   TEST_REQUIREMENT_MAP_WRITE = 1<<8,
-  TEST_REQUIREMENT_GLSL = 1<<9,
-  TEST_REQUIREMENT_OFFSCREEN = 1<<10,
   TEST_REQUIREMENT_FENCE = 1<<11,
-  TEST_REQUIREMENT_PER_VERTEX_POINT_SIZE = 1<<12
 } TestFlags;
 
  /**
diff --git a/cogl/tests/conform/test-conform-main.c b/cogl/tests/conform/test-conform-main.c
index 277e246bd3..9dfffa5e23 100644
--- a/cogl/tests/conform/test-conform-main.c
+++ b/cogl/tests/conform/test-conform-main.c
@@ -62,7 +62,7 @@ main (int argc, char **argv)
   ADD_TEST (test_pipeline_user_matrix, 0, 0);
   ADD_TEST (test_premult, 0, 0);
   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_sparse_pipeline, 0, 0);
@@ -88,33 +88,28 @@ main (int argc, char **argv)
 
   ADD_TEST (test_primitive, 0, 0);
 
-  ADD_TEST (test_just_vertex_shader, TEST_REQUIREMENT_GLSL, 0);
-  ADD_TEST (test_pipeline_uniforms, TEST_REQUIREMENT_GLSL, 0);
-  ADD_TEST (test_snippets, TEST_REQUIREMENT_GLSL, 0);
-  ADD_TEST (test_custom_attributes, TEST_REQUIREMENT_GLSL, 0);
+  ADD_TEST (test_just_vertex_shader, 0, 0);
+  ADD_TEST (test_pipeline_uniforms, 0, 0);
+  ADD_TEST (test_snippets, 0, 0);
+  ADD_TEST (test_custom_attributes, 0, 0);
 
   ADD_TEST (test_offscreen, 0, 0);
   ADD_TEST (test_journal_unref_flush, 0, 0);
   ADD_TEST (test_framebuffer_get_bits,
-            TEST_REQUIREMENT_OFFSCREEN | TEST_REQUIREMENT_GL,
+            TEST_REQUIREMENT_GL,
             0);
 
   ADD_TEST (test_point_size, 0, 0);
   ADD_TEST (test_point_size_attribute,
-            TEST_REQUIREMENT_PER_VERTEX_POINT_SIZE, 0);
+            0, 0);
   ADD_TEST (test_point_size_attribute_snippet,
-            TEST_REQUIREMENT_PER_VERTEX_POINT_SIZE |
-            TEST_REQUIREMENT_GLSL, 0);
+            0, 0);
   ADD_TEST (test_point_sprite,
-            TEST_REQUIREMENT_POINT_SPRITE,
-            0);
+            0, 0);
   ADD_TEST (test_point_sprite_orientation,
-            TEST_REQUIREMENT_POINT_SPRITE,
-            TEST_KNOWN_FAILURE);
+            0, TEST_KNOWN_FAILURE);
   ADD_TEST (test_point_sprite_glsl,
-            TEST_REQUIREMENT_POINT_SPRITE |
-            TEST_REQUIREMENT_GLSL,
-            0);
+            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_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);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]