deprecated/buildtools/commonbldutils/sbsv2htmlscanlog/sbsv2scanlog.pm
author kelvzhu
Wed, 27 Oct 2010 16:03:51 +0800
changeset 662 60be34e1b006
parent 655 3f65fd25dfd4
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
655
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     1
#!perl -w
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     2
# Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     3
# All rights reserved.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     4
# This component and the accompanying materials are made available
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     5
# under the terms of "Eclipse Public License v1.0"
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     6
# which accompanies this distribution, and is available
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     7
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     8
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     9
# Initial Contributors:
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    10
# Nokia Corporation - initial contribution.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    11
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    12
# Contributors:
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    13
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    14
# Description:
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    15
# summarise an automated build log
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    16
# documentation available in generic\tools\e32toolp\docs\scanlog.txt
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    17
# please update the documentation when modifying this file
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    18
# 
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    19
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    20
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    21
package sbsv2scanlog;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    22
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    23
use strict;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    24
use Carp;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    25
use FindBin;		# for FindBin::Bin
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    26
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    27
use lib "$FindBin::Bin/../../tools/build/scanlog"; # For running in source
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    28
use lib "$FindBin::Bin"; # For running in \tools
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    29
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    30
use Scanlog;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    31
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    32
# CheckForErrors
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    33
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    34
# Inputs
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    35
# $line - Line of text to check
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    36
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    37
# Outputs
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    38
# Return true for presence of error in the line
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    39
# Return false for no error found
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    40
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    41
# Description
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    42
# This function matches the input against a known set of Error Strings
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    43
sub CheckForErrors
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    44
{
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    45
  my ($line) = @_;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    46
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    47
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    48
    # Check Original scanlog rules
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    49
    return &Scanlog::CheckForErrors($line);
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    50
	
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    51
	# Not already returned so return false
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    52
	return 0;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    53
}
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    54
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    55
# CheckForRemarks
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    56
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    57
# Inputs
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    58
# $iLine - Line of text to check
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    59
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    60
# Outputs
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    61
# Return true for presence of Warning in the line according to the warning codes
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    62
# defined in the checkList array
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    63
# The list is the current known EABI warnings which are considered to be 
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    64
# Remarks
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    65
# Return false for no Warning found
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    66
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    67
# Description
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    68
# This function matches the input against a known set of Warning Strings defined
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    69
# in the array CheckList
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    70
sub CheckForRemarks
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    71
{
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    72
    my ($line) = @_;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    73
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    74
    #/sf/app/messaging/email/pop3andsmtpmtm/clientmtms/group/imcm.rls:36:54: warning: no newline at end of file
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    75
    if ($line =~ /:\d+:\d+: warning: no newline at end of file/)
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    76
    {
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    77
      return 1;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    78
    }
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    79
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    80
    # Check Original scanlog rules
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    81
    return &Scanlog::CheckForRemarks($line);
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    82
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    83
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    84
	# Not already returned so return false
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    85
    return 0;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    86
	
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    87
}
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    88
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    89
# CheckForWarnings
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    90
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    91
# Inputs
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    92
# $iLine - Line of text to check
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    93
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    94
# Outputs
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    95
# Return true for presence of Warning in the line
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    96
# Return false for no Warning found
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    97
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    98
# Description
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    99
# This function matches the input against a known set of Warning Strings
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   100
sub CheckForWarnings
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   101
{
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   102
  my ($line) = @_;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   103
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   104
    # Check Original scanlog rules
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   105
    return &Scanlog::CheckForWarnings($line);
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   106
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   107
	# Not already returned so return false
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   108
	return 0;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   109
}
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   110
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   111
# CheckForIgnore
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   112
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   113
# Inputs
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   114
# $iLine - Line of text to check
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   115
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   116
# Outputs
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   117
# Return true if line can be ignored
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   118
# Return false if line cannot be ignored
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   119
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   120
# Description
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   121
# This function matches the input against a known set of Warning Strings which can be ignored
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   122
sub CheckForIgnore
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   123
{
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   124
  my ($line) = @_;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   125
  
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   126
    # Check Original scanlog rules
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   127
    return &Scanlog::CheckForIgnore($line);
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   128
	
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   129
	# Not already returned so return false
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   130
	return 0;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   131
}
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   132
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   133
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   134
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   135
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   136
# CheckForNotBuilt
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   137
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   138
# Inputs
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   139
# $iLine - Line of text to check
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   140
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   141
# Outputs
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   142
# Return true for presence of Warning in the line
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   143
# Return false for no Warning found
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   144
# $iNotBuilt - Name of thing not built
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   145
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   146
# Description
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   147
# This function matches the input against a known set of Strings for things not built
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   148
sub CheckForNotBuilt
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   149
{
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   150
  my ($line) = @_;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   151
  
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   152
    # Check Original scanlog rules
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   153
    return &Scanlog::CheckForNotBuilt($line);
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   154
	
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   155
	# Not already returned so return false
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   156
	return 0;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   157
}
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   158
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   159
# CheckForMissing
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   160
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   161
# Inputs
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   162
# $iLine - Line of text to check
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   163
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   164
# Outputs
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   165
# Return true for presence of Warning in the line
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   166
# Return false for no Warning found
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   167
# $iNotBuilt - Name of thing not built
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   168
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   169
# Description
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   170
# This function matches the input against a known set of Strings for things not built
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   171
sub CheckForMissing
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   172
{
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   173
  my ($line) = @_;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   174
  
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   175
    # Check Original scanlog rules
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   176
    return &Scanlog::CheckForMissing($line);
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   177
	
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   178
	# Not already returned so return false
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   179
	return 0;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   180
}
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   181
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   182
# CheckForRealTimeErrors
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   183
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   184
# Inputs
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   185
# $iLine - Line of text to check
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   186
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   187
# Outputs
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   188
# Return true for presence of a Real Time Error in the line
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   189
#        plus string detailing error (if available)
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   190
# Return false for no Real Time Error found
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   191
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   192
# Description
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   193
# This function matches the input against a known set of Error Strings
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   194
# At the time of adding this subroutine, such error strings were only reported by P4GetSource.pm
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   195
# Scripts calling this subroutine should note that, for example, lines beginning with "ERROR:" will
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   196
# also be considered to be errors by subroutine CheckForErrors, above. 
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   197
sub CheckForRealTimeErrors
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   198
{
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   199
  my ($line) = @_;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   200
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   201
    # Check Original scanlog rules
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   202
    return &Scanlog::CheckForRealTimeErrors($line);
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   203
	
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   204
	# Not already returned so return False
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   205
	return 0;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   206
}
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   207
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   208
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   209
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   210
# CheckForMigrationNotes
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   211
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   212
# Inputs
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   213
# $iLine - Line of text to check
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   214
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   215
# Outputs
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   216
# Return true for presence of Migration_Note in the line
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   217
# Return false for no Migration_Note found
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   218
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   219
# Description
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   220
# This function matches the input against a known set of Migration_Note Strings
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   221
sub CheckForMigrationNotes
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   222
{
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   223
  my ($line,$component) = @_;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   224
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   225
  if ($component =~ /STLPORT/i)
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   226
  {
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   227
    # ../../src/iostream.cpp:164: warning: 'result' might be used uninitialized in this function 
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   228
    if ($line =~ /:\d+: warning:.*?might be used uninitialized in this function/)
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   229
    {
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   230
      return 1;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   231
    }
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   232
  }
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   233
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   234
  #cpp: file.h:48:8: warning: extra tokens at end of #endif directive
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   235
  if ($line =~ /:\d+:\d+: warning: extra tokens at end of #endif directive/)
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   236
  {
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   237
    return 1;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   238
  }
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   239
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   240
  #raptor/lib/flm/export.flm:56: warning: overriding commands for target `S:/epoc32/rom/include/midp20_installer.iby'
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   241
  if ($line =~ /:\d+: warning: overriding commands for target/)
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   242
  {
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   243
    return 1;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   244
  }
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   245
  
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   246
  #raptor/lib/flm/export.flm:56: warning: ignoring old commands for target `S:/epoc32/rom/include/midp20_installer.iby'
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   247
  if ($line =~ /:\d+: warning: ignoring old commands for target/)
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   248
  {
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   249
    return 1;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   250
  }
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   251
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   252
  #\sf\app\techview\techviewplat\techviewuiklaf\resource\eikcoctl.rls(38) : Warning: (003) rls item redefined.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   253
  if ($line =~ /\(\d+\)\s+: Warning: (003) rls item redefined/)
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   254
  {
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   255
    return 1;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   256
  }
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   257
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   258
    # Check Original scanlog rules
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   259
    return &Scanlog::CheckForMigrationNotes($line);
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   260
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   261
    # Not already returned so return False
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   262
    return 0;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   263
}
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   264
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   265
# CheckForComponentExitCodesToMigrate
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   266
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   267
# Inputs
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   268
# $iLine - Line of text to check
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   269
# $component - Current Component
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   270
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   271
# Outputs
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   272
# Return true for to ignore this special component error
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   273
# Return false for to not ignore this special component error
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   274
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   275
# Description
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   276
# This function matches the input against a known set of Components and Strings to ignore the later non zero exit code of.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   277
sub CheckForComponentExitCodesToMigrate
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   278
{
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   279
  my ($line,$component) = @_;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   280
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   281
  if ($component =~ /Integrator ARM1136 Core Module/ || $component =~ /OMAP H2 BSP|omaph2bsp/ )
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   282
  {
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   283
    # M://epoc32/tools/makefile_templates/base/bootstrap.mk:213: *** missing `endef', unterminated `define'.  Stop.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   284
    # if ($line =~ /\/epoc32\/tools\/makefile_templates\/base\/bootstrap\.mk:\d+: \*\*\* missing `endef', unterminated `define'\.  Stop\./)
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   285
    if ($line =~ /\/epoc32\/tools\/makefile_templates\/base\/bootstrap\.mk:\d+: \*\*\* multiple target patterns\.  Stop\./)
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   286
    {
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   287
      return 1;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   288
    }
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   289
    #/bin/sh: make: command not found
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   290
    if ($line =~ /\/bin\/sh: make: command not found/)
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   291
    {
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   292
      return 1;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   293
    }
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   294
  } else {
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   295
    return 0;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   296
  }
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   297
}
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   298
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   299
# CheckForAdvisoryNotes
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   300
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   301
# Inputs
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   302
# $iLine - Line of text to check
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   303
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   304
# Outputs
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   305
# Return true if line can be ignored
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   306
# Return false if line cannot be ignored
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   307
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   308
# Description
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   309
# This function matches the input against a known set of Strings
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   310
sub CheckForAdvisoryNotes
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   311
{
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   312
  my ($line) = @_;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   313
  
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   314
    # Check Original scanlog rules
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   315
    return &Scanlog::CheckForAdvisoryNotes($line);
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   316
	
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   317
	# Not already returned so return false
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   318
	return 0;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   319
}
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   320
1;