summaryrefslogtreecommitdiff
path: root/test/README
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2008-02-20 03:15:17 -0800
committerCarl Worth <cworth@cworth.org>2008-02-20 04:04:04 -0800
commit43302f0408d92138ac12afcd855d44c430074859 (patch)
tree7259cf3a3052de57f905d917b7c468d345e03fd4 /test/README
parent635fed77676f2446cbedfcf52a85f96e32c3a241 (diff)
downloadcairo-43302f0408d92138ac12afcd855d44c430074859.tar.gz
Re-enable pdf tests with gradients and add poppler-based reference images
This freezes the current (buggy) poppler result in the test suite so that we will notice any future regressions.
Diffstat (limited to 'test/README')
-rw-r--r--test/README47
1 files changed, 47 insertions, 0 deletions
diff --git a/test/README b/test/README
index 840e1addb..a603e9887 100644
--- a/test/README
+++ b/test/README
@@ -94,3 +94,50 @@ message:
All XX tests passed
+Some notes on limitations in poppler
+------------------------------------
+One of the difficulties of our current test infrastructure is that we
+rely on external tools to convert cairo's vector output (PDF,
+PostScript, and SVG), into an image that can be used for the image
+comparison. This means that any bugs in that conversion tool will
+result in false negatives in the test suite.
+
+We've identified several such bugs in the poppler library which is
+used to convert PDF to an image. This is particularly discouraging
+because 1) poppler is free software that will be used by *many* cairo
+users, and 2) poppler calls into cairo for its rendering so it should
+be able to do a 100% faithful conversion.
+
+So we have an interest in ensuring that these poppler bugs get fixed
+sooner rather than later. As such, we're trying to be good citizens by
+reporting all such poppler bugs that we identify to the poppler
+bugzilla. Here's a tracking bug explaining the situation:
+
+ Poppler does not yet handle everything in the cairo test suite
+ https://bugs.freedesktop.org/show_bug.cgi?id=12143
+
+Here's the rule: If a cairo-pdf test reports a failure, but viewing
+the resulting PDF file with acroread suggests that the PDF itself is
+correct, then there's likely a bug in poppler. In this case, we can
+simply report the poppler bug, (making it block 12143 above), post the
+PDF result from the test suite, and list the bug in this file. Once
+we've done this, we can capture poppler's buggy output as a
+pdf-specific reference image so that the test suite will regard the
+test as passing, (and we'll ensure there is no regression).
+
+Once the poppler bug gets fixed, the test suite will start reporting a
+false negative again, and this will be easy to fix by simply removing
+the pdf-specific reference image.
+
+Here are the reported poppler bugs and the tests they affect:
+
+Poppler doesn't correctly handle gradients with transparency
+https://bugs.freedesktop.org/show_bug.cgi?id=12144
+--------------------------------------------------
+gradient-alpha
+linear-gradient
+trap-clip
+linear-gradient
+linear-gradient-reflect
+
+