Changeset 150285 in webkit


Ignore:
Timestamp:
May 17, 2013 12:33:12 PM (11 years ago)
Author:
ddkilzer@apple.com
Message:

Add tests for shouldIgnoreLine() in filter-build-webkit
Part 2 of 3: <http://webkit.org/b/116247>

Reviewed by Benjamin Poulain.

  • Scripts/filter-build-webkit:

(shouldIgnoreLine): Add. Extract code from global scope into
subroutine to make it testable.

  • Scripts/webkitperl/filter-build-webkit_unittest/shouldIgnoreLine_unittests.pl: Add.

Tests shouldIgnoreLine() using output from a real build
transcript.

Location:
trunk/Tools
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r150284 r150285  
     12013-05-17  David Kilzer  <ddkilzer@apple.com>
     2
     3        Add tests for shouldIgnoreLine() in filter-build-webkit
     4        Part 2 of 3: <http://webkit.org/b/116247>
     5
     6        Reviewed by Benjamin Poulain.
     7
     8        * Scripts/filter-build-webkit:
     9        (shouldIgnoreLine): Add.  Extract code from global scope into
     10        subroutine to make it testable.
     11        * Scripts/webkitperl/filter-build-webkit_unittest/shouldIgnoreLine_unittests.pl: Add.
     12        Tests shouldIgnoreLine() using output from a real build
     13        transcript.
     14
    1152013-05-17  Ryosuke Niwa  <rniwa@webkit.org>
    216
  • trunk/Tools/Scripts/filter-build-webkit

    r150272 r150285  
    6767sub setLogfileOption($$);
    6868sub setOutputFormatOption($$);
     69sub shouldIgnoreLine($);
    6970sub usageAndExit();
    7071
     
    128129    chomp($line);
    129130
    130     next if $line =~ /^\s*$/;
    131     next if $line =~ /^Build settings from command line:/;
    132     next if $line =~ /make: Nothing to be done for `all'\./;
    133     next if $line =~ /^JavaScriptCore\/create_hash_table/;
    134     next if $line =~ /JavaScriptCore.framework\/PrivateHeaders\/create_hash_table/;
    135     next if $line =~ /^JavaScriptCore\/pcre\/dftables/;
    136     next if $line =~ /^Creating hashtable for /;
    137     next if $line =~ /^Wrote output to /;
    138     next if $line =~ /^(touch|perl|cat|rm -f|bison|flex|python|\/usr\/bin\/g\+\+|gperf|echo|sed|if \[ \-f|WebCore\/generate-export-file) /;
    139     next if $line =~ /^UNDOCUMENTED: /;
    140     next if $line =~ /libtool.*has no symbols/;
    141     next if $line =~ /^# Lower case all the values, as CSS values are case-insensitive$/;
    142     next if $line =~ /^if sort /;
    143     next if $line =~ /^    /;
    144     next if $line =~ /^printf /;
    145     next if $line =~ /^offlineasm: Nothing changed/;
    146     next if $line =~ /^Showing first/;
     131    next if shouldIgnoreLine($line);
    147132
    148133    if ($line =~ /^={10}/) {
     
    226211    $outputFormat = $value;
    227212}
     213
     214sub shouldIgnoreLine($)
     215{
     216    my ($line) = @_;
     217
     218    return 1 if $line =~ /^\s*$/;
     219    return 1 if $line =~ /^Build settings from command line:/;
     220    return 1 if $line =~ /make: Nothing to be done for `all'\./;
     221    return 1 if $line =~ /^JavaScriptCore\/create_hash_table/;
     222    return 1 if $line =~ /JavaScriptCore.framework\/PrivateHeaders\/create_hash_table/;
     223    return 1 if $line =~ /^JavaScriptCore\/pcre\/dftables/;
     224    return 1 if $line =~ /^Creating hashtable for /;
     225    return 1 if $line =~ /^Wrote output to /;
     226    return 1 if $line =~ /^(touch|perl|cat|rm -f|bison|flex|python|\/usr\/bin\/g\+\+|gperf|echo|sed|if \[ \-f|WebCore\/generate-export-file) /;
     227    return 1 if $line =~ /^UNDOCUMENTED: /;
     228    return 1 if $line =~ /libtool.*has no symbols/;
     229    return 1 if $line =~ /^# Lower case all the values, as CSS values are case-insensitive$/;
     230    return 1 if $line =~ /^if sort /;
     231    return 1 if $line =~ /^    /;
     232    return 1 if $line =~ /^printf /;
     233    return 1 if $line =~ /^offlineasm: Nothing changed/;
     234    return 1 if $line =~ /^Showing first/;
     235
     236    return 0;
     237}
Note: See TracChangeset for help on using the changeset viewer.