tests/cogl: Migrate layer remove test
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2555>
This commit is contained in:
parent
7a91c30149
commit
5b0fa9cff4
@ -1,6 +1,5 @@
|
|||||||
cogl_test_conformance_sources = [
|
cogl_test_conformance_sources = [
|
||||||
'test-conform-main.c',
|
'test-conform-main.c',
|
||||||
'test-layer-remove.c',
|
|
||||||
'test-alpha-test.c',
|
'test-alpha-test.c',
|
||||||
'test-map-buffer-range.c',
|
'test-map-buffer-range.c',
|
||||||
'test-npot-texture.c',
|
'test-npot-texture.c',
|
||||||
|
@ -60,7 +60,6 @@ main (int argc, char **argv)
|
|||||||
UNPORTED_TEST (test_fixed);
|
UNPORTED_TEST (test_fixed);
|
||||||
UNPORTED_TEST (test_materials);
|
UNPORTED_TEST (test_materials);
|
||||||
UNPORTED_TEST (test_readpixels);
|
UNPORTED_TEST (test_readpixels);
|
||||||
ADD_TEST (test_layer_remove, 0, 0);
|
|
||||||
|
|
||||||
ADD_TEST (test_npot_texture, 0, 0);
|
ADD_TEST (test_npot_texture, 0, 0);
|
||||||
UNPORTED_TEST (test_multitexture);
|
UNPORTED_TEST (test_multitexture);
|
||||||
|
@ -5,7 +5,6 @@ void test_path (void);
|
|||||||
void test_path_clip (void);
|
void test_path_clip (void);
|
||||||
void test_depth_test (void);
|
void test_depth_test (void);
|
||||||
void test_backface_culling (void);
|
void test_backface_culling (void);
|
||||||
void test_layer_remove (void);
|
|
||||||
void test_npot_texture (void);
|
void test_npot_texture (void);
|
||||||
void test_texture_get_set_data (void);
|
void test_texture_get_set_data (void);
|
||||||
void test_alpha_textures (void);
|
void test_alpha_textures (void);
|
||||||
|
@ -25,6 +25,7 @@ cogl_tests = [
|
|||||||
[ 'test-point-sprite', [] ],
|
[ 'test-point-sprite', [] ],
|
||||||
[ 'test-point-sprite-known-failure', ['gl', 'gl3', 'gles2'] ],
|
[ 'test-point-sprite-known-failure', ['gl', 'gl3', 'gles2'] ],
|
||||||
[ 'test-no-gl-header', [] ],
|
[ 'test-no-gl-header', [] ],
|
||||||
|
[ 'test-layer-remove', [] ],
|
||||||
]
|
]
|
||||||
|
|
||||||
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 TEST_SQUARE_SIZE 10
|
#define TEST_SQUARE_SIZE 10
|
||||||
|
|
||||||
@ -50,7 +49,7 @@ test_color (CoglPipeline *pipeline,
|
|||||||
color);
|
color);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
test_layer_remove (void)
|
test_layer_remove (void)
|
||||||
{
|
{
|
||||||
CoglPipeline *pipeline0, *pipeline1;
|
CoglPipeline *pipeline0, *pipeline1;
|
||||||
@ -144,3 +143,7 @@ test_layer_remove (void)
|
|||||||
if (cogl_test_verbose ())
|
if (cogl_test_verbose ())
|
||||||
g_print ("OK\n");
|
g_print ("OK\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
COGL_TEST_SUITE (
|
||||||
|
g_test_add_func ("/layer/remove", test_layer_remove);
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user