tests/cogl: Migrate pipeline uniforms test

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2555>
This commit is contained in:
Jonas Ådahl 2022-08-04 19:43:48 +02:00 committed by Marge Bot
parent 63af78d049
commit 9305f8d9d8
5 changed files with 7 additions and 6 deletions

View File

@ -1,6 +1,5 @@
cogl_test_conformance_sources = [ cogl_test_conformance_sources = [
'test-conform-main.c', 'test-conform-main.c',
'test-pipeline-uniforms.c',
'test-pixel-buffer.c', 'test-pixel-buffer.c',
'test-premult.c', 'test-premult.c',
'test-snippets.c', 'test-snippets.c',

View File

@ -86,7 +86,6 @@ main (int argc, char **argv)
ADD_TEST (test_primitive, 0, 0); ADD_TEST (test_primitive, 0, 0);
ADD_TEST (test_pipeline_uniforms, 0, 0);
ADD_TEST (test_snippets, 0, 0); ADD_TEST (test_snippets, 0, 0);
ADD_TEST (test_custom_attributes, 0, 0); ADD_TEST (test_custom_attributes, 0, 0);

View File

@ -19,7 +19,6 @@ void test_read_texture_formats (void);
void test_write_texture_formats (void); void test_write_texture_formats (void);
void test_alpha_textures (void); void test_alpha_textures (void);
void test_primitive (void); void test_primitive (void);
void test_pipeline_uniforms (void);
void test_snippets (void); void test_snippets (void);
void test_custom_attributes (void); void test_custom_attributes (void);
void test_offscreen (void); void test_offscreen (void);

View File

@ -7,6 +7,7 @@ cogl_tests = [
'test-backface-culling', 'test-backface-culling',
'test-just-vertex-shader', 'test-just-vertex-shader',
'test-pipeline-user-matrix', 'test-pipeline-user-matrix',
'test-pipeline-uniforms',
] ]
cogl_test_conformance_includes = [ cogl_test_conformance_includes = [

View File

@ -2,8 +2,7 @@
#include <string.h> #include <string.h>
#include "test-declarations.h" #include "tests/cogl-test-utils.h"
#include "test-utils.h"
#define LONG_ARRAY_SIZE 128 #define LONG_ARRAY_SIZE 128
@ -381,7 +380,7 @@ validate_long_pipeline_result (void)
check_pos (15, 0xff0000ff); check_pos (15, 0xff0000ff);
} }
void static void
test_pipeline_uniforms (void) test_pipeline_uniforms (void)
{ {
TestState state; TestState state;
@ -414,3 +413,7 @@ test_pipeline_uniforms (void)
if (cogl_test_verbose ()) if (cogl_test_verbose ())
g_print ("OK\n"); g_print ("OK\n");
} }
COGL_TEST_SUITE (
g_test_add_func ("/pipeline/uniforms", test_pipeline_uniforms);
)