Changeset 21848 in webkit
- Timestamp:
- May 28, 2007 1:18:20 PM (17 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 12 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r21839 r21848 1 2007-05-28 Holger Freyther <zecke@selfish.org> 2 3 Reviewed by Mark Rowe. 4 5 Add scripts and data to generate a coverage data for WebKit. 6 7 * CodeCoverage/README: Added. 8 * CodeCoverage/amber.png: Added. 9 * CodeCoverage/cov.py: Added. 10 * CodeCoverage/emerald.png: Added. 11 * CodeCoverage/gcov.css: Added. 12 * CodeCoverage/glass.png: Added. 13 * CodeCoverage/regenerate-coverage-display: Added. 14 * CodeCoverage/ruby.png: Added. 15 * CodeCoverage/run-generate-coverage-data: Added. 16 * CodeCoverage/snow.png: Added. 17 * Scripts/build-webkit: Add --coverage by Niko 18 * Scripts/check-for-global-initializers: Skip the check on coverage builds 19 * Scripts/generate-coverage-data: Added. 20 * Scripts/run-javascriptcore-tests: Add --coverage by Niko 21 1 22 2007-05-29 Mark Rowe <mrowe@apple.com> 2 23 -
trunk/WebKitTools/Scripts/build-webkit
r21235 r21848 44 44 my $xpathSupport = 1; 45 45 my $xsltSupport = 1; 46 my $coverageSupport = 0; 46 47 my $colorSupport = 1; # Default: colorize make output 47 48 … … 50 51 'xpath!' => \$xpathSupport, 51 52 'xslt!' => \$xsltSupport, 53 'coverage!' => \$coverageSupport, 52 54 'color!' => \$colorSupport); 53 55 … … 65 67 push @overrideFeatureDefinesOption, "ENABLE_XSLT" if $xsltSupport; 66 68 my $overrideFeatureDefinesString = "FEATURE_DEFINES=" . join(" ", @overrideFeatureDefinesOption); 69 70 my @coverageSupportOption = (); 71 if ($coverageSupport) { 72 push @coverageSupportOption, "GCC_GENERATE_TEST_COVERAGE_FILES=YES"; 73 push @coverageSupportOption, "GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES"; 74 push @coverageSupportOption, "EXTRA_LINK= -ftest-coverage -fprofile-arcs"; 75 push @coverageSupportOption, "OTHER_CFLAGS= -MD"; 76 push @coverageSupportOption, "OTHER_LDFLAGS= -ftest-coverage -fprofile-arcs -framework AppKit"; 77 } 67 78 68 79 # Check that all the project directories are there. … … 115 126 $result = buildQMakeProject($dir, $colorSupport); 116 127 } elsif (isOSX()) { 117 $result = system "xcodebuild", "-project", "$dir.xcodeproj", @options, $overrideFeatureDefinesString, @ ARGV;128 $result = system "xcodebuild", "-project", "$dir.xcodeproj", @options, $overrideFeatureDefinesString, @coverageSupportOption, @ARGV; 118 129 } elsif (isCygwin()) { 119 130 if ($dir eq "WebKit") { -
trunk/WebKitTools/Scripts/check-for-global-initializers
r21839 r21848 39 39 my $target = $ENV{'TARGET_NAME'}; 40 40 my $variant = $ENV{'CURRENT_VARIANT'}; 41 my $coverageBuild = $ENV{'WEBKIT_COVERAGE_BUILD'}; 41 42 42 43 $arch = $ENV{'NATIVE_ARCH'} if !$arch; # for Xcode 2.1, which does not have CURRENT_ARCH … … 107 108 } 108 109 109 if ($sawError ) {110 if ($sawError and !$coverageBuild) { 110 111 unlink $executablePath; 111 112 exit 1; -
trunk/WebKitTools/Scripts/run-javascriptcore-tests
r21557 r21848 31 31 use strict; 32 32 use FindBin; 33 use Getopt::Long qw(:config pass_through); 33 34 use lib $FindBin::Bin; 34 35 use webkitdirs; 35 36 use POSIX; 37 38 my $coverageSupport = 0; 39 GetOptions('coverage!' => \$coverageSupport); 40 41 my @coverageSupportOption = (); 42 if ($coverageSupport) { 43 push @coverageSupportOption, "GCC_GENERATE_TEST_COVERAGE_FILES=YES"; 44 push @coverageSupportOption, "GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES"; 45 push @coverageSupportOption, "EXTRA_LINK= -ftest-coverage -fprofile-arcs"; 46 push @coverageSupportOption, "OTHER_CFLAGS= -MD"; 47 push @coverageSupportOption, "OTHER_LDFLAGS= -ftest-coverage -fprofile-arcs -framework AppKit"; 48 } 36 49 37 50 # determine configuration … … 51 64 } else { 52 65 push( @xcodeArgs, $arg ); 53 54 66 } 55 67 } … … 63 75 my $result; 64 76 if (isOSX()) { 65 $result = system "xcodebuild", "-project", "JavaScriptCore.xcodeproj", "-target", "testkjs", @options, @ xcodeArgs;77 $result = system "xcodebuild", "-project", "JavaScriptCore.xcodeproj", "-target", "testkjs", @options, @coverageSupportOption, @xcodeArgs; 66 78 }elsif (isCygwin()) { 67 79 $result = buildVisualStudioProject( "JavaScriptCore" );
Note: See TracChangeset
for help on using the changeset viewer.