mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 04:42:14 +00:00
tests/cogl: Migrate wrap modes test
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2555>
This commit is contained in:
parent
a8f9466978
commit
18dd64dd45
@ -1,6 +1,5 @@
|
|||||||
cogl_test_conformance_sources = [
|
cogl_test_conformance_sources = [
|
||||||
'test-conform-main.c',
|
'test-conform-main.c',
|
||||||
'test-wrap-modes.c',
|
|
||||||
'test-sub-texture.c',
|
'test-sub-texture.c',
|
||||||
'test-custom-attributes.c',
|
'test-custom-attributes.c',
|
||||||
'test-offscreen.c',
|
'test-offscreen.c',
|
||||||
|
@ -69,7 +69,6 @@ main (int argc, char **argv)
|
|||||||
UNPORTED_TEST (test_texture_mipmaps);
|
UNPORTED_TEST (test_texture_mipmaps);
|
||||||
ADD_TEST (test_sub_texture, 0, 0);
|
ADD_TEST (test_sub_texture, 0, 0);
|
||||||
UNPORTED_TEST (test_texture_rectangle);
|
UNPORTED_TEST (test_texture_rectangle);
|
||||||
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_read_texture_formats, 0, TEST_KNOWN_FAILURE);
|
ADD_TEST (test_read_texture_formats, 0, TEST_KNOWN_FAILURE);
|
||||||
|
@ -9,7 +9,6 @@ void test_layer_remove (void);
|
|||||||
void test_sparse_pipeline (void);
|
void test_sparse_pipeline (void);
|
||||||
void test_npot_texture (void);
|
void test_npot_texture (void);
|
||||||
void test_sub_texture (void);
|
void test_sub_texture (void);
|
||||||
void test_wrap_modes (void);
|
|
||||||
void test_texture_get_set_data (void);
|
void test_texture_get_set_data (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);
|
||||||
|
@ -11,6 +11,7 @@ cogl_tests = [
|
|||||||
'test-pixel-buffer',
|
'test-pixel-buffer',
|
||||||
'test-premult',
|
'test-premult',
|
||||||
'test-snippets',
|
'test-snippets',
|
||||||
|
'test-wrap-modes',
|
||||||
]
|
]
|
||||||
|
|
||||||
cogl_test_conformance_includes = [
|
cogl_test_conformance_includes = [
|
||||||
|
@ -1,10 +1,7 @@
|
|||||||
#define COGL_VERSION_MIN_REQUIRED COGL_VERSION_1_0
|
|
||||||
|
|
||||||
#include <cogl/cogl.h>
|
#include <cogl/cogl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "test-declarations.h"
|
#include "tests/cogl-test-utils.h"
|
||||||
#include "test-utils.h"
|
|
||||||
|
|
||||||
#define TEX_SIZE 4
|
#define TEX_SIZE 4
|
||||||
|
|
||||||
@ -225,7 +222,7 @@ paint (TestState *state)
|
|||||||
validate_result (state);
|
validate_result (state);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
test_wrap_modes (void)
|
test_wrap_modes (void)
|
||||||
{
|
{
|
||||||
TestState state;
|
TestState state;
|
||||||
@ -245,3 +242,7 @@ test_wrap_modes (void)
|
|||||||
if (cogl_test_verbose ())
|
if (cogl_test_verbose ())
|
||||||
g_print ("OK\n");
|
g_print ("OK\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
COGL_TEST_SUITE (
|
||||||
|
g_test_add_func ("/wrap-modes", test_wrap_modes);
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user