Home | History | Annotate | Download | only in CodeCoverage
      1 Generate coverage on Mac
      2 
      3 call Tools/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 Tools/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 Tools/Scripts/run-webkit-tests
     14 Tools/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 Tools/CodeCoverage/run-generate-coverage-data <RUN_ID> ../coverage-results/
     19 
     20 
     21 # Generate graph
     22 Tools/CodeCoverage/regenerate-coverage-display ../coverage-results/ ../coverage-results/html
     23