tests/cogl: Migrate blend test

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2555>
This commit is contained in:
Jonas Ådahl 2022-08-04 19:10:53 +02:00 committed by Marge Bot
parent 5e92500a9a
commit 67a9226e92
5 changed files with 6 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-blend.c',
'test-depth-test.c', 'test-depth-test.c',
'test-color-hsl.c', 'test-color-hsl.c',
'test-backface-culling.c', 'test-backface-culling.c',

View File

@ -60,7 +60,6 @@ main (int argc, char **argv)
UNPORTED_TEST (test_fixed); UNPORTED_TEST (test_fixed);
UNPORTED_TEST (test_materials); UNPORTED_TEST (test_materials);
ADD_TEST (test_pipeline_user_matrix, 0, 0); ADD_TEST (test_pipeline_user_matrix, 0, 0);
ADD_TEST (test_blend, 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_depth_test, 0, 0); ADD_TEST (test_depth_test, 0, 0);

View File

@ -2,7 +2,6 @@
#define COGL_TEST_DECLARATIONS_H #define COGL_TEST_DECLARATIONS_H
void test_pipeline_user_matrix (void); void test_pipeline_user_matrix (void);
void test_blend (void);
void test_premult (void); void test_premult (void);
void test_path (void); void test_path (void);
void test_path_clip (void); void test_path_clip (void);

View File

@ -1,6 +1,7 @@
cogl_tests = [ cogl_tests = [
'test-atlas-migration', 'test-atlas-migration',
'test-blend-strings', 'test-blend-strings',
'test-blend',
] ]
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"
static void static void
paint (void) paint (void)
@ -51,7 +50,7 @@ paint (void)
0x80808080); 0x80808080);
} }
void static void
test_blend (void) test_blend (void)
{ {
cogl_framebuffer_orthographic (test_fb, 0, 0, cogl_framebuffer_orthographic (test_fb, 0, 0,
@ -63,3 +62,6 @@ test_blend (void)
paint (); paint ();
} }
COGL_TEST_SUITE (
g_test_add_func ("/blend", test_blend);
)