diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2008-09-03 16:38:03 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2008-10-31 12:30:11 +0000 |
commit | e90073f7ddc6f461a935bc360c409b04f1fe9f74 (patch) | |
tree | efda94d1ecd13143cdad23f14552661165e7601e /test/pdf-surface-source.c | |
parent | 8457972d40088cda165f31fdd7bd9b4c19c6e095 (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/pdf-surface-source.c')
-rw-r--r-- | test/pdf-surface-source.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/pdf-surface-source.c b/test/pdf-surface-source.c index 680eeef4..23149a96 100644 --- a/test/pdf-surface-source.c +++ b/test/pdf-surface-source.c @@ -26,7 +26,6 @@ #include "cairo-test.h" #include <cairo-pdf.h> -#define NAME "pdf" #include "surface-source.c" static cairo_surface_t * @@ -34,8 +33,15 @@ create_source_surface (int size) { cairo_surface_t *surface; - surface = cairo_pdf_surface_create ("pdf-surface-source.pdf", size, size); + surface = cairo_pdf_surface_create ("pdf-surface-source-out.pdf", size, size); cairo_surface_set_fallback_resolution (surface, 72., 72.); return surface; } + +CAIRO_TEST (pdf_surface_source, + "Test using a PDF surface as the source", + "source", /* keywords */ + NULL, /* requirements */ + SIZE, SIZE, + preamble, draw) |