tests/cogl: Migrate premult test

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

View File

@ -1,6 +1,5 @@
cogl_test_conformance_sources = [
'test-conform-main.c',
'test-premult.c',
'test-snippets.c',
'test-wrap-modes.c',
'test-sub-texture.c',

View File

@ -59,7 +59,6 @@ main (int argc, char **argv)
UNPORTED_TEST (test_object);
UNPORTED_TEST (test_fixed);
UNPORTED_TEST (test_materials);
ADD_TEST (test_premult, 0, 0);
UNPORTED_TEST (test_readpixels);
ADD_TEST (test_layer_remove, 0, 0);

View File

@ -1,7 +1,6 @@
#ifndef COGL_TEST_DECLARATIONS_H
#define COGL_TEST_DECLARATIONS_H
void test_premult (void);
void test_path (void);
void test_path_clip (void);
void test_depth_test (void);

View File

@ -9,6 +9,7 @@ cogl_tests = [
'test-pipeline-user-matrix',
'test-pipeline-uniforms',
'test-pixel-buffer',
'test-premult',
]
cogl_test_conformance_includes = [

View File

@ -2,8 +2,7 @@
#include <string.h>
#include "test-declarations.h"
#include "test-utils.h"
#include "tests/cogl-test-utils.h"
#define QUAD_WIDTH 32
@ -110,7 +109,7 @@ check_texture (CoglPipeline *pipeline,
test_utils_check_pixel (test_fb, x * QUAD_WIDTH + QUAD_WIDTH / 2, y * QUAD_WIDTH + QUAD_WIDTH / 2, expected_result);
}
void
static void
test_premult (void)
{
CoglPipeline *pipeline;
@ -284,3 +283,6 @@ test_premult (void)
g_print ("OK\n");
}
COGL_TEST_SUITE (
g_test_add_func ("/premult", test_premult);
)