Commit graph

733 commits

Author SHA1 Message Date
Vladimir Vukicevic
0b34e958f1 [test] add XFAIL test surface-pattern-big-scale down
Add test for image downscaling with large images severely limiting
the destination coordinate space.  See the test for more information.
2007-05-29 17:14:41 -07:00
Chris Wilson
abba3f2375 [valgrind-suppressions] Update to cover XrmGetStringDatabase
By dropping the top frame from suppression, the XrmGetFileDatabase
suppressions will also match XrmGetStringDatabase leaks which are
starting to occur.
2007-05-10 23:05:46 +01:00
Chris Wilson
069514a10f [test/in-fill-empty-trapezoid] Cleanup after test failure.
Ensure that the failure path also calls cairo_test_fini().
2007-05-08 22:04:51 +01:00
Chris Wilson
43645eb486 [test/fallback-resolution] Cleanup after test failure
Be valgrind clean even for test failures.
2007-05-08 22:04:41 +01:00
Behdad Esfahbod
409f973429 [test] If a test target fails, end the test
otherwise cairo is left in a dirty state and further tests are
unreliable.
2007-05-08 14:18:42 -04:00
Chris Wilson
aad66d05fd [test/nil-surface] Destroy the auxiliary context on failure paths.
Just to be tidy, and aim to be valgrind-clean.
2007-05-08 16:48:47 +01:00
Chris Wilson
b85920684f [cairo-test] Destroy the check image on failure
If drawing the checker pattern should fail, we need to free the
resources allocated locally.
2007-05-08 16:47:40 +01:00
Carl Worth
2dcfb944b0 Don't test PDF tests known to fail due to poppler limitations
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-27 16:41:17 -07:00
Behdad Esfahbod
79098c0370 [scaled-font] Get rid of _cairo_scaled_font_test_set_max_glyphs_cached_per_font
in favor of cairo_boilerplate_scaled_font_set_max_glyphs_cached.
2007-04-21 03:43:04 -04:00
Behdad Esfahbod
d2bb5f3007 [svg] Get rid of _cairo_svg_test_force_fallbacks
in favor of cairo_boilerplate_svg_surface_force_fallbacks.
2007-04-21 03:08:26 -04:00
Behdad Esfahbod
3885fff3e6 [ps] Get rid of _cairo_ps_test_force_fallbacks
in favor of cairo_boilerplate_ps_surface_force_fallbacks.
2007-04-21 02:51:22 -04:00
Behdad Esfahbod
20ce190e71 [pdf] Get rid of _cairo_pdf_test_force_fallbacks
in favor of cairo_boilerplate_pdf_surface_force_fallbacks.
2007-04-21 02:50:53 -04:00
Behdad Esfahbod
cd72167ede [xlib] Get rid of _cairo_xlib_test_disable_render
in favor of cairo_boilerplate_xlib_surface_disable_render.
2007-04-21 02:08:38 -04:00
Behdad Esfahbod
2e709321d8 [boilerplate] Move xasprintf to xmalloc.c 2007-04-20 00:52:03 -04:00
Behdad Esfahbod
d5535c993b [boilerplate/test] Move vector_ignored_tests from boilerplate/ to test/ 2007-04-20 00:52:02 -04:00
Behdad Esfahbod
157074c794 [boilerplate] Add cairo_boilerplate_get/free_targets
This means, test and perf suites now share the same target handling
code, including parsing CAIRO_TEST_TARGET.
2007-04-18 19:46:30 -04:00
Behdad Esfahbod
47c02a6bd6 [boilerplate] s/_cairo_test_content_name/cairo_boilerplate_content_name/g 2007-04-18 19:15:16 -04:00
Behdad Esfahbod
9f3e0694e6 [test] Allow bypassing all test targets by setting CAIRO_TEST_TARGET=" " 2007-04-18 19:08:54 -04:00
Chris Wilson
cab4d41cae create-for-stream - free resources after test failure.
create-for-stream often fails whilst running under valgrind due to the
postscript output containing a CreationDate with seconds resolution,
hence the visibility of the resource leaks during failure.
2007-04-16 16:57:24 +01:00
Chris Wilson
9d435d5fbf Add suppression for leak from XauFileName.
The string is statically allocated by XauFileName() and so ignore the fact
that is not freed upon termination.
2007-04-16 15:44:28 +01:00
Chris Wilson
3a3fb0031d Update .gitignore
Add .*.sw? (vim swapfiles).
Add *~ (backup files).
Add *.gcno and *.gcda (gcov intermediates).
2007-04-16 15:08:54 +01:00
Carl Worth
537a795b3b Remove ft-text-vertical-layout-type1
This test can fail if the wrong font is loaded, but that's no
different than many other text tests---so it doesn't really
deserve special XFAIL treatment because of that.
2007-04-12 18:13:50 -07:00
Carl Worth
29adf591b7 move show-glyphs-many to the DISABLED_TESTS list
And add a detailed comment explaining the reasons for disabling each
test in the list.
2007-04-12 12:47:27 -07:00
Behdad Esfahbod
e391d3eaee [test] Disable text-glyph-range that was crashing
Disabled tests are defined in DISABLED_TESTS.  This has the benefit
that they will still be buildable and be shipped.  Just not run by
default.
2007-04-12 14:44:32 -04:00
Vladimir Vukicevic
c8d2d1e876 add licenses to test files 2007-04-12 10:51:17 -07:00
Kristian Høgsberg
977a8982ab Add missing copyright notice. 2007-04-11 23:49:01 -04:00
Chris Wilson
284edb8648 Do not raise an error if we fail to locate 'find' or 'xargs'
Whilst not being able to delete all of the test output is messy it is
however not fatal, so do not abort configuration simply because we
cannot find either program.
2007-04-12 03:01:31 +01:00
Chris Wilson
a8974223dc Check for find and xargs during configure
Replace hard-coded find, xargs and rm with the paths determined during
configure. This also gives us an opportunity to detect missing programs
and inform the developer.
2007-04-12 02:31:03 +01:00
Behdad Esfahbod
632ec8088c [test] Add copyright headers for my tests 2007-04-11 20:18:11 -04:00
Chris Wilson
82397a6314 Avoid using GNU find extensions.
Replace the complex single find with a series of simple but POSIX correct
equivalents.
2007-04-12 00:55:04 +01:00
Behdad Esfahbod
06382092e5 [pdiff] Ship gpl.txt 2007-04-11 19:43:01 -04:00
Chris Wilson
b745126a04 Use find | xargs to overcome shell command line limit.
Once again we have hit the command line limit with the sheer volume of
generated test output. So replace the glob with a find which has the
additional advantage of only needing to walk the tree once to generate
the file lists - this begins to be noticeable with such large directories.
2007-04-11 13:07:06 -07:00
Carl Worth
bd0b328f7e test/invalid-matrix: Add new test to exercise CAIRO_STATUS_INVALID_MATRIX paths
This new test exercises every path where the user might possibly
pass in an invalid matrix. Currently the test fails if no error
is reported. Also, if an incorrect error is reported, (such as
CAIRO_STATUS_NO_MEMORY instead of CAIRO_STATUS_INVALID_MATRIX),
this is logged as a warning in invalid-matrix.log, but the test
still passes.

It would still be worthwhile to follow up quickly and fix those
cases to propagate the correct error value.
2007-04-11 01:21:10 -07:00
Chris Wilson
2f2bff038c buffer-diff - check for any errors whilst writing the png
Propagate any errors from writing out the png.
2007-04-09 15:08:45 +01:00
Behdad Esfahbod
e8072e6e0a [test,perf] Make them rebuild boilerplate when src is changed 2007-04-08 22:03:46 -04:00
Chris Wilson
5c24711ee6 Restore gcov functionality
Add -lgcov to the shared library else the test programs fail to link.
Add a couple of lcov convenience targets to generate the coverage reports.
2007-04-04 10:13:13 +01:00
Behdad Esfahbod
114be945db [test] Add svg2pdf 2007-04-03 16:47:39 -04:00
Behdad Esfahbod
040c68cb2c [test] Make pdf2svg build (and distributed) 2007-04-03 16:23:35 -04:00
Behdad Esfahbod
17f5706d17 [pdiff] Make stdint.h inclusion portable (#10441)
by copying magic bits from cairo-wideint-private.h.
2007-04-03 16:04:04 -04:00
Brian Ewins
00cc443737 [test/degenerate-path] remove quartz reference image
The reference image is no longer the correct size, so isn't
providing a comparison at all. In the absence of a better
replacement, removing it at least gives us diffs.
2007-03-26 21:44:33 +01:00
Behdad Esfahbod
820341b4c5 [test/nil-surface] Test that cairo_get_target() returns non-NULL 2007-03-21 15:44:18 -04:00
Behdad Esfahbod
52341f7e85 [test/nil-surface] Test cairo_create(NULL). Crashing in cairo_push_group! 2007-03-21 15:21:05 -04:00
Chris Wilson
9b53bc7c65 Cache solid patterns
We use a small cache of size 16 for patterns created from solid colors,
e.g. cairo_set_source_rgb(). This helps with toolkits that draw many
widgets using the same colour scheme.

The cache uses a static index variable, which itself acts like a cache
of size 1, remembering the most recently used colour. So repeated
lookups for the same colour hit immediately. If that fails, the cache
is searched linearly, and if that fails too, a new pattern is created
and a random member of the cache is evicted.
2007-03-20 18:21:53 -04:00
Carl Worth
2483542b74 Add skew-extreme-ref.png to the tar file for the release. 2007-03-19 23:37:28 -07:00
Carl Worth
1401f20eb9 Temporarily remove extend-reflect from the list of tests.
This test is known to sometimes cause an X server to enter a near-
infinite loop. That's a reall unkind thing to inflict upon our
users who are being nice enough to test cairo. Let's disable
this test for the 1.4.2 release.
2007-03-19 22:39:40 -07:00
Carl Worth
23caa0f43b Add line-width-zero test which currently crashes.
The crash is described in this bug report:

	Crash in cairo_stroke_extents whe line width is 0 and line cap is ROUND
	(_cairo_pen_find_active_cw_vertex_index)
	https://bugs.freedesktop.org/show_bug.cgi?id=10231
2007-03-15 22:09:32 -07:00
Carl Worth
3d3173d176 Add svg-specific reference image for radial-gradient test.
This isn't strictly needed, (pdiff allows the test to pass without the
image), but it sure runs faster this way.
2007-03-14 17:19:48 -07:00
Carl Worth
0a6ae06c35 Add new skew-extreme test case.
This test currently fails, demonstrating the bug reported here:

	Skew transforms were broken by the cairo update in December
	https://bugzilla.mozilla.org/show_bug.cgi?id=373632
2007-03-14 15:06:36 -07:00
Carl Worth
40b6d8842e Remove radial-gradient test from XFAIL list
This test has not been failing since the fix in:

	772edc9133

So get rid of the '1 unexpected passes' complaint.
2007-03-14 15:06:36 -07:00
Behdad Esfahbod
f3c8d82d6d [test] If backends are limited and all untested, pass the test
This is necessary to ensure that limiting backends using
CAIRO_TEST_TARGET does not increase the number of tests failing,
which is a desirable invariant.
2007-03-13 16:51:34 -04:00