tests/cogl: Migrate sparse pipeline test

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2555>
This commit is contained in:
Jonas Ådahl 2022-08-04 20:08:40 +02:00 committed by Marge Bot
parent 8dc0489b33
commit 400cc89364
5 changed files with 6 additions and 7 deletions

View File

@ -1,6 +1,5 @@
cogl_test_conformance_sources = [
'test-conform-main.c',
'test-sparse-pipeline.c',
'test-read-texture-formats.c',
'test-write-texture-formats.c',
'test-point-size.c',

View File

@ -62,8 +62,6 @@ main (int argc, char **argv)
UNPORTED_TEST (test_readpixels);
ADD_TEST (test_layer_remove, 0, 0);
ADD_TEST (test_sparse_pipeline, 0, 0);
ADD_TEST (test_npot_texture, 0, 0);
UNPORTED_TEST (test_multitexture);
UNPORTED_TEST (test_texture_mipmaps);

View File

@ -6,7 +6,6 @@ void test_path_clip (void);
void test_depth_test (void);
void test_backface_culling (void);
void test_layer_remove (void);
void test_sparse_pipeline (void);
void test_npot_texture (void);
void test_texture_get_set_data (void);
void test_read_texture_formats (void);

View File

@ -17,6 +17,7 @@ cogl_tests = [
'test-offscreen',
'test-journal',
'test-primitive',
'test-sparse-pipeline',
]
cogl_test_conformance_includes = [

View File

@ -1,8 +1,7 @@
#include <cogl/cogl.h>
#include <string.h>
#include "test-declarations.h"
#include "test-utils.h"
#include "tests/cogl-test-utils.h"
typedef struct _TestState
{
@ -43,7 +42,7 @@ test_sparse_layer_combine (TestState *state)
cogl_object_unref (tex2);
}
void
static void
test_sparse_pipeline (void)
{
TestState state;
@ -61,3 +60,6 @@ test_sparse_pipeline (void)
g_print ("OK\n");
}
COGL_TEST_SUITE (
g_test_add_func ("/sparse-pipeline", test_sparse_pipeline);
)