Bug 84330

Summary: Script to collect coverage infos after running run-webkit-tests
Product: WebKit Reporter: Langó László <lango.laszlo>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: loki, ossy
Priority: P2 Keywords: Qt
Version: 420+   
Hardware: PC   
OS: Linux   
Bug Depends on:    
Bug Blocks: 78701    
Attachments:
Description Flags
first draft patch
none
Second version
none
3rd version
none
4th version
none
reworked version
none
reworked version
none
reworked version none

Description Langó László 2012-04-19 05:15:01 PDT
This script makes csv files from the gathered coverage data what can you import to your database.
 Output:
   - functions.csv
   - testcases.csv
   - coverage.csv
Comment 1 Langó László 2012-04-23 00:19:15 PDT
Created attachment 138302 [details]
first draft patch
Comment 2 Csaba Osztrogonác 2012-05-24 05:06:10 PDT
Comment on attachment 138302 [details]
first draft patch

View in context: https://bugs.webkit.org/attachment.cgi?id=138302&action=review

The runtime was 28 minutes for me, but I'm afraid 
a little bit beacuse of the 15G memory consumption.

> Tools/Scripts/generate-coverage-database-files:13
> +libQtWebKit = builddir + '/Release/lib/libQtWebKit.so.4.10.0'

It is libQtWebKit.so.4.8.0 for me with Qt 4.8.0 and libQtWebKit.so.5.0.0 with Qt 5.

> Tools/Scripts/generate-coverage-database-files:16
> +resultsdir = builddir + '/Release/methodcoverage/results'

But the instrumenter dumps the results into WebKitBuild/Release/methodcoverage
and not into WebKitBuild/Release/methodcoverage/results .
Comment 3 Langó László 2012-05-25 01:44:09 PDT
Created attachment 144008 [details]
Second version
Comment 4 Langó László 2012-05-30 00:58:47 PDT
Created attachment 144740 [details]
3rd version

now you must run only this script for get coverage data. This script will
- create the directories
- build webkit
- run layouttests
- create the *.csv files
Comment 5 Langó László 2012-05-30 02:36:40 PDT
Created attachment 144768 [details]
4th version

without build and run layout tests, only for collect coverage infos after running run-webkit-tests
Comment 6 Zoltan Arvai 2012-11-11 23:54:47 PST
Created attachment 173574 [details]
reworked version

Reworked version. 
It creates db in csv format with the following tables:
- libraries
- coverage
- functions
- sources
- testcases
Comment 7 Zoltan Arvai 2012-11-13 04:35:26 PST
Created attachment 173860 [details]
reworked version

updated patch to handle binaries dinamically
Comment 8 Zoltan Arvai 2012-11-13 04:38:56 PST
Created attachment 173861 [details]
reworked version

replacing previous patch that was wrongly generated
Comment 9 Jocelyn Turcotte 2014-02-03 03:50:53 PST
=== Bulk closing of Qt bugs ===

If you believe that this bug report is still relevant for a non-Qt port of webkit.org, please re-open it.

If you believe that this is still an important QtWebKit bug, please fill a new report at https://bugreports.qt-project.org and add a link to this issue. See http://qt-project.org/wiki/ReportingBugsInQt for additional guidelines.