mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 17:40:40 -05:00
tests/cogl: Migrate read texture formats test
This test fails on gl and gl3, but not on gles2; mark is at such. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2555>
This commit is contained in:
parent
bfd5e87c92
commit
ddb982ba6e
@ -1,6 +1,5 @@
|
|||||||
cogl_test_conformance_sources = [
|
cogl_test_conformance_sources = [
|
||||||
'test-conform-main.c',
|
'test-conform-main.c',
|
||||||
'test-read-texture-formats.c',
|
|
||||||
'test-write-texture-formats.c',
|
'test-write-texture-formats.c',
|
||||||
'test-point-size.c',
|
'test-point-size.c',
|
||||||
'test-point-size-attribute.c',
|
'test-point-size-attribute.c',
|
||||||
|
@ -68,7 +68,6 @@ main (int argc, char **argv)
|
|||||||
UNPORTED_TEST (test_texture_rectangle);
|
UNPORTED_TEST (test_texture_rectangle);
|
||||||
UNPORTED_TEST (test_texture_pixmap_x11);
|
UNPORTED_TEST (test_texture_pixmap_x11);
|
||||||
ADD_TEST (test_texture_get_set_data, 0, 0);
|
ADD_TEST (test_texture_get_set_data, 0, 0);
|
||||||
ADD_TEST (test_read_texture_formats, 0, TEST_KNOWN_FAILURE);
|
|
||||||
ADD_TEST (test_write_texture_formats, 0, 0);
|
ADD_TEST (test_write_texture_formats, 0, 0);
|
||||||
ADD_TEST (test_alpha_textures, 0, 0);
|
ADD_TEST (test_alpha_textures, 0, 0);
|
||||||
|
|
||||||
|
@ -8,7 +8,6 @@ void test_backface_culling (void);
|
|||||||
void test_layer_remove (void);
|
void test_layer_remove (void);
|
||||||
void test_npot_texture (void);
|
void test_npot_texture (void);
|
||||||
void test_texture_get_set_data (void);
|
void test_texture_get_set_data (void);
|
||||||
void test_read_texture_formats (void);
|
|
||||||
void test_write_texture_formats (void);
|
void test_write_texture_formats (void);
|
||||||
void test_alpha_textures (void);
|
void test_alpha_textures (void);
|
||||||
void test_framebuffer_get_bits (void);
|
void test_framebuffer_get_bits (void);
|
||||||
|
@ -18,6 +18,7 @@ cogl_tests = [
|
|||||||
[ 'test-journal', [] ],
|
[ 'test-journal', [] ],
|
||||||
[ 'test-primitive', [] ],
|
[ 'test-primitive', [] ],
|
||||||
[ 'test-sparse-pipeline', [] ],
|
[ 'test-sparse-pipeline', [] ],
|
||||||
|
[ 'test-read-texture-formats', ['gl', 'gl3'] ],
|
||||||
]
|
]
|
||||||
|
|
||||||
cogl_test_conformance_includes = [
|
cogl_test_conformance_includes = [
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
#include <cogl/cogl.h>
|
#include <cogl/cogl.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
#include "test-declarations.h"
|
#include "tests/cogl-test-utils.h"
|
||||||
#include "test-utils.h"
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This tests reading back an RGBA texture in all of the available
|
* This tests reading back an RGBA texture in all of the available
|
||||||
@ -159,7 +158,7 @@ test_read_int (CoglTexture2D *tex_2d,
|
|||||||
g_free (expected_value_str);
|
g_free (expected_value_str);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
test_read_texture_formats (void)
|
test_read_texture_formats (void)
|
||||||
{
|
{
|
||||||
CoglTexture2D *tex_2d;
|
CoglTexture2D *tex_2d;
|
||||||
@ -221,3 +220,7 @@ test_read_texture_formats (void)
|
|||||||
if (cogl_test_verbose ())
|
if (cogl_test_verbose ())
|
||||||
g_print ("OK\n");
|
g_print ("OK\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
COGL_TEST_SUITE (
|
||||||
|
g_test_add_func ("/read-texture-formats", test_read_texture_formats);
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user