buildframework/helium/tools/common/test/test_scanlog.ant.xml
author wbernard
Fri, 13 Aug 2010 14:59:05 +0300
changeset 628 7c4a911dc066
parent 588 c7c26511138f
permissions -rw-r--r--
helium_11.0.0-e00f171ca185
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="../../.." />
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    31
    <import file="../../../build.xml"/>
217
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>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
    70
                <contains string="${scanlog}" substring="sf/mw/helloworldapi/group" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
    71
                <contains string="${scanlog}" substring="sf/app/helloworldcons/group" />
587
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">
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
    82
            <hlm:sbsmetadatainput checkMissing="true">
587
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>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   103
                <contains string="${scanlog}" substring="sf/mw/helloworldapi/group" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   104
                <contains string="${scanlog}" substring="sf/app/helloworldcons/group" />
587
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>
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   107
        <au:assertTrue message="Check for 7 errors">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   108
            <contains string="${scanlog}" substring="&gt;7&lt;/td&gt;" />
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   109
        </au:assertTrue>
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   110
        <au:assertTrue message="Check for 16 errors">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   111
            <contains string="${scanlog}" substring="&gt;16&lt;/td&gt;" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   112
        </au:assertTrue>        
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   113
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   114
    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   115
    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   116
    <target name="scanlog-metadata-text">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   117
        <echo message="log.dir:${env.TEMP}/" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   118
        
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   119
        <hlm:scanlogMetadataTest log="${helium.dir}/tests/data/scanlog/all_regex_type.log"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   120
            output="${helium.dir}/tests/data/test-scanlog-metadata-text.log" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   121
        <hlm:assertFileExists file="${helium.dir}/tests/data/test-scanlog-metadata-text"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   122
        <hlm:metadatarecord  database="${scanlog.temp.dir}/test-metadata-1_db">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   123
            <hlm:textmetadatainput>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   124
                <fileset casesensitive="false" file="${helium.dir}/tests/data/test-scanlog-metadata-1.log"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   125
                <metadatafilterset refid="filterset.sbs" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   126
            </hlm:textmetadatainput>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   127
        </hlm:metadatarecord>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   128
        <fmpp sourceFile="${helium.dir}/tools/common/templates/log/scan2_text_orm.html.ftl"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   129
                     outputfile="${scanlog.temp.dir}/test-scanlog-metadata-1.log.scan2.html">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   130
            <freemarkerLinks expandProperties="yes">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   131
                macro: ${helium.dir}/tools/common/templates/macro
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   132
            </freemarkerLinks>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   133
            <data expandProperties="yes">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   134
                dbPath: ${scanlog.temp.dir}/test-metadata-1_db
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   135
                ant: antProperties()
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   136
            </data>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   137
        </fmpp>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   138
        <hlm:generateBuildStatus dbfile="${scanlog.temp.dir}/test-metadata-1_db" output-dir="${helium.dir}/tests/data/" file="${helium.dir}/tests/data/test-scanlog-metadata-1.log"/>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   139
        <hlm:assertFileExists file="${scanlog.temp.dir}/test-scanlog-metadata-1.log.scan2.html"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   140
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   141
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   142
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   143
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   144
    <hlm:signalInput id="testSBSScanlogInput" failbuild="now">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   145
        <hlm:notifierListRef refid="defaultFailNotifier" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   146
    </hlm:signalInput>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   147
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   148
    <hlm:signalListenerConfig id="testSBSScanlog" target="test-scanlog-metadata-1" message="sbs scanlog processed">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   149
        <hlm:targetCondition>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   150
            <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
   151
        </hlm:targetCondition>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   152
        <signalNotifierInput>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   153
            <signalInput refid="testSBSScanlogInput" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   154
            <notifierInput file = "${env.TEMP}/signals/test-scanlog-metadata-1.log.status.html" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   155
        </signalNotifierInput>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   156
    </hlm:signalListenerConfig>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   157
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   158
    <target name="scanlog-metadata-1">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   159
        <echo message="log.dir:${env.TEMP}/" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   160
        <property name="sbslog" location="${helium.dir}/tests/data/scanlog/all_regex_type.log" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   161
        <hlm:metadatarecord  database="${scanlog.temp.dir}/test-metadata-1_db">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   162
            <hlm:sbsmetadatainput>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   163
                <fileset casesensitive="false" file="${sbslog}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   164
                <metadatafilterset refid="filterset.sbs" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   165
            </hlm:sbsmetadatainput>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   166
        </hlm:metadatarecord>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   167
        <hlm:assertFileExists file="${sbslog}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   168
        <hlm:assertFileExists file="${sbslog}.sbs_error.log"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   169
        <fmpp sourceFile="${helium.dir}/tools/common/templates/log/scan2_orm.html.ftl"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   170
                     outputfile="${scanlog.temp.dir}/test-scanlog-metadata-1.log.scan2.html">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   171
            <freemarkerLinks expandProperties="yes">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   172
                macro: ${helium.dir}/tools/common/templates/macro
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   173
            </freemarkerLinks>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   174
            <data expandProperties="yes">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   175
                dbPath: ${scanlog.temp.dir}/test-metadata-1_db
217
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
   176
                ant: antProperties()
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
   177
            </data>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
   178
        </fmpp>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   179
        <hlm:generateBuildStatus dbfile="${scanlog.temp.dir}/test-metadata-1_db" 
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   180
            output-dir="${scanlog.temp.dir}" file="${sbslog}"/>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   181
        <au:assertFileExists file="${scanlog.temp.dir}/test-scanlog-metadata-1.log.scan2.html"/>
217
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
   182
    </target>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   183
217
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
   184
    
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   185
    <target name="test-metadata-signal">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   186
        <antcall target="scanlog-metadata-1" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   187
    </target>    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   188
    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   189
    <target name="test-diamonds-faults">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   190
        <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
   191
            <os family="unix" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   192
        </condition>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   193
        <property name="sbs.log.file" location="${helium.dir}/tests/data/test-scanlog_helium_minibuild_ido_input_compile.log" />
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   194
        <copy file="${sbs.log.file}" tofile="${scanlog.temp.dir}/test-scanlog_helium_minibuild_ido_input_clean_compile.log" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   195
        <copy file="${sbs.log.file}" tofile="${scanlog.temp.dir}/test-scanlog_helium_minibuild_ido_input2_compile.log" />
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   196
        <hlm:metadatarecord  database="${scanlog.temp.dir}/test-diamonds-faults_db">
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   197
            <hlm:sbsmetadatainput checkMissing="true">            
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   198
                <fileset casesensitive="false" file="${sbs.log.file}"/>
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   199
                <fileset casesensitive="false" file="${scanlog.temp.dir}/test-scanlog_helium_minibuild_ido_input2_compile.log" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   200
                <metadatafilterset refid="filterset.sbs" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   201
            </hlm:sbsmetadatainput>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   202
            <hlm:sbsmetadatainput checkMissing="false">
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   203
                <fileset casesensitive="false" file="${scanlog.temp.dir}/test-scanlog_helium_minibuild_ido_input_clean_compile.log" />
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   204
                <metadatafilterset refid="filterset.sbs" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   205
            </hlm:sbsmetadatainput>
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   206
            <hlm:textmetadatainput>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   207
                <fileset casesensitive="false" file="${helium.dir}/tests/data/diamonds-faults_compile.text.log"/>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   208
                <metadatafilterset refid="filterset.sbs" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   209
            </hlm:textmetadatainput>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   210
        </hlm:metadatarecord>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   211
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   212
        <fmpp sourceFile="${helium.dir}/tools/common/templates/diamonds/faults_metadata_orm.ftl"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   213
                outputfile="${scanlog.temp.dir}/compile-main.xml">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   214
            <data expandProperties="yes">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   215
                  dbPath: ${scanlog.temp.dir}/test-diamonds-faults_db
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   216
                  ant: antProperties()
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   217
            </data>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   218
        </fmpp>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   219
        <loadfile property="scanlog" srcFile="${scanlog.temp.dir}/compile-main.xml" />
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   220
        <echo>${scanlog}</echo>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   221
        <au:assertTrue message="Check for components">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   222
            <and>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   223
                <contains string="${scanlog}" substring="&lt;name&gt;sf/mw/helloworldapi/group&lt;/name&gt;" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   224
                <contains string="${scanlog}" substring="&lt;name&gt;sf/app/helloworldcons/group&lt;/name&gt;" />
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   225
                <contains string="${scanlog}" substring="&lt;generated_files&gt;46&lt;/generated_files&gt;" />
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   226
            </and>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   227
        </au:assertTrue>
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   228
        
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   229
        <au:assertTrue message="Check that diamonds-faults_compile.text.log is not pushed to diamonds">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   230
            <not>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   231
                <contains string="${scanlog}" substring="&lt;name&gt;diamonds-faults_compile.text.log&lt;/name&gt;" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   232
            </not>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   233
        </au:assertTrue>
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   234
        <au:assertTrue message="Check for 46 errors">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   235
            <contains string="${scanlog}" substring="&gt;46&lt;/total&gt;" />
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   236
        </au:assertTrue>
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   237
        <au:assertTrue message="Check for 32 errors">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   238
            <contains string="${scanlog}" substring="&gt;32&lt;/total&gt;" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   239
        </au:assertTrue>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   240
        <au:assertTrue message="Check for 14 errors">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   241
            <contains string="${scanlog}" substring="&gt;14&lt;/total&gt;" />
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   242
        </au:assertTrue>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   243
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   244
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   245
    <target name="test-diamonds-faults-package">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   246
        <condition property="sbs.log.file" value="${helium.dir}/tests/data/test-scanlog_linux_helium_minibuild_ido_input_compile.log">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   247
            <os family="unix" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   248
        </condition>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   249
        <condition property="epocroot.test" value="/" else="m:\">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   250
            <os family="unix" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   251
        </condition>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   252
        <property name="sbs.log.file" location="${helium.dir}/tests/data/test-scanlog_helium_minibuild_ido_input_compile.log" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   253
        <copy file="${sbs.log.file}" tofile="${scanlog.temp.dir}/test-scanlog_helium_minibuild_ido_input_clean_compile.log" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   254
        <copy file="${sbs.log.file}" tofile="${scanlog.temp.dir}/test-scanlog_helium_minibuild_ido_input2_compile.log" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   255
        <hlm:metadatarecord  database="${scanlog.temp.dir}/test-diamonds-faults_db">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   256
            <hlm:sysdefmetadatainput file="${helium.dir}/tests/data/test-minibuild-sysdef3.xml" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   257
            <hlm:sbsmetadatainput checkMissing="true" epocroot="${epocroot.test}">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   258
                <fileset casesensitive="false" file="${sbs.log.file}"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   259
                <fileset casesensitive="false" file="${scanlog.temp.dir}/test-scanlog_helium_minibuild_ido_input2_compile.log" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   260
                <metadatafilterset refid="filterset.sbs" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   261
            </hlm:sbsmetadatainput>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   262
            <hlm:sbsmetadatainput checkMissing="false" epocroot="${epocroot.test}">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   263
                <fileset casesensitive="false" file="${scanlog.temp.dir}/test-scanlog_helium_minibuild_ido_input_clean_compile.log" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   264
                <metadatafilterset refid="filterset.sbs" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   265
            </hlm:sbsmetadatainput>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   266
            <hlm:textmetadatainput>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   267
                <fileset casesensitive="false" file="${helium.dir}/tests/data/diamonds-faults_compile.text.log"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   268
                <metadatafilterset refid="filterset.sbs" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   269
            </hlm:textmetadatainput>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   270
        </hlm:metadatarecord>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   271
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   272
        <fmpp sourceFile="${helium.dir}/tools/common/templates/diamonds/faults_metadata_orm.ftl"
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   273
                outputfile="${scanlog.temp.dir}/compile-main.xml">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   274
            <data expandProperties="yes">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   275
                  dbPath: ${scanlog.temp.dir}/test-diamonds-faults_db
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   276
                  ant: antProperties()
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   277
            </data>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   278
        </fmpp>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   279
        <loadfile property="scanlog" srcFile="${scanlog.temp.dir}/compile-main.xml" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   280
        <echo>${scanlog}</echo>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   281
        <au:assertTrue message="Check for components">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   282
            <and>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   283
                <contains string="${scanlog}" substring="&lt;name&gt;sf/mw/helloworldapi/group&lt;/name&gt;" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   284
                <contains string="${scanlog}" substring="&lt;name&gt;sf/app/helloworldcons/group&lt;/name&gt;" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   285
            </and>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   286
        </au:assertTrue>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   287
        <au:assertTrue message="Check for generated files.">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   288
            <contains string="${scanlog}" substring="&lt;generated_files&gt;46&lt;/generated_files&gt;" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   289
        </au:assertTrue>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   290
        
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   291
        <au:assertTrue message="Check that diamonds-faults_compile.text.log is not pushed to diamonds">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   292
            <not>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   293
                <contains string="${scanlog}" substring="&lt;name&gt;diamonds-faults_compile.text.log&lt;/name&gt;" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   294
            </not>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   295
        </au:assertTrue>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   296
        <au:assertTrue message="Check for 46 errors">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   297
            <contains string="${scanlog}" substring="&gt;46&lt;/total&gt;" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   298
        </au:assertTrue>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   299
        <au:assertTrue message="Check for 32 errors">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   300
            <contains string="${scanlog}" substring="&gt;32&lt;/total&gt;" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   301
        </au:assertTrue>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   302
        <au:assertTrue message="Check for 14 errors">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   303
            <contains string="${scanlog}" substring="&gt;14&lt;/total&gt;" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   304
        </au:assertTrue>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   305
        <au:assertTrue message="Check for helloworldapi">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   306
            <contains string="${scanlog}" substring="&lt;package&gt;helloworldapi&lt;/package&gt;" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   307
        </au:assertTrue>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   308
        <au:assertTrue message="Check for helloworldcons">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   309
            <contains string="${scanlog}" substring="&lt;package&gt;helloworldcons&lt;/package&gt;" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   310
        </au:assertTrue>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   311
    </target>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   312
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   313
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   314
    <target name="test-cc-summary-metadata-generation"> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   315
        <hlm:metadatarecord  database="${scanlog.temp.dir}/test_metadata_db">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   316
            <hlm:antmetadatainput>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   317
                <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
   318
                <fileset casesensitive="false" file="${helium.dir}/tests/data/test_minibuild_compile_roms.log"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   319
                <metadatafilterset refid="filterset.common" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   320
            </hlm:antmetadatainput>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   321
            <hlm:sbsmetadatainput>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   322
                <fileset casesensitive="false" file="${helium.dir}/tests/data/test-scanlog_cc_summary_compile.log"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   323
                <metadatafilterset refid="filterset.sbs" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   324
            </hlm:sbsmetadatainput>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   325
            <hlm:policymetadatainput>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   326
                <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
   327
                <metadatafilterset refid="filterset.common" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   328
            </hlm:policymetadatainput>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   329
        </hlm:metadatarecord>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   330
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   331
        <fmpp sourceFile="${helium.dir}/tools/common/templates/log/cc_summary_metadata_orm.html.ftl"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   332
                     outputfile="${scanlog.temp.dir}/cc_summary.html">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   333
            <data expandProperties="yes">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   334
                dbPath:  ${scanlog.temp.dir}/test_metadata_db
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   335
                ant: antProperties()
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   336
            </data>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   337
        </fmpp>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   338
        
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   339
        <au:assertFileExists file="${scanlog.temp.dir}/cc_summary.html" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   340
        <loadfile property="cclog" srcFile="${scanlog.temp.dir}/cc_summary.html" /> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   341
        <au:assertTrue message="Check for synergy errors"> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   342
            <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
   343
        </au:assertTrue> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   344
        <au:assertTrue message="Check for build errors"> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   345
            <contains string="${cclog}" substring="test-scanlog_cc_summary_compile.log" /> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   346
        </au:assertTrue> 
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   347
        <au:assertTrue message="Check for 8 build errors"> 
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   348
            <contains string="${cclog}" substring="8" /> 
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   349
        </au:assertTrue> 
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   350
        <au:assertTrue message="Check for 16 build errors"> 
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   351
            <contains string="${cclog}" substring="16" /> 
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   352
        </au:assertTrue> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   353
        <au:assertTrue message="Check for validate policy errors"> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   354
            <and>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   355
                <contains string="${cclog}" substring="s60\test\tools\uitools\DOM" /> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   356
                <contains string="${cclog}" substring="s60\test\tools\uitools\DOM\SAX2DOM" /> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   357
            </and>                
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   358
        </au:assertTrue> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   359
        <au:assertTrue message="Check for Roms"> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   360
            <contains string="${cclog}" substring="WARNING: Nothing to build" /> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   361
        </au:assertTrue> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   362
    </target>    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   363
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   364
    <target name="test-missing-files-clean-compile"> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   365
        <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
   366
        <hlm:metadatarecord  database="${scanlog.temp.dir}/test_compile_clean_metadata_db">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   367
            <hlm:sbsmetadatainput>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   368
                <fileset casesensitive="false" file="${sbs.log.file}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   369
                <metadatafilterset refid="filterset.sbs" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   370
            </hlm:sbsmetadatainput>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   371
        </hlm:metadatarecord>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   372
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   373
        <fmpp sourceFile="${helium.dir}/tools/common/templates/log/scan2_orm.html.ftl"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   374
                     outputfile="${scanlog.temp.dir}/test_scan2.html">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   375
            <freemarkerLinks expandProperties="yes">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   376
                    macro: ${helium.dir}/tools/common/templates/macro
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   377
            </freemarkerLinks>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   378
            <data expandProperties="yes">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   379
                dbPath: ${scanlog.temp.dir}/test_compile_clean_metadata_db
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   380
                logfilename: ${sbs.log.file}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   381
                ant: antProperties()
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   382
            </data>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   383
        </fmpp>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   384
        
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   385
        <au:assertFileExists file="${scanlog.temp.dir}/test_scan2.html" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   386
        <loadfile property="scanog" srcFile="${scanlog.temp.dir}/test_scan2.html" /> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   387
        <au:assertFalse message="Check for Missing Files"> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   388
            <contains string="${scanog}" substring="MISSING: " /> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   389
        </au:assertFalse> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   390
    </target>    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   391
   
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   392
   
217
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
   393
</project>
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
   394