tests/cogl: Migrate depth test test

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2555>
This commit is contained in:
Jonas Ådahl 2022-08-04 19:15:27 +02:00 committed by Marge Bot
parent 67a9226e92
commit 8c41b3b4a1
4 changed files with 6 additions and 7 deletions

View File

@ -1,6 +1,5 @@
cogl_test_conformance_sources = [
'test-conform-main.c',
'test-depth-test.c',
'test-color-hsl.c',
'test-backface-culling.c',
'test-just-vertex-shader.c',

View File

@ -62,7 +62,6 @@ main (int argc, char **argv)
ADD_TEST (test_pipeline_user_matrix, 0, 0);
ADD_TEST (test_premult, 0, 0);
UNPORTED_TEST (test_readpixels);
ADD_TEST (test_depth_test, 0, 0);
ADD_TEST (test_backface_culling, 0, TEST_REQUIREMENT_NPOT);
ADD_TEST (test_layer_remove, 0, 0);

View File

@ -2,6 +2,7 @@ cogl_tests = [
'test-atlas-migration',
'test-blend-strings',
'test-blend',
'test-depth-test',
]
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"
#define QUAD_WIDTH 20
@ -252,7 +249,7 @@ paint (TestState *state)
}
}
void
static void
test_depth_test (void)
{
TestState state;
@ -269,3 +266,6 @@ test_depth_test (void)
g_print ("OK\n");
}
COGL_TEST_SUITE (
g_test_add_func ("/depth-test", test_depth_test);
)