summaryrefslogtreecommitdiff
path: root/test/.gitignore
AgeCommit message (Collapse)AuthorFilesLines
2009-06-19[test] Add cairo-test-trace to .gitignoreChris Wilson1-0/+1
2009-06-18[test] Make test constructors without perl.M Joonas Pihlaja1-0/+1
Remove the dependency on perl when building the test suite by replacing the script which makes cairo-test-constructors.c with a C program.
2008-10-31[test] Use '.' as the field separator in the namesChris Wilson1-4/+4
We frequently use '-' within the test name or format name and so we encounter confusion as '-' is also used as the field separator. At times this has caused a new test to break an old test because the new test would match one of the old test's target specific reference images. So switch everything over to use '.' between fields (test name, target, format, subtest, etc.).
2008-10-31[test] Build test suite into single binary.Chris Wilson1-233/+4
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.
2008-10-30Restore the ability to choose the internal font.Chris Wilson1-0/+1
Behdad wants to include the feature with 1.10, so we enable it as early as possible in 1.9 dev cycle to generate as much feedback as possible. The first change is to use "<cairo>" as being a name unlikely to clash with any real font names. This reverts commits: a824d284be23793a5c48b9ae833dcb7b2d5fff80, 292233685534aed712dfd45e8ccf498b792ce496, e0046aaf417a61da008dc6374871fa3687ba94ab, f534bd549e1e2283735d1eabb60c015a5949a735.
2008-10-30[test] Update .gitignoreChris Wilson1-0/+2
Add a couple of new programs to gitignore.
2008-10-29Remove twin test case.Carl Worth1-1/+0
This test relied on the recently-removed ability to select the internal twin-based font family with a name of "cairo". Presumably, we'll want to bring this test case back when some other means of requesting that font face is added.
2008-10-29[test] Add a pass-through test.Chris Wilson1-0/+1
Check that colour values are correctly passed through all the backends. Simple test of the most fundamental functionality.
2008-10-26[test] Add leaky-dashed-strokeChris Wilson1-0/+1
A test case for a leak whilst closing a dashed stroke extracted from the report by Jeff Muizelaar who found the artifact whilst looking at firefox http://people.mozilla.com/~jmuizelaar/BerlinDistricts-check.svg
2008-10-15[test] Add a spline test.Chris Wilson1-0/+1
Test the decomposition of 5 different types of spline curve. Useful test for future experiments in improving the decomposition algorithm. Note: the vector targets all need separate reference images due to their lack of support for cairo_set_tolerance(). Also GS strokes the Bezier curve differently using offset curves and opposed to transcribing the outline of a pen.
2008-10-13[pattern] Optimize away fractional translation for NEAREST patterns.Chris Wilson1-0/+1
As identified in bug 15479, Unpredictable performance of cairo-xlib with non-integer translations of a source surface pattern (https://bugs.freedesktop.org/show_bug.cgi?id=15479), source surfaces with a fractional translation hit slow paths for some drivers, causing seemingly random performance variations. As a work-around Owen Taylor proposed that cairo could convert non-integer translations on NEAREST sources patterns to their integer equivalents. The messy detail involved here is replicating the rounding mode used by pixman for the sample offset, but otherwise the conversion is fairly trivial.
2008-10-11[test] Add huge pattern.Benjamin Otte1-0/+1
Add a test case to exercise range overflow during gradient construction.
2008-10-08[test] Exercise degenerate dashes.Chris Wilson1-0/+1
Add a test case to capture the current behaviour when a segment ends on an off/on dash transition. Originally filed as bug: Miter artifacts for dashed strokes https://bugs.freedesktop.org/show_bug.cgi?id=17973
2008-10-07[test] Add a test for a reported regression by Michael Natterer.Chris Wilson1-0/+1
mitch reported on irc that expose events in the gimp were suffering from artifacts which he tracked down to a bug with clipping and source surfaces. This is the cairo test case for that regression.
2008-10-07[test] Add a test to exercise the internal twin fontChris Wilson1-0/+1
Although Behdad promises that the rendering is subject to improvement, introduce a test to check consistency across platforms and update as required.
2008-09-25Ignore test/png-test.pngCarl Worth1-0/+1
Finally, "git status" is clean after "make distcheck".
2008-09-24[test] Add a test case to question the mutability of sources.Chris Wilson1-0/+1
Are patterns mutable? The image backend is quite happy to write and read from the same surface, whereas the vector targets create snapshots... This test case exploits that inconsistency. Also the interested reader will note that not only does this demonstrate translational invariance, but a discrepancy with similar surfaces.
2008-09-24[test] Rename mask-ctm-* to avoid conflict with mask-ctm.Chris Wilson1-2/+2
Using mask-ctm-image as a test name was causing a naming conflict with mask-ctm, so rename the new tests.
2008-09-23[test] Add a test case for create_similar(CONTENT_ALPHA)Chris Wilson1-0/+1
Application of a pure-alpha similar source is inconsistently handled across the backends. The PDF/PS backends allow the rgb channels to bleed through and the SVG backend mixes in pure white.
2008-09-22[test] Add an exercise for masking an image using the ctm.Chris Wilson1-0/+2
Quote Kai-Uwe Behrmann: "The expected behaviour for masking in Cairo is to set the mask according to the current active matrix and apply unchanged to a to be masked surface. In SVG the mask element is bound to the masked object and thus the local matrix from that image object applies to the nested mask as well." This is a test case to exercise applying a mask to an image under separate transformations. Original patch by Kai-Uwe Behrmann, altered to run the test against all backends (where it causes poppler to crash on my machine <evil grin>).
2008-09-19[test] Add rectilinear-fillChris Wilson1-0/+1
Add a test-case to exercise pixel-aligned fills to verify the optimised rectilinear filler.
2008-09-17[test] Check set_operator()Chris Wilson1-0/+2
Draw a pair of rectangles with each operator in turn - seems to trigger an issue with the PDF/PS backends.
2008-09-16[test] Add a test case for drawing glyphs with different metrics.Jeff Muizelaar1-0/+1
The ability to draw glyphs with different metrics is useful when doing font substitution with fixed layout like in pdf and I eventually plan on adding code to poppler to do something similar.
2008-09-15[test] Test handling of fractional device offsets.Chris Wilson1-0/+1
2008-09-08[test] Add fill-alpha-pattern.Chris Wilson1-0/+1
A slight variation on the simple fill-alpha theme is that if Company is truly seeing a regression where we dither, the error on a constant background will be small and might be missed by the test suite.
2008-09-08[test] Add fill-alpha.Chris Wilson1-0/+1
Benjamin Otte reported "who broke rgba fills? they look dithered with recent git." This commit is the result of a skim through the test-suite which revealed no single test responsible for checking the basic operation of "set_rgba(); fill();".
2008-09-07[ps] Only use fallback images if the gradient has non-constant alpha.Chris Wilson1-0/+1
If the gradient has constant alpha, then we can express it as a flattened linear gradient. Otherwise, should the opacity vary across the gradient we need to fallback.
2008-09-02Revamp the build system.Behdad Esfahbod1-0/+1
Quick summary of changes: - Move list of cairo source files out of src/Makefile.am and into src/Sources.mk, - Generate files src/Config.mk and src/Config.mk.win32 that choose the right set of source files and headers based on configured backends and features. This drastically simplifies building using other build systems. The src/Makefile.win32 file needs to be updated to reflect these changes. - Add README files to various directories, - Add toplevel HACKING file.
2008-08-21[test] Explicity save a fail image.Chris Wilson1-1/+1
Be explicit about handling cached FAIL images, instead of relying on the sequences of failed matches as the files are an external resource and we can not guarantee their individual accessibility. Note this also changes the filename, so you may want to run: $ find -name '*-last.*' -print | xargs rm after this checkout.
2008-08-20[test] Cache last output and compare next time.Chris Wilson1-4/+3
Compare the current output against a previous run to determine if there has been any change since last time, and only run through imagediff if there has been. For the vector surfaces, we can check the vector output first and potentially skip the rasterisation. On my machine this reduces the time for a second run from 6 minutes to 2m30s. As most of the time, most test output will remain unchanged, so this seems to be a big win. On unix systems, hard linking is used to reduce the amount of storage space required - others will see about a three-fold increase in the amount of disk used. The directory continues to be a stress test for file selectors. In order to reduce the changes between runs, the current time is no longer written to the PNG files (justified by that it only exists as a debugging aid) and the boilerplate tweaks the PS surface so that the creation date is fixed. To fully realise the benefits here, we need to strip the creation time from all the reference images... The biggest problem with using the caches is that different runs of the test suite can go through different code paths, introducing potential Heisenbergs. If you suspect that caching is interfering with the test results, use 'make -C test clean-caches check'.
2008-08-19[boilerplate] Daemonic conversion utility.Chris Wilson1-0/+3
In order to achieve substantial speed improvements the external conversion utilities are rewritten as a daemon that communicates with the test suite over a local socket. This is faster as it avoids the libtool and dynamic linker overhead for each invocation, the caches persist between tests and we no longer require a round trip through libpng. The daemon is started automatically by the test suite and if communication cannot be established then it falls back to using a pipe to a normal conversion utility. The daemon will then persist for 60 seconds waiting for further connections. Of course any memory leak (stares at poppler) is exacerbated.
2008-08-08[.gitignore] Update list of testsChris Wilson1-0/+7
2008-08-08Add toy font constructor and gettersBehdad Esfahbod1-0/+1
New public API: cairo_toy_font_face_create() cairo_toy_font_face_get_family() cairo_toy_font_face_get_slant() cairo_toy_font_face_get_weight()
2008-06-26Update .gitignore filesBehdad Esfahbod1-0/+2
2008-05-23Add large-font test to exercise a cairo-xlib bug.Carl Worth1-0/+1
The original bug report is here: corrupt glyph positions with large font https://bugzilla.redhat.com/show_bug.cgi?id=448104
2008-05-10[cairo-user-font] Implement user fontsBehdad Esfahbod1-0/+1
2008-05-06[test] Add degenerate-arcChris Wilson1-0/+1
This test case is to exercise the divide-by-zero error reported by Luiz Americo Pereira Camara <luizmed@oi.com.br>, http://lists.cairographics.org/archives/cairo/2008-May/014054.html.
2008-04-29[test] Add test case for a leaky dashed rectangle.Chris Wilson1-0/+1
Franz Schmid reported on the mailing list, http://lists.cairographics.org/archives/cairo/2008-April/013912.html, an issue with drawing a dashed rubber band in Scribus. The problem appears when segments of the dashed rectangle are outside the image, with the errant dash connecting the ends of the visible segments.
2008-04-11[test] Add a regression test for bug 10921Chris Wilson1-0/+1
This bug first was fixed in 40558cb15e5f7276a29847b00c9dae08b9d9380e, but then reintroduced in 9cfd82e87b60c0d65e9cafda026cb9a498874575, which became part of the 1.6.2 quick release. As penance to make sure I never repeat this same bug again, I offer this test case which exercises the XSetClipMask(NULL) path and hopefully simulates some 'typical' usage of cairo by GUI toolkits.
2008-04-08[test] Add group-paintChris Wilson1-0/+1
The experience of running the entire test suite under cairo_push_group() did at least reveal that there was a potential bug in the pdf backend. This test is just the simplest of drawing operations - simply filling the similar surface with solid blue, and then blitting that surface to the destination.
2008-04-08[test] Add large-source to exercise handling of massive images.Chris Wilson1-0/+1
This test exercises https://bugzilla.mozilla.org/show_bug.cgi?id=424333. The test is expected to fail due to issues with pixman, but cairo should fail gracefully and neither crash nor cause XErrors.
2008-04-04Add new filter-bilinear-extents testCarl Worth1-0/+1
This test exercises code that computes the extents of a surface pattern with CAIRO_FILTER_BILINEAR, (where the filtering effectively increases the extents of the pattern). The original bug was reported by Owen Taylor here: bad clipping with EXTEND_NONE http://bugs.freedesktop.org/show_bug.cgi?id=15349
2008-04-04[test] Add bilevel image test case.Chris Wilson1-0/+1
Add a simple test to exercise the embedding of an image with a bilevel alpha channel into a postscript level 3 document.
2008-04-04[test] Exercise "soft" masks.Chris Wilson1-0/+7
PDF has a concept of "soft" masks, for which it is able to construct a mask out of PDF drawing operations. These tests exercise constructing various masks using the high level drawing operations.
2008-04-03Add new ft-show-glyphs-table test to exercise recent glyph positioning bug fixCarl Worth1-0/+1
Interestingly, this test case does demonstrate that cairo-pdf is fixed, (where without commit f6509933a4e0 the Y positions of the glyphs were inverted); however, cairo-ps is failing with this test, (all the glyphs are ending up on top of each other).
2008-04-03[test] Add a1-mask.Chris Wilson1-0/+1
Add a variant of the a8-mask test case that exercises the FORMAT_A1 code paths instead.
2008-04-03[.gitignore] Add test/stroke-imageChris Wilson1-0/+1
2008-03-24Add new text-transform testCarl Worth1-0/+1
Previously, the test suite wasn't supplying any coverage of transformed text rendering.
2008-03-24Add finer-grained-fallbacks testAdrian Johnson1-0/+1
This reproduces the bug in PS/PDF/Win32-printing where an unsupported operation that is off the page causes an unsupported operation assertion in the backend.
2008-03-21Add ft-show-glyphs-positioning testAdrian Johnson1-0/+1
This demonstrates the glyph positioning bug in the PS backend.