tests/cogl: Migrate atlas-migration test

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

View File

@ -1,6 +1,5 @@
cogl_test_conformance_sources = [
'test-conform-main.c',
'test-atlas-migration.c',
'test-blend-strings.c',
'test-blend.c',
'test-depth-test.c',

View File

@ -81,7 +81,6 @@ main (int argc, char **argv)
ADD_TEST (test_wrap_modes, 0, 0);
UNPORTED_TEST (test_texture_pixmap_x11);
ADD_TEST (test_texture_get_set_data, 0, 0);
ADD_TEST (test_atlas_migration, 0, 0);
ADD_TEST (test_read_texture_formats, 0, TEST_KNOWN_FAILURE);
ADD_TEST (test_write_texture_formats, 0, 0);
ADD_TEST (test_alpha_textures, 0, 0);

View File

@ -18,7 +18,6 @@ void test_pixel_buffer_set_data (void);
void test_pixel_buffer_sub_region (void);
void test_wrap_modes (void);
void test_texture_get_set_data (void);
void test_atlas_migration (void);
void test_read_texture_formats (void);
void test_write_texture_formats (void);
void test_alpha_textures (void);

View File

@ -1,4 +1,5 @@
cogl_tests = [
'test-atlas-migration',
]
cogl_test_conformance_includes = [

View File

@ -1,7 +1,6 @@
#include <cogl/cogl.h>
#include "test-declarations.h"
#include "test-utils.h"
#include "tests/cogl-test-utils.h"
#define N_TEXTURES 128
@ -112,7 +111,7 @@ verify_texture (CoglTexture *texture, int size)
g_free (data);
}
void
static void
test_atlas_migration (void)
{
CoglTexture *textures[N_TEXTURES];
@ -144,3 +143,7 @@ test_atlas_migration (void)
if (cogl_test_verbose ())
g_print ("OK\n");
}
COGL_TEST_SUITE (
g_test_add_func ("/atlas-migration", test_atlas_migration);
)