mirror of
https://github.com/brl/mutter.git
synced 2025-01-26 11:29:03 +00:00
tests/cogl: Migrate pipeline user matrix test
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2555>
This commit is contained in:
parent
a3b21188c9
commit
63af78d049
@ -1,6 +1,5 @@
|
|||||||
cogl_test_conformance_sources = [
|
cogl_test_conformance_sources = [
|
||||||
'test-conform-main.c',
|
'test-conform-main.c',
|
||||||
'test-pipeline-user-matrix.c',
|
|
||||||
'test-pipeline-uniforms.c',
|
'test-pipeline-uniforms.c',
|
||||||
'test-pixel-buffer.c',
|
'test-pixel-buffer.c',
|
||||||
'test-premult.c',
|
'test-premult.c',
|
||||||
|
@ -59,7 +59,6 @@ main (int argc, char **argv)
|
|||||||
UNPORTED_TEST (test_object);
|
UNPORTED_TEST (test_object);
|
||||||
UNPORTED_TEST (test_fixed);
|
UNPORTED_TEST (test_fixed);
|
||||||
UNPORTED_TEST (test_materials);
|
UNPORTED_TEST (test_materials);
|
||||||
ADD_TEST (test_pipeline_user_matrix, 0, 0);
|
|
||||||
ADD_TEST (test_premult, 0, 0);
|
ADD_TEST (test_premult, 0, 0);
|
||||||
UNPORTED_TEST (test_readpixels);
|
UNPORTED_TEST (test_readpixels);
|
||||||
ADD_TEST (test_layer_remove, 0, 0);
|
ADD_TEST (test_layer_remove, 0, 0);
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#ifndef COGL_TEST_DECLARATIONS_H
|
#ifndef COGL_TEST_DECLARATIONS_H
|
||||||
#define COGL_TEST_DECLARATIONS_H
|
#define COGL_TEST_DECLARATIONS_H
|
||||||
|
|
||||||
void test_pipeline_user_matrix (void);
|
|
||||||
void test_premult (void);
|
void test_premult (void);
|
||||||
void test_path (void);
|
void test_path (void);
|
||||||
void test_path_clip (void);
|
void test_path_clip (void);
|
||||||
|
@ -6,6 +6,7 @@ cogl_tests = [
|
|||||||
'test-color-hsl',
|
'test-color-hsl',
|
||||||
'test-backface-culling',
|
'test-backface-culling',
|
||||||
'test-just-vertex-shader',
|
'test-just-vertex-shader',
|
||||||
|
'test-pipeline-user-matrix',
|
||||||
]
|
]
|
||||||
|
|
||||||
cogl_test_conformance_includes = [
|
cogl_test_conformance_includes = [
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
@ -128,7 +127,7 @@ paint (TestState *state)
|
|||||||
cogl_object_unref (pipeline);
|
cogl_object_unref (pipeline);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
test_pipeline_user_matrix (void)
|
test_pipeline_user_matrix (void)
|
||||||
{
|
{
|
||||||
TestState state;
|
TestState state;
|
||||||
@ -142,3 +141,7 @@ test_pipeline_user_matrix (void)
|
|||||||
if (cogl_test_verbose ())
|
if (cogl_test_verbose ())
|
||||||
g_print ("OK\n");
|
g_print ("OK\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
COGL_TEST_SUITE (
|
||||||
|
g_test_add_func ("/pipeline/user-matrix", test_pipeline_user_matrix);
|
||||||
|
)
|
Loading…
x
Reference in New Issue
Block a user