buildframework/helium/tests/minibuilds/compile/build.xml
author Bob Rosenberg <bob.rosenberg@nokia.com>
Mon, 13 Sep 2010 13:52:18 +0100
changeset 656 88e01c8f013e
parent 628 7c4a911dc066
child 645 b8d81fa19e7d
permissions -rw-r--r--
Fix merging bug where downstream items somtimes got ignored if they appear after an upstream-only item. Also, reduce the severity of the validation error if a tech-domain is not recognised on a non-Foundation package.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
     2
<!-- 
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
     3
============================================================================ 
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
     4
Name        : build.xml
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
     5
Part of     : Helium 
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
     6
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
     7
Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
     8
All rights reserved.
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
     9
This component and the accompanying materials are made available
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    10
under the terms of the License "Eclipse Public License v1.0"
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    11
which accompanies this distribution, and is available
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    12
at the URL "http://www.eclipse.org/legal/epl-v10.html".
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    13
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    14
Initial Contributors:
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    15
Nokia Corporation - initial contribution.
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    16
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    17
Contributors:
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    18
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    19
Description:
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    20
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    21
============================================================================
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    22
-->
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    23
<project name="minibuild.compile" default="minibuild" xmlns:au="org.apache.ant.antunit" xmlns:hlm="http://www.nokia.com/helium" basedir=".">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    24
    <property environment="env" />
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    25
    <import file="../site/${env.TEAM}.ant.xml" optional="true"/>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    26
    <dirname property="config.dir" file="${ant.file.minibuild.compile}" />
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    27
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    28
    <!-- Enable Helium internal assertion checking. -->
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    29
    <property name="hlm.enable.asserts" value="1" />
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    30
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    31
    <property name="build.name" value="minibuild_compile" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    32
    <property name="build.family" value="test_minibuilds" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    33
    <property name="major.version" value="0" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    34
    <property name="minor.version" value="0" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    35
    <property name="publish.root.dir" location="${build.drive}/release" />
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    36
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    37
    <!-- For Grace upload-->
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    38
    <property name="hydra.service" value="Helium" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    39
    <property name="hydra.product" value="minibuild_compile" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    40
    <property name="release.label" value="${major.version}.${minor.version}" />
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    41
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    42
    <!-- build configuration -->
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    43
    <property name="sysdef.configurations.list" value="helium_minibuild_compile" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    44
    <path id="system.definition.files">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    45
        <fileset dir="." includes="*.sysdef.xml" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    46
    </path>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    47
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    48
    <property name="build.system" value="ec-helium" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    49
    <property name="rvct.version" value="22_616" />
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    50
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    51
    <!-- Archiving configuration-->
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    52
    <property name="zip.config.file" location="archive.cfg.xml" />
179
d8ac696cc51f helium_7.0-r14027
wbernard
parents: 1
diff changeset
    53
    <property name="zips.ee.spec.name" value="minibuild_archive" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents: 1
diff changeset
    54
    <property name="zips.ee-empty.spec.name" value="empty_minibuild_archive" />
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    55
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    56
    <!-- Synergy is not configured -->
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    57
    <property name="skip.password.validation" value="1" />
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    58
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    59
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    60
    <import file="${helium.dir}/helium.ant.xml" />
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    61
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    62
    <!-- Run the full sequence of target for the minibuild. ,minibuild-prep,compile-main,zip-ee,minibuild-check-->
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    63
    <target name="do-minibuild" depends="minibuild-cleanup,minibuild-install-new-imaker,minibuild-prep,
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    64
                compile-main,test-ec-history-option,integration-mmp-to-target,minibuild-archive,build-roms,
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    65
                minibuild-check,final" />
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    66
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    67
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    68
    <target name="do-minibuild-subcon" depends="minibuild-cleanup,minibuild-install-new-imaker,minibuild-prep,
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    69
                compile-main,minibuild-archive,minibuild-check" />
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    70
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    71
    <!--ant code coverage for minibuilds-->
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    72
    <target name="minibuild">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    73
        <antcall target="database">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    74
            <param name="home.files.only" value="false"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    75
        </antcall>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    76
        <mkdir dir="${helium.build.dir}/temp" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    77
        <hlm:coveragerecord name="${helium.build.dir}/temp/test_minibuild.xml" action="start" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    78
        <runtarget target="do-minibuild" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    79
        <hlm:coveragerecord name="${helium.build.dir}/temp/test_minibuild.xml" action="stop" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    80
        <fmpp sourcefile="${helium.dir}/tools/common/templates/coveragerecord.txt.ftl" outputfile="${helium.build.dir}/temp/test_minibuild.txt">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    81
            <data expandProperties="yes">
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    82
                doc: xml(${helium.build.dir}/temp/test_minibuild.xml)
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    83
                database: xml(${database.file})
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    84
            </data>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    85
        </fmpp>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    86
        <loadfile srcfile="${helium.build.dir}/temp/test_minibuild.txt" property="ant.coverage.summary" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    87
        <echo>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    88
The summary of Ant code coverage:
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    89
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    90
${ant.coverage.summary}</echo>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    91
        <fmpp sourcefile="${helium.dir}/tools/common/templates/coveragerecord.html.ftl" outputfile="${helium.build.dir}/temp/test_minibuild.html">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    92
            <data expandProperties="yes">
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    93
                    doc: xml(${helium.build.dir}/temp/test_minibuild.xml)
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    94
                    database: xml(${database.file})
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    95
             </data>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    96
        </fmpp>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    97
    </target>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    98
    
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    99
    <!-- Test ec history option is create for single node build and merge is for multinode build. -->
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   100
    <target name="test-ec-history-option" if="build.system.ec-helium">
179
d8ac696cc51f helium_7.0-r14027
wbernard
parents: 1
diff changeset
   101
        <loadfile srcfile="${temp.build.dir}/${build.id}.${sysdef.configurations.list}_run_emake.bat" property="emake.bat.file"/>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   102
        <if>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   103
            <equals arg1="${ec.maxagents}" arg2="1" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   104
            <then>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   105
                <au:assertTrue>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   106
                    <contains string="${emake.bat.file}" substring="--emake-history=create"/>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   107
                </au:assertTrue>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   108
            </then>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   109
            <else>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   110
                <au:assertTrue>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   111
                    <contains string="${emake.bat.file}" substring="--emake-history=merge"/>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   112
                </au:assertTrue>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   113
            </else>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   114
        </if>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   115
        <echo message="ec.mode:${ec.mode}" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   116
        <echo message="ec.maxagents:${ec.maxagents}"/>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   117
        <echo message="ec.history.option:${ec.history.option}"/>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   118
    </target>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   119
    
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   120
    <!-- Prepare the minibuild. -->
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   121
    <!--target name="minibuild-prep" depends="init-build-area,start-ant-log,diamonds,set-arm-version,prep-copy-symbiantools"/-->
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   122
    <target name="minibuild-prep" depends="prep" />
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   123
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   124
    <!-- Stubbing few targets for easy testing with dragonfly ... -->
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   125
    <target name="prep-drive" depends="build-number" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   126
    <target name="dragonfly-prep-drive" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   127
    <target name="do-prep-work-area" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   128
    <target name="create-bom" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   129
    <target name="check-env-prep" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   130
    <target name="prep-copy" />
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   131
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   132
    <target name="minibuild-release">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   133
        <mkdir dir="${publish.release.dir}" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   134
        <copy todir="${publish.release.dir}">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   135
            <fileset dir="${build.output.dir}">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   136
                <include name="release_flash_images/**" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   137
            </fileset>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   138
        </copy>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   139
        <script language="jython" setbeans="false">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   140
            <![CDATA[
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   141
import os
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   142
import fileutils
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   143
import pathaddition.relative
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   144
result = []
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   145
rootdir = os.path.normpath(project.getProperty("publish.release.dir") + "/..")
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   146
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   147
def sortbydate(a, b):
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   148
    if os.stat(a)[9] == os.stat(b)[9]:
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   149
        return 0
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   150
    elif os.stat(a)[9] < os.stat(b)[9]:
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   151
        return 1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   152
    return -1
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   153
            
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   154
if os.path.exists(rootdir):
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   155
    for name in os.listdir(rootdir):
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   156
        path = os.path.join(rootdir, name)
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   157
        if os.path.isdir(path):
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   158
           result.append(os.path.normpath(path))
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   159
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   160
result.sort(sortbydate)
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   161
if len(result) > 2:
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   162
    for name in result[2:]:
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   163
        print "Deleting " + name
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   164
        fileutils.rmtree(name)
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   165
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   166
project.setProperty('fota.publish.root.dir', project.getProperty("publish.root.dir"))
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   167
old = pathaddition.relative.abs2rel(result[0], project.getProperty("publish.root.dir"))
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   168
new = pathaddition.relative.abs2rel(result[1], project.getProperty("publish.root.dir"))
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   169
project.setProperty('fota.old.publish.subdir', result[0])
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   170
project.setProperty('fota.new.publish.subdir', result[1])
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   171
print "Old subdir: %s" % old
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   172
print "New subdir: %s" % old
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   173
]]>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   174
        </script>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   175
    </target>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   176
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   177
    <!-- Check that the XML data returned from Diamonds via the REST interface
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   178
    is the same as what is sent. 
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   179
        
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   180
    Currently there are some differences between the formats so some edits to the
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   181
    XML content are made before using XMLUnit to compare the content.
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   182
    -->
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   183
    <target name="check-diamonds">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   184
        <loadfile srcfile="${build.log.dir}/${build.id}_diamonds-log-start.xml" property="diamonds.log.start">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   185
            <filterchain>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   186
                <tokenfilter>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   187
                    <filetokenizer />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   188
                    <hlm:prettyprintxml />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   189
                </tokenfilter>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   190
            </filterchain>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   191
        </loadfile>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   192
        <echo>Data sent to Diamonds:
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   193
            
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   194
${diamonds.log.start}</echo>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   195
        <loadresource property="diamonds.log.start.output">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   196
            <url url="${diamonds.build.url}?fmt=xml" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   197
            <filterchain>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   198
                <tokenfilter>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   199
                    <filetokenizer />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   200
                    <hlm:prettyprintxml />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   201
                </tokenfilter>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   202
            </filterchain>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   203
        </loadresource>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   204
        <echo>Data returned from Diamonds:
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   205
            
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   206
${diamonds.log.start.output}</echo>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   207
        <echo file="${helium.dir}/diamonds_build.xml">${diamonds.log.start}</echo>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   208
        <!--xmltask source="${helium.dir}/diamonds_build.xml" dest="${helium.dir}/diamonds_build_edit.xml">
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   209
            
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   210
            <cut path="/diamonds-build/tool" buffer="toolElements"/>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   211
            <cut path="/diamonds-build/locations" buffer="temp"/>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   212
        </xmltask-->
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   213
        <!--<loadfile srcfile="${helium.dir}/diamonds_build_edit.xml" property="diamonds.log.start.edited"/>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   214
        <echo>Data sent massaged to match what is received:
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   215
            
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   216
${diamonds.log.start.edited}</echo>-->
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   217
        <!-- TODO: make assertXmlEqual work with direct string input -->
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   218
        <string id="control.id" value="${diamonds.log.start}" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   219
        <string id="test.id" value="${diamonds.log.start.output}" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   220
        <hlm:assertXmlEqual control="control.id" test="test.id" failonerror="true" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   221
    </target>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   222
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   223
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   224
    <target name="minibuild-archive" depends="minibuild-archive-ant,minibuild-archive-ec-full,minibuild-archive-ant-empty-config" />
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   225
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   226
    <!-- This target will copy a part of the tree structure to test policy.remover mapper. -->
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   227
    <target name="prepare-archiving">
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   228
        <delete dir="${build.drive}/test_policy" failonerror="false" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   229
        <mkdir dir="${build.drive}/test_policy/os" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   230
        <!-- Creating a policy file under the new s60 test root. -->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   231
        <echo file="${build.drive}/test_policy/distribution.policy.s60">0</echo>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   232
        <echo file="${build.drive}/test_policy/os/distribution.policy.s60">0</echo>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   233
        <!-- Getting some Content -->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   234
        <copy todir="${build.drive}/test_policy">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   235
            <fileset dir="${build.drive}/sf">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   236
                <include name="os/graphics/" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   237
            </fileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   238
        </copy>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   239
    </target>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   240
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   241
    <target name="minibuild-archive-ec-full">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   242
        <antcall target="do-minibuild-archive">
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   243
            <param name="build.system" value="ec-helium" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   244
            <param name="archive.using.ec" value="true" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   245
            <param name="zipping.type" value="ec" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   246
            <!-- Uses to set the target location -->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   247
        </antcall>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   248
    </target>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   249
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   250
    <target name="minibuild-archive-ant">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   251
        <antcall target="do-minibuild-archive">
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   252
            <param name="build.system" value="ebs" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   253
            <param name="archive.using.ec" value="false" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   254
            <param name="zipping.type" value="ant" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   255
            <!-- Uses to set the target location -->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   256
        </antcall>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   257
        
179
d8ac696cc51f helium_7.0-r14027
wbernard
parents: 1
diff changeset
   258
    </target>
d8ac696cc51f helium_7.0-r14027
wbernard
parents: 1
diff changeset
   259
 
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   260
    <target name="minibuild-archive-ant-empty-config">
179
d8ac696cc51f helium_7.0-r14027
wbernard
parents: 1
diff changeset
   261
        <hlm:zipContentMacro type="ee-empty" ec="false" file="${zip.config.file}" failonemptyconfig="false" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents: 1
diff changeset
   262
        <au:expectfailure>
d8ac696cc51f helium_7.0-r14027
wbernard
parents: 1
diff changeset
   263
            <hlm:zipContentMacro type="ee-empty" ec="false" file="${zip.config.file}" failonemptyconfig="true" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents: 1
diff changeset
   264
        </au:expectfailure>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   265
    </target>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   266
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   267
    <target name="do-minibuild-archive">
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   268
        <runtarget target="prepare-archiving" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   269
        <runtarget target="zip-ee" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   270
        <!-- Checking the zip generation Ant -->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   271
        <au:assertFileExists file="${zips.build.dir}/${zipping.type}/release_metadata.xml" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   272
        <!--au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_app_organizer_clock_binary.zip" /-->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   273
        <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_app_organizer_clock.zip" />
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   274
        <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_mw_classicui_and_app_radio_0.zip" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   275
        <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_mw_classicui_and_app_radio_1.zip" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   276
        <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_mw_classicui_and_app_radio_3.zip" />
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   277
        <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_mw_classicui_and_app_radio_7.zip" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   278
        <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_mw_classicui_and_app_radio_1401.zip" />
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   279
        <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_os_0.zip" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   280
        <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_os_1.zip" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   281
        <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_os_2.zip" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   282
        <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_os_3.zip" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   283
        <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_os_7.zip" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   284
        <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_os_1308.zip" />
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   285
        <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_os_1422.zip" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   286
        <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_os_1435.zip" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   287
        <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_os_1436.zip" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   288
    </target>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   289
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   290
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   291
    <target name="minibuild-cleanup">
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   292
        <delete verbose="true" includeemptydirs="true" failonerror="false">         
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   293
            <fileset dir="${build.drive}/" casesensitive="false">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   294
                <include name="makefile" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   295
                <include name="*.mk" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   296
                <include name="*.make" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   297
                <include name="ecloud_tmp_*/**" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   298
                <include name="emake.*" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   299
                <include name="epoc32/build/**" />
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   300
                <include name="epoc32/rombuild/imaker_temp/**" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   301
                <include name="epoc32/rombuild/${product.name}/**" />
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   302
                <include name="epoc32/rom/config/*/**/foti*.*" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   303
                <include name="output/**" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   304
                <include name="timestart.txt" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   305
                <include name="timestop.txt" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   306
                <exclude name="output/build_area/localised/**" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   307
            </fileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   308
        </delete>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   309
    </target>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   310
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   311
    <target name="minibuild-install-new-imaker">
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   312
        <!-- Export custom image configuration file. -->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   313
        <copy file="config/image_conf_naming.mk" tofile="${build.drive}/epoc32/rom/config/image_conf_naming.mk" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   314
        <property name="imaker.dir" value="${helium.dir}/../external/imaker" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   315
        <!--
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   316
        <delete dir="${build.drive}/imaker_rnd"/>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   317
        <copy todir="${build.drive}/imaker_rnd">
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   318
            <fileset dir="${imaker.dir}"/>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   319
        </copy>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   320
        
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   321
        <hlm:bldmakeBldfilesMacro dir="${build.drive}/imaker_rnd/group"/>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   322
        <hlm:abldMacro dir="${build.drive}/imaker_rnd/group" command="cleanexport" platform=""/>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   323
        <hlm:abldMacro dir="${build.drive}/imaker_rnd/group" command="export" platform=""/>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   324
        -->
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   325
    </target>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   326
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   327
    <target name="minibuild-check">
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   328
        <!-- Check if prep has set some prop correctly... -->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   329
        <echo>'${arm.compiler.version}'</echo>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   330
        <au:assertMatches string="${arm.compiler.version}" pattern="RVCT2\.2 \[Build 616\]" casesensitive="false" multiline="true" />
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   331
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   332
        <!-- Check if compile-main step did what expected... -->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   333
        <au:assertFileExists file="${canonical.sysdef.file}" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   334
        <!--<au:assertFileExists file="${build.drive}/Makefile"/>-->
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   335
        <if>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   336
            <istrue value="${blocks.enabled}" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   337
            <then>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   338
                <au:assertFileExists file="${blocks.config.dir}/roms.blocks_component.xml" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   339
            </then>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   340
        </if>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   341
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   342
        <if>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   343
            <isset property="build.system.ec-helium" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   344
            <then>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   345
                <au:assertFileExists file="${build.drive}/emake.data" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   346
                <au:assertFileExists file="${temp.build.dir}/${build.id}.helium_minibuild_compile_run_emake.bat" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   347
            </then>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   348
        </if>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   349
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   350
        <resourcecount property="fpsx.count">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   351
            <fileset dir="${build.output.dir}">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   352
                <include name="**/*.core.fpsx" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   353
                <include name="**/*.rofs2.fpsx" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   354
            </fileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   355
        </resourcecount>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   356
        <echo>Number of images generated: ${fpsx.count}.</echo>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   357
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   358
        <!-- Taking abld build failure because of deprecation into account. -->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   359
        <if>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   360
            <or>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   361
                <contains string="${build.system}" substring="ebs" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   362
                <contains string="${build.system}" substring="ec-helium" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   363
            </or>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   364
            <then>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   365
                <au:assertTrue message="Build should have a pending failure because abld is not supported anymore.">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   366
                    <hlm:hasDeferredFailure name="compileSignalInput" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   367
                </au:assertTrue>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   368
                <hlm:clearDeferredFailures/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   369
            </then>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   370
        </if>        
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   371
    </target>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   372
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   373
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   374
    <!-- Custom iMaker configuration - preparing for future dev. -->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   375
    <property name="imaker.fmpp.makefile" location="${helium.dir}/tools/common/templates/imaker/build_imaker_roms_signing.mk.ftl" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   376
    <hlm:imakerconfigurationset id="imaker.rom.config">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   377
        <imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   378
            <makefileset>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   379
                <include name="**/image_conf_${product.name}.mk" />
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   380
            </makefileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   381
            <targetset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   382
                <include name="fota" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   383
            </targetset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   384
        </imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   385
        <imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   386
            <makefileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   387
                <include name="**/${product.name}/*ui.mk"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   388
            </makefileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   389
            <targetset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   390
                <include name="core(?:-prd|-rnd|-subcon)?$" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   391
                <include name="^langpack_01$" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   392
                <exclude name=".*-image$" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   393
            </targetset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   394
            <variableset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   395
                <variable name="USE_FOTI" value="1" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   396
                <variable name="USE_FOTA" value="1" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   397
                <variable name="TYPE" value="rnd" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   398
            </variableset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   399
        </imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   400
    </hlm:imakerconfigurationset>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   401
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   402
    <fileset dir="${build.drive}/" id="mmp.to.target.config">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   403
        <include name="s60/app/**/*.mmp" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   404
    </fileset>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   405
179
d8ac696cc51f helium_7.0-r14027
wbernard
parents: 1
diff changeset
   406
    <import file="build.sbsinput.ant.xml" />
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   407
</project>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   408