Commit graph

1900 commits

Author SHA1 Message Date
Adrian Johnson
d43f6d7459 test: make text-pattern draw with both opaque and translucent patterns
Poppler renders the translucent PDF output of this test correctly with
cairo 1.10.2 but fails with current git.
2011-09-22 23:41:35 +09:30
Adrian Johnson
b30b0c14cb test: Add stroke-pattern
Poppler renders the PDF output of this test correctly with cairo 1.10.2 but fails with current git.

Commenting out the cairo_translate makes the PDF output render correctly with current git.
2011-09-22 22:43:07 +09:30
Chris Wilson
0e95215c01 test/trace: Hack to dump out per-context images and traces
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-21 11:19:04 +01:00
Chris Wilson
2209ec5a15 test: Make cairo_test_suite depend upon the any2ppm exectuable on all platforms
On some platforms, executables have an extension which confuses
automake into building an entirely different binary.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-18 08:52:46 +01:00
Dave Yeo
fdd54d2b79 Fix the number of parameters for cairo_os2_surface_set_size()
test/error-setters.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-18 08:50:00 +01:00
Adrian Johnson
b13c2270f5 test: refresh pdf mask ref images 2011-09-18 13:32:32 +09:30
Chris Wilson
fc011bfcb9 test: Record the current status of radial-outer-focus as xfail
Debate rages as to the correct way to handle this. In some ways the
current output is expected due to the numerical instability in handling
the inner-focus-on-the-outer-circle. However, the result looks less than
desirable so some solution (which may not be inside cairo per-se) is
sought.
2011-09-17 12:28:33 +01:00
Chris Wilson
3fde219487 test: Refresh reference images for spans/traps
I found a bug in my SSE2 lerp implementation which resolved quite a few
failures.
2011-09-16 17:44:33 +01:00
Chris Wilson
f3a9a0c9e6 test: Add a1-fill
Capture the bug report:
https://bugs.freedesktop.org/show_bug.cgi?id=31604

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-16 16:25:45 +01:00
Krzysztof Kosinski
f09361cff1 test: Add radial-outer-focus
Numerical instability in the computation of gradients leads to random
results.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=40918
2011-09-16 16:03:23 +01:00
Chris Wilson
c5295981c6 test: Update reference images for test-base
Uli Schlachter spotted that I had create reference images with sharp
edges for his tighten-bounds test case, exactly as if I had ignored
unaligned clip boxes...

Turns out I had removed the code to handle them...
2011-09-16 15:04:14 +01:00
Adrian Johnson
f1c8c00f16 test: refresh some pdf/ps refs 2011-09-16 23:04:53 +09:30
Adrian Johnson
12ee7989a0 test: refresh some pdf/ps refs 2011-09-16 22:52:05 +09:30
Chris Wilson
0aabde2314 test: Add bug-bo-ricotz
Exercises an assertion failure found by Rico Tzschichholz.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-16 13:48:09 +01:00
Chris Wilson
e7bcf1fd79 test: Hack cairo-test-trace to write at trace for all contexts
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-16 13:48:09 +01:00
Adrian Johnson
983cfb2f54 test: add mask-alpha ps ref 2011-09-16 21:37:58 +09:30
Chris Wilson
898e63bfc1 test: Replace xlib reference images with the traps references
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-16 11:50:50 +01:00
Chris Wilson
fcea0f8e08 test: Use the test-traps as the reference images for xlib/xcb
The test-traps provides a reference implementation of the
traps-compositor as used by xlib, so we can use it to generate the
reference images as well. (Of course checking that test-traps is itself
correct and only differs in the renderer! ;-)

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-16 11:09:22 +01:00
Chris Wilson
62e1ded35c test: Update couple of refs for the improved mono rasteriser
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-15 17:10:43 +01:00
Chris Wilson
e5d890e1ea test: Update refernece dir for create-from-png-stream
It tries to load its reference image and fails because I moved it.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-15 17:06:51 +01:00
Chris Wilson
8e827e2cbb test: Record the failure of recent freetype libraries for type1 vertical layout 2011-09-15 17:02:12 +01:00
Chris Wilson
36dc0971ea test: refresh clip-operator ref.png 2011-09-15 16:59:33 +01:00
Chris Wilson
e6e6723871 test: Fix reference image for unbounded operator
Comparing against the baseline reference highlights the error in the
previous ref.png.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-15 15:29:15 +01:00
Chris Wilson
c0016e6ac9 test: Mark some more raster-only tests
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-15 15:29:15 +01:00
Chris Wilson
5f8ee79b40 test: Write the individual test logs to output/
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-15 14:21:20 +01:00
Chris Wilson
768d39f034 test: Move all the reference images to their own directory
With over two thousand references images now, it is starting to make the
test directory look cluttered!

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-15 14:05:10 +01:00
Chris Wilson
1e67fb4490 test: Complete set of baseline reference images
test-base basically implements rendering ala cairo-1.0 and so serves as
a useful baseline for comparing enhancements and to regression test the
core libraries.
2011-09-15 13:10:25 +01:00
Chris Wilson
f1ea9dd836 test: Use the trapezoid reference image for random-clip
Oh dear it looks like we have a bug in image's polygon clipping.
2011-09-15 11:08:04 +01:00
Chris Wilson
9ab9d635cd test: Add ref image for random-clip
After applying geometric clip intersection, this is the acceptable
result.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-14 23:08:19 +01:00
Chris Wilson
8f9691f2b7 test: Fix ref images for a1-clip-*
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-14 23:06:31 +01:00
Chris Wilson
9f605b0c84 test: Add the PS tiger
The classic tiger's head; a simple example of a reasonably complex shape
consisting of multiple layers.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-14 19:10:22 +01:00
Adrian Johnson
dc2ed6dca2 Refresh some pdf/ps ref images 2011-09-13 22:29:56 +09:30
Chris Wilson
a6a48e0559 test: Update ref images
First pass after the recent turmoil in clip and antialias handling.
2011-09-12 15:44:47 +01:00
Chris Wilson
af9fbd176b Introduce a new compositor architecture
Having spent the last dev cycle looking at how we could specialize the
compositors for various backends, we once again look for the
commonalities in order to reduce the duplication. In part this is
motivated by the idea that spans is a good interface for both the
existent GL backend and pixman, and so they deserve a dedicated
compositor. xcb/xlib target an identical rendering system and so they
should be using the same compositor, and it should be possible to run
that same compositor locally against pixman to generate reference tests.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>

P.S. This brings massive upheaval (read breakage) I've tried delaying in
order to fix as many things as possible but now this one patch does far,
far, far too much. Apologies in advance for breaking your favourite
backend, but trust me in that the end result will be much better. :)
2011-09-12 08:29:48 +01:00
Paulo Zanoni
ee15e030d8 cairo-test-runner: don't leak argv
If CAIRO_TESTS is set, argv will be replaced by a xmaloc'ed variable. We
need to free it.

This can be easily detected by running:
CAIRO_TESTS=user-font make check-valgrind TARGETS=image

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-09 18:44:18 +01:00
Paulo Zanoni
572479ec20 test/README: add missing "S"
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-09 18:43:18 +01:00
Paulo Zanoni
669242c2c8 test: fix append_argv()
When I ran "CAIRO_TESTS=a1-bug make test", no test executed because of a
bug in append_argv(). The "olen" variable was assuming that we always
only append a single argument to argv and the resulting argc was also
wrong.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-09 18:43:15 +01:00
Andrea Canciani
6d6bfbd641 Introduce the cairo-missing library
The cairo-missing library provides the functions which are needed in
order to correctly compile cairo (or its utilities) and which were not
found during configuration.

Fixes the build on MacOS X Lion, which failed because of collisons
between the cairo internal getline and strndup and those in libc:

cairo-analyse-trace.c:282: error: static declaration of ‘getline’ follows non-static declaration
/usr/include/stdio.h:449: error: previous declaration of ‘getline’ was here
cairo-analyse-trace.c:307: error: static declaration of ‘strndup’ follows non-static declaration
...
2011-09-02 12:27:13 +02:00
Uli Schlachter
70118ee119 test: Add tighten-bounds
In the spirit of the new big-{little,empty}-{box,triangle} tests, this test
combines various paths. However, these paths are not only filled but also used
for clipping, resulting in 120 different combinations.

No backend currently succeeds the test. The reference image is a gimp-ination of
the image and test-fallback results and thus certainly wrong. Feel free to fix.

Additionally, this makes the xcb backend die with an ugly failed assert.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-08-30 22:03:33 +02:00
Chris Wilson
7ae2708fc8 test: Add big-empty-triangle
One last variant to make sure we handle the case of the disappearing
unbounded triangle.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-08-29 15:58:28 +01:00
Chris Wilson
f71cfe84fe test: Add big-empty-box
Another variant on big-little-box, to make sure we trim the extents
before doing the empty unbounded fixup.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-08-29 15:58:20 +01:00
Chris Wilson
249c89c313 test: Add big-little-triangle
A variant on big-little-triangle to exercise the non-rectangular paths.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-08-29 15:58:09 +01:00
Krzysztof Kosiński
8d91de4926 test: Add test case from bug-40410
Exercises a case where we failed to fill a rectangle...
2011-08-26 23:04:01 +01:00
Chris Wilson
09d8fc926f test: Add clip-mixed-antialias
The wonders one sees when looking at webpages. Who knew people would be
so inventive with clips?

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-08-26 10:41:59 +01:00
Chris Wilson
bb3d06a5dc test: Add shape-general-concave
A discussion that we've been having is the use of contours in filling,
and for optimizing for convex contours in particular. A devious mind
quickly generates a shape using a convex "contour" whose hull is larger
than its area. This is due to the self-intersection of the "contour"
which if properly excised causes the contour to be classed as concave.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-08-20 16:14:13 +01:00
Chris Wilson
2134306eaf test: Extend rotate-image-surface-paint
Apply two common clipping methods just to add a little bit of further
complication.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-08-20 14:11:30 +01:00
Chris Wilson
9f6820210d test: Extend record-extend to exercise similar surface sources
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-08-20 13:09:41 +01:00
Chris Wilson
f8f25f52ec test: Add record-mesh
Test capture and replay of mesh patterns.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-08-20 13:09:41 +01:00
Chris Wilson
4226bfd695 test: Add big-little-box
This exercises the bug

  https://bugzilla.mozilla.org/show_bug.cgi?id=668921

which is caused by a failure to tighten the extents after tessellating
the path and the unbounded fixup is skipped as it is believed the path
covers the whole area.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-08-20 13:09:40 +01:00
Chris Wilson
2eeae45cc7 test: Add checkerboard
Simply tests the rendering of the checkerboard commonly used as a
background in the test suite.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-08-20 13:09:40 +01:00