Bug 206925

Summary: [GTK] Extra packages needed to successfully run API tests (cups-daemon and fonts-liberation)
Product: WebKit Reporter: Carlos Alberto Lopez Perez <clopez>
Component: Tools / TestsAssignee: Carlos Alberto Lopez Perez <clopez>
Status: RESOLVED FIXED    
Severity: Normal CC: agomez, aperez, bugs-noreply, cgarcia, clopez, commit-queue, dpino, ews-watchlist, jdiggs, ltilve, pnormand, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=202361
Attachments:
Description Flags
Patch none

Description Carlos Alberto Lopez Perez 2020-01-29 04:26:57 PST
While deploying the new EWS bots for GTK API tests ( bug 202361 ) I found the following tests where failing on those bots but not on the release bot:


Unexpected failures (2)
    /TestWebCore
        ComplexTextControllerTest.TotalWidthWithJustification
        ComplexTextControllerTest.InitialAdvanceInRTLNoOrigins

Unexpected timeouts (5)
    /WebKit2Gtk/TestPrinting
        /webkit/WebKitWebView/print
        /webkit/WebKitPrintOperation/close-after-print
        /webkit/WebKitPrintOperation/print-errors
        /webkit/WebKitPrintOperation/print
        /webkit/WebKitPrintOperation/custom-widget

Upon investigation, it turns out that:

* For API printing tests its needed to have installed cups-daemon (its not enough with libcups-dev, you need the daemon running as well)
* For ComplexTextControllerTest failures you need to have installed the package fonts-liberation.
  Liberation should be selected for Times. In other words, this sould be the output of this command: 
$ fc-match -v Times|grep file
	file: "/usr/share/fonts/truetype/liberation/LiberationSerif-Regular.ttf"(w)
Comment 1 Carlos Alberto Lopez Perez 2020-01-29 04:41:51 PST
Created attachment 389121 [details]
Patch
Comment 2 WebKit Commit Bot 2020-01-29 05:48:13 PST
Comment on attachment 389121 [details]
Patch

Clearing flags on attachment: 389121

Committed r255353: <https://trac.webkit.org/changeset/255353>
Comment 3 WebKit Commit Bot 2020-01-29 05:48:15 PST
All reviewed patches have been landed.  Closing bug.
Comment 4 Radar WebKit Bug Importer 2020-01-29 05:49:12 PST
<rdar://problem/58988842>
Comment 5 Philippe Normand 2020-01-29 06:14:26 PST
FTR this isn't an issue in the upcoming Flatpak SDK:

webkit-flatpak --command=bash
$ fc-match -v Times|grep file
file: "/usr/share/fonts/liberation-fonts/LiberationSerif-Regular.ttf"(w)