webengine/osswebengine/WebKitTools/CodeCoverage/README
author tahirm@symbian.org
Tue, 29 Sep 2009 14:16:06 +0100
branchRCL_1
changeset 9 9cbc205f4c45
parent 0 dd21522fd290
permissions -rw-r--r--
Created branch for release codeline RCL_1, for maintenance changes to the Symbian^2 platform

Generate coverage on Mac

call WebKitTools/Script/generate-coverage-data

or by hand


# delete
find . -name '*.gcda' -delete

# build, -framework CoreFoundation might suffice as well
WebKitTools/Scripts/build-webkit GCC_GENERATE_TEST_COVERAGE_FILES=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES EXTRA_LINK=" -ftest-coverage -fprofile-arcs" OTHER_CFLAGS=" -MD " OTHER_LDFLAGS=" -ftest-coverage -fprofile-arcs -framework AppKit"
WebKitTools/Scripts/run-webkit-tests
WebKitTools/Scripts/run-javascriptcore-tests GCC_GENERATE_TEST_COVERAGE_FILES=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES EXTRA_LINK=" -ftest-coverage -fprofile-arcs" OTHER_CFLAGS=" -MD " OTHER_LDFLAGS=" -ftest-coverage -fprofile-arcs -framework AppKit"


# Collect files
WebKitTools/CodeCoverage/run-generate-coverage-data <RUN_ID> ../coverage-results/


# Generate graph
WebKitTools/CodeCoverage/regenerate-coverage-display ../coverage-results/ ../coverage-results/html