1
0
Fork 0

tests/cogl: Migrate just-vertex-shader

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

View file

@ -1,6 +1,5 @@
cogl_test_conformance_sources = [
'test-conform-main.c',
'test-just-vertex-shader.c',
'test-pipeline-user-matrix.c',
'test-pipeline-uniforms.c',
'test-pixel-buffer.c',

View file

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

View file

@ -20,7 +20,6 @@ void test_read_texture_formats (void);
void test_write_texture_formats (void);
void test_alpha_textures (void);
void test_primitive (void);
void test_just_vertex_shader (void);
void test_pipeline_uniforms (void);
void test_snippets (void);
void test_custom_attributes (void);

View file

@ -5,6 +5,7 @@ cogl_tests = [
'test-depth-test',
'test-color-hsl',
'test-backface-culling',
'test-just-vertex-shader',
]
cogl_test_conformance_includes = [

View file

@ -1,11 +1,8 @@
#define COGL_VERSION_MIN_REQUIRED COGL_VERSION_1_0
#include <cogl/cogl.h>
#include <string.h>
#include "test-declarations.h"
#include "test-utils.h"
#include "tests/cogl-test-utils.h"
typedef struct _TestState
{
@ -100,7 +97,7 @@ validate_result (CoglFramebuffer *framebuffer)
test_utils_check_pixel (framebuffer, 75, 25, 0x00ff0000);
}
void
static void
test_just_vertex_shader (void)
{
TestState state;
@ -118,3 +115,7 @@ test_just_vertex_shader (void)
if (cogl_test_verbose ())
g_print ("OK\n");
}
COGL_TEST_SUITE (
g_test_add_func ("/just-vertex-shader", test_just_vertex_shader);
)