[richtext_testing] failures detected in test suite "RichTextRendering

Bug #1338203 reported by Hans Joachim Desserud
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Won't Fix
Undecided
Unassigned

Bug Description

When building the richtex_testing branch I get 7 failing tests on Ubuntu 14.04.

richtext_testing/src/graphic/text/test/data$ find . | grep wrong
./hline/wrong.png
./sub_autowidth_floatleftimg/wrong.png
./font_various_attr/wrong.png
./font_ref/wrong.png
./sub_fixedwidth_floatleftimg/wrong.png
./img_simple/wrong.png
./sub_nonfloating_valign/wrong.png

Picking an example at random (sub_nonfloating_valign) it looks like the problem is that opacity around the edges varies, so the rendered image are not pixel-perfect replication of the expected result. This is likely due to running the test suite on a different platform where the underlying graphics libraries may differ in slight ways.

Tags: graphics test

Related branches

Revision history for this message
Hans Joachim Desserud (hjd) wrote :
Revision history for this message
Hans Joachim Desserud (hjd) wrote :
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

The difference between expected and actual result, generated by ImageMagick's compare.

Revision history for this message
Tino (tino79) wrote :

On windows, the following tests fail:

 src/graphic/text/test/data/font_face/wrong.png
 src/graphic/text/test/data/font_italic/wrong.png
 src/graphic/text/test/data/font_ref/wrong.png
 src/graphic/text/test/data/font_various_attr/wrong.png
 src/graphic/text/test/data/hline/wrong.png
 src/graphic/text/test/data/img_simple/wrong.png
 src/graphic/text/test/data/sub_autowidth_floatleftimg/wrong.png
 src/graphic/text/test/data/sub_fixedwidth_floatleftimg/wrong.png
 src/graphic/text/test/data/sub_nonfloating_valign/wrong.png

Changed in widelands:
status: New → Confirmed
summary: - [richtext_testing] 7 failures detected in test suite "RichTextRendering
+ [richtext_testing] failures detected in test suite "RichTextRendering
GunChleoc (gunchleoc)
tags: added: graphics
removed: graphic
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

I came across this bug report again, and based on my comment on the merge proposal https://code.launchpad.net/~widelands-dev/widelands/richtext_testing/+merge/225733/comments/544746 (plus that it was merged a long time ago), I'd say this is fixed. Unfortunately I doubt I can add it to the build 19 milestone since that has already been released.

But when I was looking at this and trying to remembe the details, I noticed that I don't see any output to indicate that test_richtext_renderer is ran at build time any more. Is this expected, or should I file a separate issue on this one?

Revision history for this message
SirVer (sirver) wrote :

> Is this expected, or should I file a separate issue on this one?

It was removed again in http://bazaar.launchpad.net/~widelands-dev/widelands/trunk/revision/7065 because it was flaky - i.e. it worked on some systems, but got different results on others. Now that we are on SDL2 and travis it might be possible (and desirable) to bring it back.

Revision history for this message
GunChleoc (gunchleoc) wrote :
Changed in widelands:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.