tests/cogl: Migrate alpha test test

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2555>
This commit is contained in:
Jonas Ådahl 2022-08-04 21:55:14 +02:00 committed by Marge Bot
parent 5b0fa9cff4
commit 0a841ce846
5 changed files with 6 additions and 7 deletions

View File

@ -1,6 +1,5 @@
cogl_test_conformance_sources = [
'test-conform-main.c',
'test-alpha-test.c',
'test-map-buffer-range.c',
'test-npot-texture.c',
'test-alpha-textures.c',

View File

@ -77,8 +77,6 @@ main (int argc, char **argv)
TEST_REQUIREMENT_GL,
0);
ADD_TEST (test_alpha_test, 0, 0);
ADD_TEST (test_map_buffer_range, TEST_REQUIREMENT_MAP_WRITE, 0);
ADD_TEST (test_primitive_and_journal, 0, 0);

View File

@ -9,7 +9,6 @@ void test_npot_texture (void);
void test_texture_get_set_data (void);
void test_alpha_textures (void);
void test_framebuffer_get_bits (void);
void test_alpha_test (void);
void test_map_buffer_range (void);
void test_primitive_and_journal (void);
void test_copy_replace_texture (void);

View File

@ -26,6 +26,7 @@ cogl_tests = [
[ 'test-point-sprite-known-failure', ['gl', 'gl3', 'gles2'] ],
[ 'test-no-gl-header', [] ],
[ 'test-layer-remove', [] ],
[ 'test-alpha-test', [] ],
]
cogl_test_conformance_includes = [

View File

@ -1,8 +1,7 @@
#include <cogl/cogl.h>
#include <string.h>
#include "test-declarations.h"
#include "test-utils.h"
#include "tests/cogl-test-utils.h"
static CoglTexture2D *
create_texture (CoglContext *context)
@ -21,7 +20,7 @@ create_texture (CoglContext *context)
NULL /* error */);
}
void
static void
test_alpha_test (void)
{
CoglTexture *tex = create_texture (test_ctx);
@ -72,3 +71,6 @@ test_alpha_test (void)
g_print ("OK\n");
}
COGL_TEST_SUITE (
g_test_add_func ("/alpha-test", test_alpha_test);
)