tests/cogl: Migrate wrap modes test

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

View File

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

View File

@ -69,7 +69,6 @@ main (int argc, char **argv)
UNPORTED_TEST (test_texture_mipmaps);
ADD_TEST (test_sub_texture, 0, 0);
UNPORTED_TEST (test_texture_rectangle);
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_read_texture_formats, 0, TEST_KNOWN_FAILURE);

View File

@ -9,7 +9,6 @@ void test_layer_remove (void);
void test_sparse_pipeline (void);
void test_npot_texture (void);
void test_sub_texture (void);
void test_wrap_modes (void);
void test_texture_get_set_data (void);
void test_read_texture_formats (void);
void test_write_texture_formats (void);

View File

@ -11,6 +11,7 @@ cogl_tests = [
'test-pixel-buffer',
'test-premult',
'test-snippets',
'test-wrap-modes',
]
cogl_test_conformance_includes = [

View File

@ -1,10 +1,7 @@
#define COGL_VERSION_MIN_REQUIRED COGL_VERSION_1_0
#include <cogl/cogl.h>
#include <string.h>
#include "test-declarations.h"
#include "test-utils.h"
#include "tests/cogl-test-utils.h"
#define TEX_SIZE 4
@ -225,7 +222,7 @@ paint (TestState *state)
validate_result (state);
}
void
static void
test_wrap_modes (void)
{
TestState state;
@ -245,3 +242,7 @@ test_wrap_modes (void)
if (cogl_test_verbose ())
g_print ("OK\n");
}
COGL_TEST_SUITE (
g_test_add_func ("/wrap-modes", test_wrap_modes);
)