summaryrefslogtreecommitdiff
path: root/boilerplate
AgeCommit message (Collapse)AuthorFilesLines
2008-02-20Re-enable pdf tests with gradients and add poppler-based reference imagesCarl Worth1-42/+0
This freezes the current (buggy) poppler result in the test suite so that we will notice any future regressions.
2008-02-20Re-enable some pdf tests now that poppler has knockout supportCarl Worth1-13/+0
We had several pdf tests disabled waiting for this bug fix: Poppler does not correctly handle knockout groups https://bugs.freedesktop.org/show_bug.cgi?id=12185 That's in place for poppler now, so we're turning the tests back on. Some of the affected tests now pass perfectly: over-above-source over-around-source over-below-source over-between-source Some just needed new reference images: operator-clear clip-operator-pdf-argb32 The remaining tests still fail, but none of the failures can obviously be ascribed to just poppler problems: clip-operator-pdf-rgb24 operator-source unbounded-operator The first two have some serious problems, while in the case of unbounded-operator the problem is extremely minor (a white grid appears in the background where the reference image is all black).
2008-02-15[boilerplage] Add getopts to the boilerplate library.Chris Wilson1-6/+8
Remember to compile the _cairo_getopts() function into the boilerplate convenience library for cairo-perf.
2008-02-15[xmalloc] Hide valgrind warning.Chris Wilson1-8/+19
Allocate the string to the next integer boundary to hide a valgrind warning.
2008-02-06Some fixes and improvements to the Win32 buildAzar@.(none)4-4/+338
2008-02-06Add several Makefile.win32 files to EXTRA_DISTCarl Worth1-0/+2
Otherwise, these files were being omitted from the tar files.
2008-01-15[cairo-xlib] Fixup --disable-xlib-xrenderChris Wilson4-14/+21
Fixup the headers and boilerplate to compile and run correctly when configured with --disable-xlib-xrender.
2008-01-10[test] Win32 printing backend testing depends upon ghostscriptChris Wilson1-0/+2
Using the Win32 printing backend requires ghostscript, so only enable those tests if we detect 'gs' during configure.
2007-10-22win32-printing: fix error in commentAdrian Johnson1-10/+11
2007-10-21win32-printing: Add test boilerplateAdrian Johnson4-0/+336
Testing win32-printing requires setting the default printer to a PostScript level 3 color printer. The PostScript output is saved to a file and converted to png using ghostscript.
2007-10-13PS: Add meta surface pattern supportAdrian Johnson1-10/+1
2007-10-10[boilerplate-test-surfaces] Check show page for errors.Chris Wilson1-0/+3
Check that cairo_surface_show_page() did not generate any errors before reading back the image buffer and saving it as a png.
2007-10-05[cairo-boilerplate-xlib] Cleanup fallback after creation failure.Chris Wilson1-2/+7
Cleanup the local resource if we fail to create the X window and surface for the xlib fallback test target.
2007-09-23[cairo-boilerplate] Do not throw an error if an exclude target is not found.Chris Wilson1-5/+0
If we fail to exclude a target because it was not in the list of targets - job done and no need to throw a tantrum.
2007-09-11Export cairo_surface_{copy,show}_pageVladimir Vukicevic2-4/+5
This patch adds cairo_surface_copy_page and cairo_surface_show_page as public methods, leaving the previous cairo_show_page variants as shorthands. copy_page/show_page are specific to the surface, not to the context, so they need to be surface methods.
2007-09-05Add support for PDF meta-surface patternsAdrian Johnson1-10/+1
2007-09-03[cairo-boilerplate] Introduce CAIRO_TEST_TARGET_EXCLUDE.Chris Wilson1-1/+38
As opposed to the CAIRO_TEST_TARGET env var which lists the exact targets to test, CAIRO_TEST_TARGET_EXCLUDE instead supplies a list of targets to filter from the testing set. This is useful under circumstances where the build environment prevents testing of a target, for example no DirectFB support or the glitz library is broken, but where you still want to perform the minimal check that the code compiles.
2007-08-29Disable radial-gradient and unbounded-operator tests for pdfCarl Worth1-1/+3
These are failing due to (already reported) poppler bugs. There were also problems with the gradients in the PDF files previously, but these have recently been fixed.
2007-08-28[win32] Update win32 MakefilesVladimir Vukicevic1-6/+7
Happy building with msys, one location for CFLAGS/etc changes (toplevel), new pdiff makefile.
2007-08-27Disable 7 cairo-pdf tests due to poppler knockout-group bugCarl Worth1-7/+18
The following 7 tests currently fail with poppler due to: Poppler does not correctly handle knockout groups https://bugs.freedesktop.org/show_bug.cgi?id=12185 and we've verified with acroread that the cairo-pdf output does render as intended there. The disabled tests are clip-operator, operator-clear, operator-source, over-above-source, over-around-source, over-below-source, and over-between-source.
2007-08-27Add explanation of pdf_ignored_tests with links to upstream poppler bug reportsCarl Worth1-0/+29
2007-08-24[cairo-boilerplate-xlib] Check that the surface will fit in the screen.Chris Wilson1-0/+25
Whilst testing the fallback surface, the resultant image was being clipped to the screen size. Be conservative and refuse to create windows (for CAIRO_CONTENT_COLOR surfaces) that are larger than the screen.
2007-08-24[cairo-boilerplate-xlib] Clear Render data for the non-Render fallback.Chris Wilson1-0/+5
As well as marking the XRender extension unavailable in _cairo_boiler_player_xlib_disable_render(), we need to clear any XRender derived information stored during the surface creation.
2007-08-23[boilerplate] Build libcairoboilerplate.la in make check and make testBehdad Esfahbod2-15/+2
2007-08-21Add a new xlib-fallback target to test xlib using image fallbacks instead of ↵Carl Worth3-0/+89
the Render extension
2007-08-16[boilerplate/xmalloc] Special case malloc(0) and friends.Chris Wilson1-3/+3
malloc(0) can return NULL so double check the requested size before exiting with an out-of-memory error.
2007-08-16[cairo-boilerplate-xlib] Check for NULL xrender_format before use.Chris Wilson1-4/+12
Testing for XRender support (xrender_format != NULL) after dereferencing said format doesn't work as intended.
2007-07-05[configure] Only run PostScript tests if we have ghostscript.Chris Wilson1-1/+1
During configure check for the ghostscript command line tool (gs) before enabling the PostScript surface tests for make check.
2007-05-08[cairo-boilerplate-ps] Destroy the target on creation failureChris Wilson1-0/+2
Remember to destroy the ptc->target as well as the ordinary surface, if we need to.
2007-05-08[cairo-boilerplate] Protect against the nil cairo_scaled_font_tChris Wilson1-0/+3
Beware the NULL pointer deference when trying to adjust the max glyph cache size...
2007-05-02[boilerplate] Fix typoBehdad Esfahbod1-1/+1
2007-04-27Don't test PDF tests known to fail due to poppler limitationsCarl Worth1-0/+15
The following four tests are disabled: gradient-alpha, linear-gradient, text-pattern, trap-clip We don't use XFAIL as that would disable all backends, (but we can still usefully use these tests on backends other than PDF).
2007-04-21[boilerplate] Add missing headers. Oops!Behdad Esfahbod2-0/+66
I blame git for it...
2007-04-21[scaled-font] Get rid of _cairo_scaled_font_test_set_max_glyphs_cached_per_fontBehdad Esfahbod3-0/+46
in favor of cairo_boilerplate_scaled_font_set_max_glyphs_cached.
2007-04-21[svg] Get rid of _cairo_svg_test_force_fallbacksBehdad Esfahbod3-0/+53
in favor of cairo_boilerplate_svg_surface_force_fallbacks.
2007-04-21[svg] Move cairo_svg_surface_t to cairo-svg-surface-private.hBehdad Esfahbod1-1/+5
2007-04-21[ps] Get rid of _cairo_ps_test_force_fallbacksBehdad Esfahbod3-0/+49
in favor of cairo_boilerplate_ps_surface_force_fallbacks.
2007-04-21[pdf] Get rid of _cairo_pdf_test_force_fallbacksBehdad Esfahbod2-0/+20
in favor of cairo_boilerplate_pdf_surface_force_fallbacks.
2007-04-21[boilerplate] Add cairo-boilerplate-xlib.h to Makefile.amBehdad Esfahbod1-0/+1
2007-04-21[xlib] Get rid of _cairo_xlib_test_disable_renderBehdad Esfahbod1-0/+15
in favor of cairo_boilerplate_xlib_surface_disable_render.
2007-04-21[boilerplate] Minor indentation fixBehdad Esfahbod1-6/+6
2007-04-20cairo-boilerplate - use xmalloc and friendsChris Wilson1-2/+2
Prefer to abort gracefully if we run out of memory (or simply to protect them from memfault).
2007-04-20[boilerplate] Add cairo_boilerplate_format_from_contentBehdad Esfahbod5-26/+25
2007-04-20[boilerplate] Strip test-surfaces boilerplate into ↵Behdad Esfahbod4-143/+241
cairo-boilerplate-test-surfaces*
2007-04-20[boilerplate] Move xasprintf to xmalloc.cBehdad Esfahbod4-66/+70
2007-04-20[boilerplate] Cleanup includes in cairo-boilerplate-beos.cppBehdad Esfahbod1-10/+10
2007-04-20[boilerplate] Fix typos in cairo-boilerplate-glitz.cBehdad Esfahbod1-2/+2
2007-04-20[boilerplate] Remove leftover call to cairo_test_logBehdad Esfahbod1-1/+1
2007-04-20[boilerplate] Clean up includes and remove unnecessary onesBehdad Esfahbod5-28/+17
2007-04-20[boilerplate] Strip win32 boilerplate into cairo-boilerplate-win32*Behdad Esfahbod4-26/+99