[mutter] tests/cogl: Migrate pipeline uniforms test



commit 9305f8d9d8ed778a5079d81f3c6b52ff3106fb26
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Thu Aug 4 19:43:48 2022 +0200

    tests/cogl: Migrate pipeline uniforms test
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2555>

 cogl/tests/conform/meson.build                                  | 1 -
 cogl/tests/conform/test-conform-main.c                          | 1 -
 cogl/tests/conform/test-declarations.h                          | 1 -
 src/tests/cogl/conform/meson.build                              | 1 +
 {cogl/tests => src/tests/cogl}/conform/test-pipeline-uniforms.c | 9 ++++++---
 5 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/cogl/tests/conform/meson.build b/cogl/tests/conform/meson.build
index 08f685d66f..40d122fcca 100644
--- a/cogl/tests/conform/meson.build
+++ b/cogl/tests/conform/meson.build
@@ -1,6 +1,5 @@
 cogl_test_conformance_sources = [
   'test-conform-main.c',
-  'test-pipeline-uniforms.c',
   'test-pixel-buffer.c',
   'test-premult.c',
   'test-snippets.c',
diff --git a/cogl/tests/conform/test-conform-main.c b/cogl/tests/conform/test-conform-main.c
index 6a7ec44f46..a19b9d873a 100644
--- a/cogl/tests/conform/test-conform-main.c
+++ b/cogl/tests/conform/test-conform-main.c
@@ -86,7 +86,6 @@ main (int argc, char **argv)
 
   ADD_TEST (test_primitive, 0, 0);
 
-  ADD_TEST (test_pipeline_uniforms, 0, 0);
   ADD_TEST (test_snippets, 0, 0);
   ADD_TEST (test_custom_attributes, 0, 0);
 
diff --git a/cogl/tests/conform/test-declarations.h b/cogl/tests/conform/test-declarations.h
index 54006afa1b..fefc553c45 100644
--- a/cogl/tests/conform/test-declarations.h
+++ b/cogl/tests/conform/test-declarations.h
@@ -19,7 +19,6 @@ void test_read_texture_formats (void);
 void test_write_texture_formats (void);
 void test_alpha_textures (void);
 void test_primitive (void);
-void test_pipeline_uniforms (void);
 void test_snippets (void);
 void test_custom_attributes (void);
 void test_offscreen (void);
diff --git a/src/tests/cogl/conform/meson.build b/src/tests/cogl/conform/meson.build
index a6d365d90f..be9c94e7e4 100644
--- a/src/tests/cogl/conform/meson.build
+++ b/src/tests/cogl/conform/meson.build
@@ -7,6 +7,7 @@ cogl_tests = [
   'test-backface-culling',
   'test-just-vertex-shader',
   'test-pipeline-user-matrix',
+  'test-pipeline-uniforms',
 ]
 
 cogl_test_conformance_includes = [
diff --git a/cogl/tests/conform/test-pipeline-uniforms.c b/src/tests/cogl/conform/test-pipeline-uniforms.c
similarity index 98%
rename from cogl/tests/conform/test-pipeline-uniforms.c
rename to src/tests/cogl/conform/test-pipeline-uniforms.c
index 299985fecb..ea2950e485 100644
--- a/cogl/tests/conform/test-pipeline-uniforms.c
+++ b/src/tests/cogl/conform/test-pipeline-uniforms.c
@@ -2,8 +2,7 @@
 
 #include <string.h>
 
-#include "test-declarations.h"
-#include "test-utils.h"
+#include "tests/cogl-test-utils.h"
 
 #define LONG_ARRAY_SIZE 128
 
@@ -381,7 +380,7 @@ validate_long_pipeline_result (void)
   check_pos (15, 0xff0000ff);
 }
 
-void
+static void
 test_pipeline_uniforms (void)
 {
   TestState state;
@@ -414,3 +413,7 @@ test_pipeline_uniforms (void)
   if (cogl_test_verbose ())
     g_print ("OK\n");
 }
+
+COGL_TEST_SUITE (
+  g_test_add_func ("/pipeline/uniforms", test_pipeline_uniforms);
+)


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