tests/cogl: Migrate write texture formats test
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2555>
This commit is contained in:
parent
ddb982ba6e
commit
ae9b4a1bcf
@ -1,6 +1,5 @@
|
||||
cogl_test_conformance_sources = [
|
||||
'test-conform-main.c',
|
||||
'test-write-texture-formats.c',
|
||||
'test-point-size.c',
|
||||
'test-point-size-attribute.c',
|
||||
'test-point-sprite.c',
|
||||
|
@ -68,7 +68,6 @@ main (int argc, char **argv)
|
||||
UNPORTED_TEST (test_texture_rectangle);
|
||||
UNPORTED_TEST (test_texture_pixmap_x11);
|
||||
ADD_TEST (test_texture_get_set_data, 0, 0);
|
||||
ADD_TEST (test_write_texture_formats, 0, 0);
|
||||
ADD_TEST (test_alpha_textures, 0, 0);
|
||||
|
||||
UNPORTED_TEST (test_vertex_buffer_contiguous);
|
||||
|
@ -8,7 +8,6 @@ void test_backface_culling (void);
|
||||
void test_layer_remove (void);
|
||||
void test_npot_texture (void);
|
||||
void test_texture_get_set_data (void);
|
||||
void test_write_texture_formats (void);
|
||||
void test_alpha_textures (void);
|
||||
void test_framebuffer_get_bits (void);
|
||||
void test_point_size (void);
|
||||
|
@ -19,6 +19,7 @@ cogl_tests = [
|
||||
[ 'test-primitive', [] ],
|
||||
[ 'test-sparse-pipeline', [] ],
|
||||
[ 'test-read-texture-formats', ['gl', 'gl3'] ],
|
||||
[ 'test-write-texture-formats', [] ],
|
||||
]
|
||||
|
||||
cogl_test_conformance_includes = [
|
||||
|
@ -1,8 +1,7 @@
|
||||
#include <cogl/cogl.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
#include "test-declarations.h"
|
||||
#include "test-utils.h"
|
||||
#include "tests/cogl-test-utils.h"
|
||||
|
||||
/*
|
||||
* This tests writing data to an RGBA texture in all of the available
|
||||
@ -131,7 +130,7 @@ test_write_int (CoglContext *context,
|
||||
cogl_object_unref (texture);
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
test_write_texture_formats (void)
|
||||
{
|
||||
test_write_byte (test_ctx, COGL_PIXEL_FORMAT_A_8, 0x34, 0x00000034);
|
||||
@ -183,3 +182,7 @@ test_write_texture_formats (void)
|
||||
if (cogl_test_verbose ())
|
||||
g_print ("OK\n");
|
||||
}
|
||||
|
||||
COGL_TEST_SUITE (
|
||||
g_test_add_func ("/write-texture-formats ", test_write_texture_formats);
|
||||
)
|
Loading…
x
Reference in New Issue
Block a user