tests/cogl: Migrate custom attributes test
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2555>
This commit is contained in:
parent
6ac0c196cb
commit
fd99884063
@ -1,6 +1,5 @@
|
||||
cogl_test_conformance_sources = [
|
||||
'test-conform-main.c',
|
||||
'test-custom-attributes.c',
|
||||
'test-offscreen.c',
|
||||
'test-journal.c',
|
||||
'test-primitive.c',
|
||||
|
@ -80,8 +80,6 @@ main (int argc, char **argv)
|
||||
|
||||
ADD_TEST (test_primitive, 0, 0);
|
||||
|
||||
ADD_TEST (test_custom_attributes, 0, 0);
|
||||
|
||||
ADD_TEST (test_offscreen, 0, 0);
|
||||
ADD_TEST (test_journal_unref_flush, 0, 0);
|
||||
ADD_TEST (test_framebuffer_get_bits,
|
||||
|
@ -13,7 +13,6 @@ void test_read_texture_formats (void);
|
||||
void test_write_texture_formats (void);
|
||||
void test_alpha_textures (void);
|
||||
void test_primitive (void);
|
||||
void test_custom_attributes (void);
|
||||
void test_offscreen (void);
|
||||
void test_journal_unref_flush (void);
|
||||
void test_framebuffer_get_bits (void);
|
||||
|
@ -13,6 +13,7 @@ cogl_tests = [
|
||||
'test-snippets',
|
||||
'test-wrap-modes',
|
||||
'test-sub-texture',
|
||||
'test-custom-attributes',
|
||||
]
|
||||
|
||||
cogl_test_conformance_includes = [
|
||||
|
@ -2,8 +2,7 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "test-declarations.h"
|
||||
#include "test-utils.h"
|
||||
#include "tests/cogl-test-utils.h"
|
||||
|
||||
typedef struct _TestState
|
||||
{
|
||||
@ -273,7 +272,7 @@ paint (TestState *state)
|
||||
test_short_verts (state, 0, 20);
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
test_custom_attributes (void)
|
||||
{
|
||||
CoglSnippet *snippet;
|
||||
@ -300,3 +299,7 @@ test_custom_attributes (void)
|
||||
if (cogl_test_verbose ())
|
||||
g_print ("OK\n");
|
||||
}
|
||||
|
||||
COGL_TEST_SUITE (
|
||||
g_test_add_func ("/custom-attributes", test_custom_attributes);
|
||||
)
|
Loading…
Reference in New Issue
Block a user