1
0
Fork 0

tests/cogl: Migrate snippets test

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

View file

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

View file

@ -82,7 +82,6 @@ main (int argc, char **argv)
ADD_TEST (test_primitive, 0, 0); ADD_TEST (test_primitive, 0, 0);
ADD_TEST (test_snippets, 0, 0);
ADD_TEST (test_custom_attributes, 0, 0); ADD_TEST (test_custom_attributes, 0, 0);
ADD_TEST (test_offscreen, 0, 0); ADD_TEST (test_offscreen, 0, 0);

View file

@ -15,7 +15,6 @@ void test_read_texture_formats (void);
void test_write_texture_formats (void); void test_write_texture_formats (void);
void test_alpha_textures (void); void test_alpha_textures (void);
void test_primitive (void); void test_primitive (void);
void test_snippets (void);
void test_custom_attributes (void); void test_custom_attributes (void);
void test_offscreen (void); void test_offscreen (void);
void test_journal_unref_flush (void); void test_journal_unref_flush (void);

View file

@ -10,6 +10,7 @@ cogl_tests = [
'test-pipeline-uniforms', 'test-pipeline-uniforms',
'test-pixel-buffer', 'test-pixel-buffer',
'test-premult', 'test-premult',
'test-snippets',
] ]
cogl_test_conformance_includes = [ cogl_test_conformance_includes = [

View file

@ -2,8 +2,7 @@
#include <string.h> #include <string.h>
#include "test-declarations.h" #include "tests/cogl-test-utils.h"
#include "test-utils.h"
typedef struct _TestState typedef struct _TestState
{ {
@ -796,7 +795,7 @@ run_tests (TestState *state)
} }
} }
void static void
test_snippets (void) test_snippets (void)
{ {
TestState state; TestState state;
@ -816,3 +815,7 @@ test_snippets (void)
if (cogl_test_verbose ()) if (cogl_test_verbose ())
g_print ("OK\n"); g_print ("OK\n");
} }
COGL_TEST_SUITE (
g_test_add_func ("/snippets", test_snippets);
)