buildframework/helium/tools/common/test/test_scanlog.ant.xml
author wbernard
Tue, 27 Apr 2010 08:33:08 +0300
changeset 587 85df38eb4012
parent 217 0f5e3a7fb6af
child 588 c7c26511138f
child 618 df88fead2976
permissions -rw-r--r--
helium_9.0-a7879c935424
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
217
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
     2
<!-- 
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
     3
============================================================================ 
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
     4
Name        : test_scanlog.ant.xml 
217
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
     5
Part of     : Helium 
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
     6
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
     7
Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
     8
All rights reserved.
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
     9
This component and the accompanying materials are made available
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    10
under the terms of the License "Eclipse Public License v1.0"
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    11
which accompanies this distribution, and is available
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    12
at the URL "http://www.eclipse.org/legal/epl-v10.html".
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    13
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    14
Initial Contributors:
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    15
Nokia Corporation - initial contribution.
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    16
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    17
Contributors:
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    18
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    19
Description:
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    20
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    21
============================================================================
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    22
-->
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    23
<project name="test_scanlog" xmlns:au="org.apache.ant.antunit" xmlns:hlm="http://www.nokia.com/helium">
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    24
    <description>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    25
        Testing targets
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    26
    </description>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    27
    <property environment="env"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    28
    
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    29
    
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    30
    <property name="helium.dir" location="../../.." />
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    31
    <import file="../../../helium.ant.xml"/>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    32
    <property name="scanlog.temp.dir" location="${helium.build.dir}/antunit/scanlog" />
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    33
    
217
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    34
    <target name="setUp">
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    35
        <delete dir="${scanlog.temp.dir}" failonerror="false" />
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    36
        <mkdir dir="${scanlog.temp.dir}" />
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    37
    </target>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    38
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    39
    <target name="tearDown">
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    40
        <!-- delete dir="${scanlog.temp.dir}" failonerror="false" / -->
217
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    41
    </target>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    42
    
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    43
    <target name="test-scanlog-generation">
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    44
        <property name="sbs.log.file" location="${helium.dir}/tests/data/test-scanlog_helium_minibuild_ido_input_compile.log" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    45
        <hlm:metadatarecord  database="${scanlog.temp.dir}/test-scanlog-generation_db">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    46
            <hlm:sbsmetadatainput>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    47
                <fileset casesensitive="false" file="${sbs.log.file}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    48
                <metadatafilterset refid="filterset.sbs" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    49
            </hlm:sbsmetadatainput>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    50
        </hlm:metadatarecord>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    51
        
217
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    52
        <fmpp sourceFile="${helium.dir}/tools/common/templates/log/scan2_orm.html.ftl"
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    53
                     outputfile="${scanlog.temp.dir}/scanlog.scan2.html">
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    54
            <freemarkerLinks expandProperties="yes">
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    55
                macro: ${helium.dir}/tools/common/templates/macro
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    56
            </freemarkerLinks>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    57
            <data expandProperties="yes">
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    58
                dbPath: ${scanlog.temp.dir}/test-scanlog-generation_db
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    59
                logfilename: antProperty('sbs.log.file')
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    60
                ant: antProperties()
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    61
            </data>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    62
        </fmpp>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    63
        <au:assertFileExists file="${scanlog.temp.dir}/scanlog.scan2.html" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    64
        <loadfile property="scanlog" srcFile="${scanlog.temp.dir}/scanlog.scan2.html" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    65
        <au:assertTrue message="Time must be 00:00:13">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    66
            <contains string="${scanlog}" substring="00:00:13" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    67
        </au:assertTrue>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    68
        <au:assertTrue message="Check for components">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    69
            <and>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    70
                <contains string="${scanlog}" substring="sf/mw/HelloWorldAPI/group" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    71
                <contains string="${scanlog}" substring="sf/app/HelloWorldCons/group" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    72
            </and>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    73
        </au:assertTrue>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    74
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    75
    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    76
    <target name="test-cc-summary-generation">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    77
        <condition property="sbs.log.file" value="${helium.dir}/tests/data/test-scanlog_linux_helium_minibuild_ido_input_compile.log">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    78
            <os family="unix" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    79
        </condition>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    80
        <property name="sbs.log.file" location="${helium.dir}/tests/data/test-scanlog_helium_minibuild_ido_input_compile.log" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    81
        <hlm:metadatarecord  database="${scanlog.temp.dir}/test-cc-summary-generation_db">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    82
            <hlm:sbsmetadatainput>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    83
                <fileset casesensitive="false" file="${sbs.log.file}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    84
                <metadatafilterset refid="filterset.sbs" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    85
            </hlm:sbsmetadatainput>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    86
        </hlm:metadatarecord>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    87
        
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    88
        <fmpp sourceFile="${helium.dir}/tools/common/templates/log/cc_summary_metadata_orm.html.ftl"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    89
                     outputfile="${scanlog.temp.dir}/cc_summary.html">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    90
            <freemarkerLinks expandProperties="yes">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    91
                macro: ${helium.dir}/tools/common/templates/macro
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    92
            </freemarkerLinks>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    93
            <data expandProperties="yes">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    94
                dbPath: ${scanlog.temp.dir}/test-cc-summary-generation_db
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    95
                logfilename: antProperty('sbs.log.file')
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    96
                ant: antProperties()
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    97
            </data>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    98
        </fmpp>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
    99
        <au:assertFileExists file="${scanlog.temp.dir}/cc_summary.html" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   100
        <loadfile property="scanlog" srcFile="${scanlog.temp.dir}/cc_summary.html" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   101
        <au:assertTrue message="Check for components">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   102
            <and>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   103
                <contains string="${scanlog}" substring="sf/mw/HelloWorldAPI/group" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   104
                <contains string="${scanlog}" substring="sf/app/HelloWorldCons/group" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   105
            </and>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   106
        </au:assertTrue>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   107
        <au:assertTrue message="Check for 23 errors">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   108
            <contains string="${scanlog}" substring="&gt;23&lt;/td&gt;" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   109
        </au:assertTrue>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   110
        
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   111
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   112
    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   113
    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   114
    <target name="scanlog-metadata-text">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   115
        <echo message="log.dir:${env.TEMP}/" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   116
        
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   117
        <hlm:scanlogMetadataTest log="${helium.dir}/tests/data/scanlog/all_regex_type.log"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   118
            output="${helium.dir}/tests/data/test-scanlog-metadata-text.log" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   119
        <hlm:assertFileExists file="${helium.dir}/tests/data/test-scanlog-metadata-text"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   120
        <hlm:metadatarecord  database="${scanlog.temp.dir}/test-metadata-1_db">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   121
            <hlm:textmetadatainput>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   122
                <fileset casesensitive="false" file="${helium.dir}/tests/data/test-scanlog-metadata-1.log"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   123
                <metadatafilterset refid="filterset.sbs" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   124
            </hlm:textmetadatainput>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   125
        </hlm:metadatarecord>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   126
        <fmpp sourceFile="${helium.dir}/tools/common/templates/log/scan2_text_orm.html.ftl"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   127
                     outputfile="${scanlog.temp.dir}/test-scanlog-metadata-1.log.scan2.html">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   128
            <freemarkerLinks expandProperties="yes">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   129
                macro: ${helium.dir}/tools/common/templates/macro
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   130
            </freemarkerLinks>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   131
            <data expandProperties="yes">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   132
                dbPath: ${scanlog.temp.dir}/test-metadata-1_db
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   133
                ant: antProperties()
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   134
            </data>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   135
        </fmpp>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   136
        <hlm:generateBuildStatus dbfile="${scanlog.temp.dir}/test-metadata-1_db" output-dir="${helium.dir}/tests/data/" file="test-scanlog-metadata-1.log"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   137
        <hlm:assertFileExists file="${scanlog.temp.dir}/test-scanlog-metadata-1.log.scan2.html"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   138
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   139
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   140
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   141
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   142
    <hlm:signalInput id="testSBSScanlogInput" failbuild="now">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   143
        <hlm:notifierListRef refid="defaultFailNotifier" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   144
    </hlm:signalInput>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   145
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   146
    <hlm:signalListenerConfig id="testSBSScanlog" target="test-scanlog-metadata-1" message="sbs scanlog processed">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   147
        <hlm:targetCondition>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   148
            <hlm:hasSeverity severity="error" file="${env.TEMP}/signals/test-scanlog-metadata-1.log.status.xml" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   149
        </hlm:targetCondition>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   150
        <signalNotifierInput>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   151
            <signalInput refid="testSBSScanlogInput" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   152
            <notifierInput file = "${env.TEMP}/signals/test-scanlog-metadata-1.log.status.html" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   153
        </signalNotifierInput>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   154
    </hlm:signalListenerConfig>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   155
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   156
    <target name="scanlog-metadata-1">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   157
        <echo message="log.dir:${env.TEMP}/" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   158
        <property name="sbslog" location="${helium.dir}/tests/data/scanlog/all_regex_type.log" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   159
        <hlm:metadatarecord  database="${scanlog.temp.dir}/test-metadata-1_db">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   160
            <hlm:sbsmetadatainput>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   161
                <fileset casesensitive="false" file="${sbslog}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   162
                <metadatafilterset refid="filterset.sbs" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   163
            </hlm:sbsmetadatainput>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   164
        </hlm:metadatarecord>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   165
        <hlm:assertFileExists file="${sbslog}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   166
        <hlm:assertFileExists file="${sbslog}.sbs_error.log"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   167
        <fmpp sourceFile="${helium.dir}/tools/common/templates/log/scan2_orm.html.ftl"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   168
                     outputfile="${scanlog.temp.dir}/test-scanlog-metadata-1.log.scan2.html">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   169
            <freemarkerLinks expandProperties="yes">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   170
                macro: ${helium.dir}/tools/common/templates/macro
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   171
            </freemarkerLinks>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   172
            <data expandProperties="yes">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   173
                dbPath: ${scanlog.temp.dir}/test-metadata-1_db
217
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
   174
                ant: antProperties()
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
   175
            </data>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
   176
        </fmpp>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   177
        <basename property="sbslog.basename" file="${sbslog}" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   178
        <hlm:generateBuildStatus dbfile="${scanlog.temp.dir}/test-metadata-1_db" 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   179
            output-dir="${scanlog.temp.dir}" file="${sbslog.basename}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   180
        <au:assertFileExists file="${scanlog.temp.dir}/test-scanlog-metadata-1.log.scan2.html"/>
217
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
   181
    </target>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   182
217
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
   183
    
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   184
    <target name="test-metadata-signal">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   185
        <antcall target="scanlog-metadata-1" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   186
    </target>    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   187
    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   188
    <target name="test-diamonds-faults">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   189
        <condition property="sbs.log.file" value="${helium.dir}/tests/data/test-scanlog_linux_helium_minibuild_ido_input_compile.log">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   190
            <os family="unix" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   191
        </condition>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   192
        <property name="sbs.log.file" location="${helium.dir}/tests/data/test-scanlog_helium_minibuild_ido_input_compile.log" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   193
        <hlm:metadatarecord  database="${scanlog.temp.dir}/test-diamonds-faults_db">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   194
            <hlm:sbsmetadatainput>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   195
                <fileset casesensitive="false" file="${sbs.log.file}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   196
                <metadatafilterset refid="filterset.sbs" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   197
            </hlm:sbsmetadatainput>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   198
        </hlm:metadatarecord>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   199
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   200
        <fmpp sourceFile="${helium.dir}/tools/common/templates/diamonds/faults_metadata_orm.ftl"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   201
                outputfile="${scanlog.temp.dir}/compile-main.xml">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   202
            <data expandProperties="yes">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   203
                  dbPath: ${scanlog.temp.dir}/test-diamonds-faults_db
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   204
                  ant: antProperties()
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   205
            </data>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   206
        </fmpp>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   207
        <loadfile property="scanlog" srcFile="${scanlog.temp.dir}/compile-main.xml" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   208
        <au:assertTrue message="Check for components">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   209
            <and>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   210
                <contains string="${scanlog}" substring="&lt;name&gt;sf/mw/HelloWorldAPI/group&lt;/name&gt;" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   211
                <contains string="${scanlog}" substring="&lt;name&gt;sf/app/HelloWorldCons/group&lt;/name&gt;" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   212
            </and>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   213
        </au:assertTrue>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   214
        <au:assertTrue message="Check for 23 errors">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   215
            <contains string="${scanlog}" substring="&gt;23&lt;/total&gt;" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   216
        </au:assertTrue>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   217
        <au:assertTrue message="Check for 16 errors">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   218
            <contains string="${scanlog}" substring="&gt;16&lt;/total&gt;" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   219
        </au:assertTrue>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   220
        <au:assertTrue message="Check for 7 errors">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   221
            <contains string="${scanlog}" substring="&gt;7&lt;/total&gt;" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   222
        </au:assertTrue>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   223
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   224
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   225
    <target name="test-cc-summary-metadata-generation"> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   226
        <hlm:metadatarecord  database="${scanlog.temp.dir}/test_metadata_db">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   227
            <hlm:antmetadatainput>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   228
                <fileset casesensitive="false" file="${helium.dir}/tests/data/test_minibuild_ido_ccm_get_input.log"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   229
                <fileset casesensitive="false" file="${helium.dir}/tests/data/test_minibuild_compile_roms.log"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   230
                <metadatafilterset refid="filterset.common" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   231
            </hlm:antmetadatainput>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   232
            <hlm:sbsmetadatainput>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   233
                <fileset casesensitive="false" file="${helium.dir}/tests/data/test-scanlog_cc_summary_compile.log"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   234
                <metadatafilterset refid="filterset.sbs" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   235
            </hlm:sbsmetadatainput>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   236
            <hlm:policymetadatainput>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   237
                <fileset casesensitive="false" file="${helium.dir}/tests/data/test_minibuild_compile_validate-policy.summary.xml"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   238
                <metadatafilterset refid="filterset.common" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   239
            </hlm:policymetadatainput>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   240
        </hlm:metadatarecord>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   241
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   242
        <fmpp sourceFile="${helium.dir}/tools/common/templates/log/cc_summary_metadata_orm.html.ftl"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   243
                     outputfile="${scanlog.temp.dir}/cc_summary.html">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   244
            <data expandProperties="yes">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   245
                dbPath:  ${scanlog.temp.dir}/test_metadata_db
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   246
                ant: antProperties()
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   247
            </data>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   248
        </fmpp>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   249
        
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   250
        <au:assertFileExists file="${scanlog.temp.dir}/cc_summary.html" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   251
        <loadfile property="cclog" srcFile="${scanlog.temp.dir}/cc_summary.html" /> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   252
        <au:assertTrue message="Check for synergy errors"> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   253
            <contains string="${cclog}" substring="Exception: Could not find  object TestDomain-50_200832:project:testDb#1 in the database" /> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   254
        </au:assertTrue> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   255
        <au:assertTrue message="Check for build errors"> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   256
            <contains string="${cclog}" substring="test-scanlog_cc_summary_compile.log" /> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   257
        </au:assertTrue> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   258
        <au:assertTrue message="Check for 24 build errors"> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   259
            <contains string="${cclog}" substring="24" /> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   260
        </au:assertTrue> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   261
        <au:assertTrue message="Check for 23 build errors"> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   262
            <contains string="${cclog}" substring="23" /> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   263
        </au:assertTrue> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   264
        <au:assertTrue message="Check for validate policy errors"> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   265
            <and>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   266
                <contains string="${cclog}" substring="s60\test\tools\uitools\DOM" /> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   267
                <contains string="${cclog}" substring="s60\test\tools\uitools\DOM\SAX2DOM" /> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   268
            </and>                
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   269
        </au:assertTrue> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   270
        <au:assertTrue message="Check for Roms"> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   271
            <contains string="${cclog}" substring="WARNING: Nothing to build" /> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   272
        </au:assertTrue> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   273
    </target>    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   274
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   275
    <target name="test-missing-files-clean-compile"> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   276
        <property name="sbs.log.file" value="${helium.dir}/tests/data/test_helium_minibuild_ido_input_clean_armv5_compile.log"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   277
        <hlm:metadatarecord  database="${scanlog.temp.dir}/test_compile_clean_metadata_db">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   278
            <hlm:sbsmetadatainput>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   279
                <fileset casesensitive="false" file="${sbs.log.file}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   280
                <metadatafilterset refid="filterset.sbs" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   281
            </hlm:sbsmetadatainput>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   282
        </hlm:metadatarecord>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   283
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   284
        <fmpp sourceFile="${helium.dir}/tools/common/templates/log/scan2_orm.html.ftl"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   285
                     outputfile="${scanlog.temp.dir}/test_scan2.html">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   286
            <freemarkerLinks expandProperties="yes">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   287
                    macro: ${helium.dir}/tools/common/templates/macro
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   288
            </freemarkerLinks>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   289
            <data expandProperties="yes">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   290
                dbPath: ${scanlog.temp.dir}/test_compile_clean_metadata_db
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   291
                logfilename: ${sbs.log.file}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   292
                ant: antProperties()
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   293
            </data>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   294
        </fmpp>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   295
        
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   296
        <au:assertFileExists file="${scanlog.temp.dir}/test_scan2.html" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   297
        <loadfile property="scanog" srcFile="${scanlog.temp.dir}/test_scan2.html" /> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   298
        <au:assertFalse message="Check for Missing Files"> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   299
            <contains string="${scanog}" substring="MISSING: " /> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   300
        </au:assertFalse> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   301
    </target>    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   302
   
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   303
   
217
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
   304
</project>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
   305