mirror of
https://github.com/brl/mutter.git
synced 2024-11-29 11:30:45 -05:00
tests/cogl: Migrate color-hsl test
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2555>
This commit is contained in:
parent
8c41b3b4a1
commit
3839fb49cb
@ -1,6 +1,5 @@
|
|||||||
cogl_test_conformance_sources = [
|
cogl_test_conformance_sources = [
|
||||||
'test-conform-main.c',
|
'test-conform-main.c',
|
||||||
'test-color-hsl.c',
|
|
||||||
'test-backface-culling.c',
|
'test-backface-culling.c',
|
||||||
'test-just-vertex-shader.c',
|
'test-just-vertex-shader.c',
|
||||||
'test-pipeline-user-matrix.c',
|
'test-pipeline-user-matrix.c',
|
||||||
|
@ -129,8 +129,6 @@ main (int argc, char **argv)
|
|||||||
|
|
||||||
UNPORTED_TEST (test_viewport);
|
UNPORTED_TEST (test_viewport);
|
||||||
|
|
||||||
ADD_TEST (test_color_hsl, 0, 0);
|
|
||||||
|
|
||||||
ADD_TEST (test_fence, TEST_REQUIREMENT_FENCE, 0);
|
ADD_TEST (test_fence, TEST_REQUIREMENT_FENCE, 0);
|
||||||
|
|
||||||
ADD_TEST (test_texture_no_allocate, 0, 0);
|
ADD_TEST (test_texture_no_allocate, 0, 0);
|
||||||
|
@ -42,7 +42,6 @@ void test_pipeline_shader_state (void);
|
|||||||
void test_gles2_context (void);
|
void test_gles2_context (void);
|
||||||
void test_gles2_context_fbo (void);
|
void test_gles2_context_fbo (void);
|
||||||
void test_gles2_context_copy_tex_image (void);
|
void test_gles2_context_copy_tex_image (void);
|
||||||
void test_color_hsl (void);
|
|
||||||
void test_fence (void);
|
void test_fence (void);
|
||||||
void test_texture_no_allocate (void);
|
void test_texture_no_allocate (void);
|
||||||
void test_texture_rg (void);
|
void test_texture_rg (void);
|
||||||
|
@ -3,6 +3,7 @@ cogl_tests = [
|
|||||||
'test-blend-strings',
|
'test-blend-strings',
|
||||||
'test-blend',
|
'test-blend',
|
||||||
'test-depth-test',
|
'test-depth-test',
|
||||||
|
'test-color-hsl',
|
||||||
]
|
]
|
||||||
|
|
||||||
cogl_test_conformance_includes = [
|
cogl_test_conformance_includes = [
|
||||||
|
@ -3,12 +3,11 @@
|
|||||||
|
|
||||||
#include <cogl/cogl.h>
|
#include <cogl/cogl.h>
|
||||||
|
|
||||||
#include "test-declarations.h"
|
#include "tests/cogl-test-utils.h"
|
||||||
#include "test-utils.h"
|
|
||||||
|
|
||||||
#define TEST_CASE_EPSILON 0.0001
|
#define TEST_CASE_EPSILON 0.0001
|
||||||
|
|
||||||
void
|
static void
|
||||||
test_color_hsl (void)
|
test_color_hsl (void)
|
||||||
{
|
{
|
||||||
CoglColor color;
|
CoglColor color;
|
||||||
@ -44,3 +43,7 @@ test_color_hsl (void)
|
|||||||
if (cogl_test_verbose ())
|
if (cogl_test_verbose ())
|
||||||
g_print ("OK\n");
|
g_print ("OK\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
COGL_TEST_SUITE (
|
||||||
|
g_test_add_func ("/color/hsl", test_color_hsl);
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user