Shuffle some code around in preparation for a change to how poseAsWebKitApp works.
[WebKit-https.git] / WebKitTools / CodeCoverage / README
1 Generate coverage on Mac
2
3 call WebKitTools/Script/generate-coverage-data
4
5 or by hand
6
7
8 # delete
9 find . -name '*.gcda' -delete
10
11 # build, -framework CoreFoundation might suffice as well
12 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"
13 WebKitTools/Scripts/run-webkit-tests
14 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"
15
16
17 # Collect files
18 WebKitTools/CodeCoverage/run-generate-coverage-data <RUN_ID> ../coverage-results/
19
20
21 # Generate graph
22 WebKitTools/CodeCoverage/regenerate-coverage-display ../coverage-results/ ../coverage-results/html