mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
tests/cogl: Migrate sub-texture test
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2555>
This commit is contained in:
parent
18dd64dd45
commit
6ac0c196cb
@ -1,6 +1,5 @@
|
|||||||
cogl_test_conformance_sources = [
|
cogl_test_conformance_sources = [
|
||||||
'test-conform-main.c',
|
'test-conform-main.c',
|
||||||
'test-sub-texture.c',
|
|
||||||
'test-custom-attributes.c',
|
'test-custom-attributes.c',
|
||||||
'test-offscreen.c',
|
'test-offscreen.c',
|
||||||
'test-journal.c',
|
'test-journal.c',
|
||||||
|
@ -67,7 +67,6 @@ main (int argc, char **argv)
|
|||||||
ADD_TEST (test_npot_texture, 0, 0);
|
ADD_TEST (test_npot_texture, 0, 0);
|
||||||
UNPORTED_TEST (test_multitexture);
|
UNPORTED_TEST (test_multitexture);
|
||||||
UNPORTED_TEST (test_texture_mipmaps);
|
UNPORTED_TEST (test_texture_mipmaps);
|
||||||
ADD_TEST (test_sub_texture, 0, 0);
|
|
||||||
UNPORTED_TEST (test_texture_rectangle);
|
UNPORTED_TEST (test_texture_rectangle);
|
||||||
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);
|
||||||
|
@ -8,7 +8,6 @@ void test_backface_culling (void);
|
|||||||
void test_layer_remove (void);
|
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_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);
|
||||||
|
@ -12,6 +12,7 @@ cogl_tests = [
|
|||||||
'test-premult',
|
'test-premult',
|
||||||
'test-snippets',
|
'test-snippets',
|
||||||
'test-wrap-modes',
|
'test-wrap-modes',
|
||||||
|
'test-sub-texture',
|
||||||
]
|
]
|
||||||
|
|
||||||
cogl_test_conformance_includes = [
|
cogl_test_conformance_includes = [
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
#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 SOURCE_SIZE 32
|
#define SOURCE_SIZE 32
|
||||||
#define SOURCE_DIVISIONS_X 2
|
#define SOURCE_DIVISIONS_X 2
|
||||||
@ -301,7 +300,7 @@ validate_result (TestState *state)
|
|||||||
cogl_object_unref (test_tex);
|
cogl_object_unref (test_tex);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
test_sub_texture (void)
|
test_sub_texture (void)
|
||||||
{
|
{
|
||||||
TestState state;
|
TestState state;
|
||||||
@ -324,3 +323,6 @@ test_sub_texture (void)
|
|||||||
g_print ("OK\n");
|
g_print ("OK\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
COGL_TEST_SUITE (
|
||||||
|
g_test_add_func ("/sub-texture", test_sub_texture);
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user