[mutter] tests/cogl: Migrate sub-texture test
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] tests/cogl: Migrate sub-texture test
- Date: Mon, 8 Aug 2022 22:13:11 +0000 (UTC)
commit 6ac0c196cbb76fd445371ebf5e30f15baf323f8f
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Thu Aug 4 19:59:07 2022 +0200
tests/cogl: Migrate sub-texture test
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2555>
cogl/tests/conform/meson.build | 1 -
cogl/tests/conform/test-conform-main.c | 1 -
cogl/tests/conform/test-declarations.h | 1 -
src/tests/cogl/conform/meson.build | 1 +
{cogl/tests => src/tests/cogl}/conform/test-sub-texture.c | 8 +++++---
5 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/cogl/tests/conform/meson.build b/cogl/tests/conform/meson.build
index 2951aa191e..f4e0c1aa8d 100644
--- a/cogl/tests/conform/meson.build
+++ b/cogl/tests/conform/meson.build
@@ -1,6 +1,5 @@
cogl_test_conformance_sources = [
'test-conform-main.c',
- 'test-sub-texture.c',
'test-custom-attributes.c',
'test-offscreen.c',
'test-journal.c',
diff --git a/cogl/tests/conform/test-conform-main.c b/cogl/tests/conform/test-conform-main.c
index 56dbb1aee5..997335826b 100644
--- a/cogl/tests/conform/test-conform-main.c
+++ b/cogl/tests/conform/test-conform-main.c
@@ -67,7 +67,6 @@ main (int argc, char **argv)
ADD_TEST (test_npot_texture, 0, 0);
UNPORTED_TEST (test_multitexture);
UNPORTED_TEST (test_texture_mipmaps);
- ADD_TEST (test_sub_texture, 0, 0);
UNPORTED_TEST (test_texture_rectangle);
UNPORTED_TEST (test_texture_pixmap_x11);
ADD_TEST (test_texture_get_set_data, 0, 0);
diff --git a/cogl/tests/conform/test-declarations.h b/cogl/tests/conform/test-declarations.h
index 506a31b1ac..e03b427df2 100644
--- a/cogl/tests/conform/test-declarations.h
+++ b/cogl/tests/conform/test-declarations.h
@@ -8,7 +8,6 @@ void test_backface_culling (void);
void test_layer_remove (void);
void test_sparse_pipeline (void);
void test_npot_texture (void);
-void test_sub_texture (void);
void test_texture_get_set_data (void);
void test_read_texture_formats (void);
void test_write_texture_formats (void);
diff --git a/src/tests/cogl/conform/meson.build b/src/tests/cogl/conform/meson.build
index 4625ef5d58..08ec157616 100644
--- a/src/tests/cogl/conform/meson.build
+++ b/src/tests/cogl/conform/meson.build
@@ -12,6 +12,7 @@ cogl_tests = [
'test-premult',
'test-snippets',
'test-wrap-modes',
+ 'test-sub-texture',
]
cogl_test_conformance_includes = [
diff --git a/cogl/tests/conform/test-sub-texture.c b/src/tests/cogl/conform/test-sub-texture.c
similarity index 98%
rename from cogl/tests/conform/test-sub-texture.c
rename to src/tests/cogl/conform/test-sub-texture.c
index 9e8d1164cb..808791d31d 100644
--- a/cogl/tests/conform/test-sub-texture.c
+++ b/src/tests/cogl/conform/test-sub-texture.c
@@ -1,8 +1,7 @@
#include <cogl/cogl.h>
#include <string.h>
-#include "test-declarations.h"
-#include "test-utils.h"
+#include "tests/cogl-test-utils.h"
#define SOURCE_SIZE 32
#define SOURCE_DIVISIONS_X 2
@@ -301,7 +300,7 @@ validate_result (TestState *state)
cogl_object_unref (test_tex);
}
-void
+static void
test_sub_texture (void)
{
TestState state;
@@ -324,3 +323,6 @@ test_sub_texture (void)
g_print ("OK\n");
}
+COGL_TEST_SUITE (
+ g_test_add_func ("/sub-texture", test_sub_texture);
+)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]