tests/cogl: Migrate atlas-migration test
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2555>
This commit is contained in:
parent
f91f53e6eb
commit
eaed0e4b46
@ -1,6 +1,5 @@
|
|||||||
cogl_test_conformance_sources = [
|
cogl_test_conformance_sources = [
|
||||||
'test-conform-main.c',
|
'test-conform-main.c',
|
||||||
'test-atlas-migration.c',
|
|
||||||
'test-blend-strings.c',
|
'test-blend-strings.c',
|
||||||
'test-blend.c',
|
'test-blend.c',
|
||||||
'test-depth-test.c',
|
'test-depth-test.c',
|
||||||
|
@ -81,7 +81,6 @@ main (int argc, char **argv)
|
|||||||
ADD_TEST (test_wrap_modes, 0, 0);
|
ADD_TEST (test_wrap_modes, 0, 0);
|
||||||
UNPORTED_TEST (test_texture_pixmap_x11);
|
UNPORTED_TEST (test_texture_pixmap_x11);
|
||||||
ADD_TEST (test_texture_get_set_data, 0, 0);
|
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_read_texture_formats, 0, TEST_KNOWN_FAILURE);
|
||||||
ADD_TEST (test_write_texture_formats, 0, 0);
|
ADD_TEST (test_write_texture_formats, 0, 0);
|
||||||
ADD_TEST (test_alpha_textures, 0, 0);
|
ADD_TEST (test_alpha_textures, 0, 0);
|
||||||
|
@ -18,7 +18,6 @@ void test_pixel_buffer_set_data (void);
|
|||||||
void test_pixel_buffer_sub_region (void);
|
void test_pixel_buffer_sub_region (void);
|
||||||
void test_wrap_modes (void);
|
void test_wrap_modes (void);
|
||||||
void test_texture_get_set_data (void);
|
void test_texture_get_set_data (void);
|
||||||
void test_atlas_migration (void);
|
|
||||||
void test_read_texture_formats (void);
|
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);
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
cogl_tests = [
|
cogl_tests = [
|
||||||
|
'test-atlas-migration',
|
||||||
]
|
]
|
||||||
|
|
||||||
cogl_test_conformance_includes = [
|
cogl_test_conformance_includes = [
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#include <cogl/cogl.h>
|
#include <cogl/cogl.h>
|
||||||
|
|
||||||
#include "test-declarations.h"
|
#include "tests/cogl-test-utils.h"
|
||||||
#include "test-utils.h"
|
|
||||||
|
|
||||||
#define N_TEXTURES 128
|
#define N_TEXTURES 128
|
||||||
|
|
||||||
@ -112,7 +111,7 @@ verify_texture (CoglTexture *texture, int size)
|
|||||||
g_free (data);
|
g_free (data);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
test_atlas_migration (void)
|
test_atlas_migration (void)
|
||||||
{
|
{
|
||||||
CoglTexture *textures[N_TEXTURES];
|
CoglTexture *textures[N_TEXTURES];
|
||||||
@ -144,3 +143,7 @@ test_atlas_migration (void)
|
|||||||
if (cogl_test_verbose ())
|
if (cogl_test_verbose ())
|
||||||
g_print ("OK\n");
|
g_print ("OK\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
COGL_TEST_SUITE (
|
||||||
|
g_test_add_func ("/atlas-migration", test_atlas_migration);
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user