summaryrefslogtreecommitdiff
path: root/test/svg-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/svg-surface-source.c
parent8457972d40088cda165f31fdd7bd9b4c19c6e095 (diff)
downloadcairo-e90073f7ddc6f461a935bc360c409b04f1fe9f74.tar.gz
[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/svg-surface-source.c')
-rw-r--r--test/svg-surface-source.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/svg-surface-source.c b/test/svg-surface-source.c
index c8042c4c8..d7749e5d0 100644
--- a/test/svg-surface-source.c
+++ b/test/svg-surface-source.c
@@ -26,7 +26,6 @@
#include "cairo-test.h"
#include <cairo-svg.h>
-#define NAME "svg"
#include "surface-source.c"
static cairo_surface_t *
@@ -34,8 +33,16 @@ create_source_surface (int size)
{
cairo_surface_t *surface;
- surface = cairo_svg_surface_create ("svg-surface-source.svg", size, size);
+ surface = cairo_svg_surface_create ("svg-surface-source-out.svg",
+ size, size);
cairo_surface_set_fallback_resolution (surface, 72., 72.);
return surface;
}
+
+CAIRO_TEST (svg_surface_source,
+ "Test using a SVG surface as the source",
+ "source", /* keywords */
+ NULL, /* requirements */
+ SIZE, SIZE,
+ preamble, draw)