summaryrefslogtreecommitdiff
path: root/test/image-surface-source.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2008-09-03 16:38:03 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2008-10-31 12:30:11 +0000
commite90073f7ddc6f461a935bc360c409b04f1fe9f74 (patch)
treeefda94d1ecd13143cdad23f14552661165e7601e /test/image-surface-source.c
parent8457972d40088cda165f31fdd7bd9b4c19c6e095 (diff)
[test] Build test suite into single binary.
Avoid calling libtool to link every single test case, by building just one binary from all the sources. This binary is then given the task of choosing tests to run (based on user selection and individual test requirement), forking each test into its own process and accumulating the results.
Diffstat (limited to 'test/image-surface-source.c')
-rw-r--r--test/image-surface-source.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/image-surface-source.c b/test/image-surface-source.c
index e675ecd4..c7c1fdc3 100644
--- a/test/image-surface-source.c
+++ b/test/image-surface-source.c
@@ -25,7 +25,6 @@
#include "cairo-test.h"
-#define NAME "image"
#include "surface-source.c"
static cairo_surface_t *
@@ -33,3 +32,10 @@ create_source_surface (int size)
{
return cairo_image_surface_create (CAIRO_FORMAT_ARGB32, size, size);
}
+
+CAIRO_TEST (image_surface_source,
+ "Test using a image surface as the source",
+ "source", /* keywords */
+ NULL, /* requirements */
+ SIZE, SIZE,
+ preamble, draw)