Commit graph

161 commits

Author SHA1 Message Date
Behdad Esfahbod
601c0503f7 Send grep errors to hell^Wnull. 2006-07-13 13:37:47 -04:00
Carl Worth
d2d9a74c77 Add dash-no-dash test case to demonstrate PDF failure to turn off dashing. 2006-07-13 10:14:26 -07:00
Behdad Esfahbod
0ac2bbbf52 Improve test HTML generation:
- Make "make retest" not generate all .log files.
- Format improvements in the generated HTML file.
2006-07-13 11:27:05 -04:00
Behdad Esfahbod
973d3a3d14 More test suite infrastructure improvements:
- Remove cairo_test_expect_failure.  cairo-test.c now checks
  env var CAIRO_XFAIL_TESTS to see if the running test is
  expected to fail.  The reason for expected failure is
  appended to the test description.
- Test description is written out.
- Failed/crashed tests also write a line out to stderr (in red),
  so one can now redirect stdout to /dev/null to only see failures.
- cairo_test() has been changed to not take the draw function
  anymore, instead, draw function is now part of the test struct.
- "make check" doesn't allow limiting backends to test using env
  var anymore.  To limit backends to test, one should use the
  TARGETS variable on the make command line.
- "make check-valgrind" now writes its log to valgrind-log instead
  of valgrind.log, to not interfere with test log file processing.
2006-07-11 22:19:39 -04:00
Behdad Esfahbod
94bdbc15f7 Improve test suite build infrastructure
- Add new target recheck, that checks only failed tests
- Add targets test and retest, and make html after (re)checking
- Make targets html and index.html lazy, only update if any tests changed
- Improve build system such that checking one test (using TESTS=...) doesn't
  build all tests
- Remove pixman-rotate from XFAIL
2006-07-11 17:27:08 -04:00
Behdad Esfahbod
83dcbe05b5 For check-valgrind, call the version of libtool in our source distribution,
not the one found in PATH.
2006-07-05 04:29:54 +02:00
Carl Worth
cea70741e8 Add src/cairo-features.h and test/*.ps to CLEANFILES 2006-07-01 03:24:21 +02:00
Carl Worth
55b5fedbc1 Add many references images (and a font) missing from EXTRA_DIST 2006-07-01 03:06:26 +02:00
Carl Worth
a64b946ee0 Mark test/leaky-dash as an expected failure. 2006-06-29 06:24:44 +02:00
Jeff Muizelaar
20df4af126 Add new test case degenerate-path to show current 'bug' 2006-06-25 15:48:48 +02:00
Carl Worth
6a58658b73 Add test/glyph-cache-pressure to demonstrate xlib failure (bug 6955) 2006-06-22 22:05:20 -07:00
Behdad Esfahbod
f71313d427 Minor refinements, mostly to configure.in. 2006-06-21 07:05:14 -04:00
Carl Worth
cca08d9bce New bitmap-font test with bundled 6x13 font.
The 6x13 font is a public-domain terminal font from the X
distribution.
2006-06-20 17:48:06 -07:00
Behdad Esfahbod
72e7667ed9 Replace noinst_ with check_, such that nothing is built with default make
target.
2006-06-19 04:29:49 -04:00
Behdad Esfahbod
70d3719ec9 Add test device-offset-positive. 2006-06-19 03:20:09 -04:00
Jinghua Luo
4b2b8f939a Add ft-text-antilaias-none test case demonstrating bug #6759. 2006-06-17 16:29:54 +08:00
Kristian Høgsberg
9ef99d10bb Add test case for the PDF, PS and SVG stream constructors. 2006-06-14 19:21:46 -04:00
Kristian Høgsberg
2cea3a2710 Merge branch 'svg-rewrite' 2006-06-14 15:00:33 -04:00
Carl Worth
e346eca138 Add zero-alpha reference image to Makefile.am for the sake of make dist 2006-06-14 04:58:54 -07:00
Carl Worth
2d269664f1 Add new zero-alpha test to demonstrate (X server?) bug found by Paul Giblock 2006-06-13 16:13:23 -07:00
Kristian Høgsberg
17d41d1f71 Only run fallback-resolution test case when all of PDF, PS and SVG are enabled. 2006-06-13 17:24:36 -04:00
Jinghua Luo
6b5be506ed Add ft-text-vertical-layout test case for vertical layout. 2006-06-08 03:33:38 +08:00
Carl Worth
b7c7d2e57c Add new test get-group-target (currently failing with paginated).
This test exercises the combination of cairo_get_group_target along
with cairo_surface_get_device_offset. Something funny is currently
going on with the surfaces based on the paginated surface.
2006-06-07 10:37:29 -07:00
Christian Biesinger
79c86b04a7 Add "html" Makefile target to run make-html.pl 2006-05-28 16:50:54 +02:00
Christian Biesinger
508d0955fb Distribute make-html.pl 2006-05-27 15:00:49 +02:00
Christian Biesinger
f072d4ed66 Add missing reference images to EXTRA_DIST 2006-05-25 21:21:31 +02:00
Carl Worth
22232be759 Note the changed semantics of cairo_surface_set_device_offset
Specifically, device offsets now affect using the offset surface in
a source pattern as well as drawing to the surface. This behavior
os also verified with a new test case: test/device-offset.c
2006-05-24 17:24:52 -07:00
Carl Worth
0796845ae6 Add new fallback-resolution test for bug in cairo_pdf_surface_set_dpi 2006-05-24 14:03:49 -07:00
Carl Worth
1b1b59a4a9 New test: dash-scale
Tests interactions of cairo_set_dash and cairo_scale, (in particular with a
non-uniformly scaled pen).
2006-05-23 12:13:20 -07:00
Carl Worth
f0d7e3f858 Add select-font-face test for whosing multiple faces at once. 2006-05-09 14:15:27 -07:00
Carl Worth
ac470b0238 Don't build pdf2svg until we start depending on newer poppler 2006-05-05 07:57:10 -07:00
Carl Worth
7ba3b75efd Fix typos in EXTRA_DIST list of reference images. 2006-05-04 23:44:07 -07:00
Carl Worth
344c2c7acd Add a couple more group-using tests: fill-and-stroke-alpha[-add] 2006-05-04 21:35:23 -07:00
Vladimir Vukicevic
ee02c1b914 Implement push_group/pop_group
This patch adds the following API calls:

 cairo_push_group
 cairo_push_group_with_content
 cairo_pop_group
 cairo_pop_group_to_source
 cairo_get_group_target

These methods support implementing layers on top of a cairo context,
allowing for drawing with transparency and temporary buffering.
cairo_get_group_target allows an app to get access to the actual surface
created by the last push_group call, in case itneeds to perform native
drawing to it.
2006-05-04 02:52:38 -07:00
Carl Worth
7c825797c8 Add pdf2svg utility for manual testing (not used in test suite) 2006-05-03 13:18:40 -07:00
Carl Worth
c35bfffa10 Add new pdf-features test to exercise cairo_pdf_surface_set_size 2006-05-03 12:39:45 -07:00
Carl Worth
6acc836df2 Add backend-specific reference images to EXTRA_DIST so they'll go out in the tar file. 2006-05-03 00:57:28 -07:00
Carl Worth
8488aaee1a PS: Add cairo_ps_surface_set_size along with ps-features test
Add a new cairo_ps_surface_set_size which can be used to produce a
PostScript file consisting of pages of various different sizes (or
orientations).

Also add a new test (ps-features.c) for testing this and subsequent
ps-specific function calls.
2006-05-02 12:36:35 -07:00
Carl Worth
9729fe6024 Add line-width-scale test to demonstrate cairo_set_line_width bug 2006-04-27 11:45:38 -07:00
Christian Biesinger
9ab4b81a09 Use a single LDADD variable instead of a per-test one
to avoid repeating the list of tests.
2006-04-27 00:51:01 +02:00
Carl Worth
e0a2e1fd14 Add leaky-dash test case demonstrating bug #4863.
Test case for bug #4863:

	stroking problems with wide dashed lines
	https://bugs.freedesktop.org/show_bug.cgi?id=4863
2006-04-26 12:51:54 -07:00
Carl Worth
e4b3cb1e71 Remove deleted reference images from Makefile.am 2006-04-26 12:49:58 -07:00
Carl Worth
d5dd5e6ebc Remove from EXTRA_DIST reference images which don't exist 2006-04-25 09:12:30 -07:00
Carl Worth
bef621e870 Augment tests to do better testing of paths/images with alpha.
Add a new cairo_test_paint_checkered function so that tests that draw
with alpha can easily put an easy-to-see checkered background in place
first.

Add new tests caps-joins-alpha and paint-source-alpha that do simple
tests of strokes and image painting with source pattern alpha.

Also, add the checkered background to paint-with-alpha for
consistency.
2006-04-25 01:56:51 -07:00
Carl Worth
448e904b2a Merge branch 'cairo' into new-sub-path
Conflicts:

	src/cairo-path-stroke.c
	src/cairo-pdf-surface.c
	src/cairo-ps-surface.c
2006-04-18 15:18:31 -07:00
Jeff Muizelaar
584109d5e6 Add test case for dashed lines.
The new test case tests a variety of circumstances involved with zero length dashing.
2006-04-13 23:38:02 -04:00
Carl Worth
e01047a76a Build fix for typo from recent commit. 2006-04-05 17:15:48 -07:00
Carl Worth
341d61cda0 Disable show-glyphs-many test to avoid abusing ghostscript too badly. 2006-04-05 17:09:45 -07:00
Carl Worth
34a4ad1e5b test/show-glyphs-many: New test case to demonstrate bug #5528
This demonstrates an Xlib crash when rendering many glyphs. See:

	_XError from XRenderCompositeText8
	https://bugs.freedesktop.org/show_bug.cgi?id=5528

for more details.
2006-03-02 10:32:38 -08:00
Carl Worth
210dd59a74 Add some basic testing of cairo_font_face_get_type and
cairo_scaled_font_get_type.
2006-02-28 02:30:27 -08:00