buildframework/helium/sf/java/imaker/tests/antunit/test_imaker.ant.xml
author wbernard
Thu, 22 Jul 2010 17:08:43 +0300
branchhelium-9.0
changeset 618 df88fead2976
parent 587 85df38eb4012
permissions -rw-r--r--
helium_9.0.5-4399343f4f50
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     2
<!-- 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     3
============================================================================ 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     4
Name        : test_imaker.ant.xml 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     5
Part of     : Helium AntLib
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     6
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     7
Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     8
All rights reserved.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     9
This component and the accompanying materials are made available
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    10
under the terms of the License "Eclipse Public License v1.0"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    11
which accompanies this distribution, and is available
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    12
at the URL "http://www.eclipse.org/legal/epl-v10.html".
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    13
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    14
Initial Contributors:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    15
Nokia Corporation - initial contribution.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    16
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    17
Contributors:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    18
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    19
Description:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    20
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    21
============================================================================
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    22
-->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    23
<project name="helium-antlib-imaker-unittest" xmlns:au="antlib:org.apache.ant.antunit" xmlns:hlm="http://www.nokia.com/helium">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    24
    <description>Helium Antlib imaker unittests.</description>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    25
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    26
    <taskdef resource="com/nokia/helium/imaker/ant/antlib.xml" uri="http://www.nokia.com/helium"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    27
    <property name="epocroot" location="${basedir}/../epocroot_task" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    28
    <property name="epocroot.temp" location="${epocroot}/temp" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    29
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    30
    <!-- is called prior to the test -->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    31
    <target name="setUp">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    32
        <echo>-------------------------------------------------------------------------------</echo>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    33
        <delete dir="${epocroot.temp}" failonerror="false" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    34
        <delete dir="${epocroot}/epoc32" failonerror="false" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    35
        <mkdir dir="${epocroot.temp}" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    36
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    37
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    38
    <!-- is called after the test, even if that caused an error -->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    39
    <target name="tearDown">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    40
        <delete dir="${epocroot.temp}" failonerror="false" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    41
        <delete dir="${epocroot}/epoc32" failonerror="false" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    42
        <echo>-------------------------------------------------------------------------------</echo>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    43
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    44
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    45
<!-- once imaker is in SymSEE this does not fail 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    46
    <target name="test-imaker-noargs-noconfig">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    47
        <echo>Will fail because it can't find imaker.</echo>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    48
        <au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    49
            <hlm:imaker />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    50
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    51
    </target> -->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    52
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    53
    <target name="test-imaker-epocroot">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    54
        <echo>Usin custom epocroot.</echo>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    55
        <hlm:imaker epocroot="${epocroot}" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    56
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    57
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    58
    <target name="test-imaker-noargs">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    59
        <hlm:imaker epocroot="${epocroot}" output="${epocroot.temp}/output.log"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    60
        <au:assertFileDoesntExist file="${epocroot.temp}/output.log" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    61
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    62
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    63
    <target name="test-imaker-empty-imakerconfigurationset">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    64
        <hlm:imaker epocroot="${epocroot}" output="${epocroot.temp}/output.log">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    65
            <hlm:imakerconfigurationset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    66
            </hlm:imakerconfigurationset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    67
        </hlm:imaker>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    68
        <au:assertFileDoesntExist file="${epocroot.temp}/output.log" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    69
        <au:assertLogContains text="Nothing to build." />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    70
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    71
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    72
    <target name="test-imaker-empty-imakerconfiguration-accepted">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    73
        <hlm:imaker epocroot="${epocroot}" output="${epocroot.temp}/output.log">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    74
            <hlm:imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    75
            </hlm:imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    76
        </hlm:imaker>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    77
        <au:assertFileDoesntExist file="${epocroot.temp}/output.log" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    78
        <au:assertLogContains text="Nothing to build." />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    79
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    80
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    81
    <target name="test-imaker-empty-imakerconfiguration">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    82
        <hlm:imaker epocroot="${epocroot}" output="${epocroot.temp}/output.log">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    83
            <hlm:imakerconfigurationset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    84
                <hlm:imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    85
                </hlm:imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    86
            </hlm:imakerconfigurationset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    87
        </hlm:imaker>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    88
        <au:assertFileDoesntExist file="${epocroot.temp}/output.log" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    89
        <au:assertLogContains text="Nothing to build." />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    90
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    91
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    92
    <target name="test-imaker-imakerconfiguration-makefileset">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    93
        <hlm:imaker epocroot="${epocroot}" output="${epocroot.temp}/output.log">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    94
            <hlm:imakerconfigurationset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    95
                <hlm:imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    96
                    <makefileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    97
                        <include name="**/product/*ui.mk" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    98
                    </makefileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    99
                </hlm:imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   100
            </hlm:imakerconfigurationset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   101
        </hlm:imaker>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   102
        <au:assertFileDoesntExist file="${epocroot.temp}/output.log" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   103
        <au:assertLogContains text="Nothing to build." />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   104
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   105
    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   106
    <target name="test-imaker-imakerconfiguration-targetset">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   107
        <hlm:imaker epocroot="${epocroot}" output="${epocroot.temp}/output.log">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   108
            <hlm:imakerconfigurationset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   109
                <hlm:imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   110
                    <makefileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   111
                        <include name="**/product/*ui.mk" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   112
                    </makefileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   113
                    <targetset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   114
                        <include name="core" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   115
                        <include name="langpack_\d+" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   116
                    </targetset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   117
                </hlm:imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   118
            </hlm:imakerconfigurationset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   119
        </hlm:imaker>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   120
        <au:assertFileExists file="${epocroot.temp}/output.log" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   121
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   122
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   123
    <target name="test-imaker-imakerconfiguration-variableset">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   124
        <au:expectfailure message="The variable element doesn't define a 'name' attribute.">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   125
            <hlm:imaker epocroot="${epocroot}" output="${epocroot.temp}/output.log">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   126
                <hlm:imakerconfigurationset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   127
                    <hlm:imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   128
                        <makefileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   129
                            <include name="**/product/*ui.mk" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   130
                        </makefileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   131
                        <targetset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   132
                            <include name="core" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   133
                            <include name="langpack_\d+" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   134
                        </targetset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   135
                        <variableset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   136
                            <variable />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   137
                        </variableset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   138
                    </hlm:imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   139
                </hlm:imakerconfigurationset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   140
            </hlm:imaker>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   141
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   142
        <au:assertFileDoesntExist file="${epocroot.temp}/output.log" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   143
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   144
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   145
    <target name="test-imaker-imakerconfiguration-variablegroup">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   146
        <hlm:imaker epocroot="${epocroot}" output="${epocroot.temp}/output.log">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   147
            <hlm:imakerconfigurationset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   148
                <hlm:imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   149
                    <makefileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   150
                        <include name="**/product/*ui.mk" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   151
                    </makefileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   152
                    <targetset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   153
                        <include name="core" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   154
                        <include name="langpack_\d+" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   155
                    </targetset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   156
                    <variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   157
                        <variable name="TYPE" value="rnd" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   158
                    </variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   159
                    <variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   160
                        <variable name="TYPE" value="prd" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   161
                    </variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   162
                </hlm:imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   163
            </hlm:imakerconfigurationset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   164
        </hlm:imaker>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   165
        <au:assertFileExists file="${epocroot.temp}/output.log" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   166
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   167
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   168
    <target name="test-imaker-imakerconfiguration-variablegroup-refid">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   169
        <hlm:imakerconfigurationset id="config">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   170
            <hlm:imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   171
                <makefileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   172
                    <include name="**/product/*ui.mk" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   173
                </makefileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   174
                <targetset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   175
                    <include name="core" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   176
                    <include name="langpack_\d+" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   177
                </targetset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   178
                <variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   179
                    <variable name="TYPE" value="rnd" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   180
                </variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   181
                <variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   182
                    <variable name="TYPE" value="prd" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   183
                </variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   184
            </hlm:imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   185
        </hlm:imakerconfigurationset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   186
        <hlm:imaker epocroot="${epocroot}" output="${epocroot.temp}/output.log">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   187
            <hlm:imakerconfigurationset refid="config"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   188
        </hlm:imaker>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   189
        <au:assertFileExists file="${epocroot.temp}/output.log" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   190
        <au:assertLogDoesntContain text="Nothing to build" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   191
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   192
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   193
    <target name="test-imaker-imakerconfiguration-variablegroup-refid-subconfig">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   194
        <hlm:imakerconfiguration id="subconfig">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   195
            <makefileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   196
                <include name="**/product/*ui.mk" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   197
            </makefileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   198
            <targetset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   199
                <include name="core" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   200
                <include name="langpack_\d+" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   201
            </targetset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   202
            <variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   203
                <variable name="TYPE" value="rnd" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   204
            </variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   205
            <variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   206
                <variable name="TYPE" value="prd" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   207
            </variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   208
        </hlm:imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   209
        <hlm:imakerconfigurationset id="config">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   210
            <hlm:imakerconfiguration refid="subconfig" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   211
        </hlm:imakerconfigurationset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   212
        <hlm:imaker epocroot="${epocroot}" output="${epocroot.temp}/output.log">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   213
            <hlm:imakerconfigurationset refid="config"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   214
        </hlm:imaker>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   215
        <au:assertFileExists file="${epocroot.temp}/output.log" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   216
        <au:assertLogDoesntContain text="Nothing to build" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   217
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   218
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   219
    <target name="test-imaker-imakerconfiguration-variablegroup-product">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   220
        <hlm:imaker epocroot="${epocroot}" output="${epocroot.temp}/output.log">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   221
            <hlm:imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   222
                <hlm:product list="product" ui="true" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   223
                <targetset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   224
                    <include name="core" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   225
                    <include name="langpack_\d+" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   226
                </targetset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   227
                <variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   228
                    <variable name="TYPE" value="rnd" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   229
                </variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   230
                <variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   231
                    <variable name="TYPE" value="prd" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   232
                </variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   233
            </hlm:imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   234
        </hlm:imaker>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   235
        <au:assertFileExists file="${epocroot.temp}/output.log" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   236
        <au:assertLogDoesntContain text="Nothing to build" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   237
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   238
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   239
    <target name="test-imaker-imakerconfiguration-variablegroup-product-invalid">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   240
        <au:expectfailure message="Could not find a valid configuration for product_invalid">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   241
            <hlm:imaker epocroot="${epocroot}" output="${epocroot.temp}/output.log">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   242
                <hlm:imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   243
                    <hlm:product list="product_invalid" ui="true" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   244
                    <targetset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   245
                        <include name="core" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   246
                        <include name="langpack_\d+" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   247
                    </targetset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   248
                    <variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   249
                        <variable name="TYPE" value="rnd" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   250
                    </variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   251
                    <variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   252
                        <variable name="TYPE" value="prd" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   253
                    </variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   254
                </hlm:imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   255
            </hlm:imaker>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   256
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   257
        <au:assertFileDoesntExist file="${epocroot.temp}/output.log" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   258
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   259
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   260
    <target name="test-imaker-imakerconfiguration-variablegroup-product-invalid-notfail">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   261
        <hlm:imaker epocroot="${epocroot}" output="${epocroot.temp}/output.log">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   262
            <hlm:imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   263
                <hlm:product list="product_invalid" ui="true" failonerror="false" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   264
                <targetset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   265
                    <include name="core" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   266
                    <include name="langpack_\d+" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   267
                </targetset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   268
                <variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   269
                    <variable name="TYPE" value="rnd" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   270
                </variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   271
                <variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   272
                    <variable name="TYPE" value="prd" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   273
                </variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   274
            </hlm:imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   275
        </hlm:imaker>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   276
        <au:assertFileDoesntExist file="${epocroot.temp}/output.log" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   277
        <au:assertLogContains text="Could not find a valid configuration for product_invalid" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   278
        <au:assertLogContains text="Nothing to build." />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   279
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   280
618
df88fead2976 helium_9.0.5-4399343f4f50
wbernard
parents: 587
diff changeset
   281
    <target name="test-imaker-imakerconfiguration-variableset-invalid-engine">
df88fead2976 helium_9.0.5-4399343f4f50
wbernard
parents: 587
diff changeset
   282
        <au:expectfailure message="Could not find engine reference: 'invalid.engine.ref'.">
df88fead2976 helium_9.0.5-4399343f4f50
wbernard
parents: 587
diff changeset
   283
            <hlm:imaker epocroot="${epocroot}" output="${epocroot.temp}/output.log" engineRefid="invalid.engine.ref">
df88fead2976 helium_9.0.5-4399343f4f50
wbernard
parents: 587
diff changeset
   284
                <hlm:imakerconfiguration>
df88fead2976 helium_9.0.5-4399343f4f50
wbernard
parents: 587
diff changeset
   285
                    <makefileset>
df88fead2976 helium_9.0.5-4399343f4f50
wbernard
parents: 587
diff changeset
   286
                        <include name="**/product/*ui.mk" />
df88fead2976 helium_9.0.5-4399343f4f50
wbernard
parents: 587
diff changeset
   287
                    </makefileset>
df88fead2976 helium_9.0.5-4399343f4f50
wbernard
parents: 587
diff changeset
   288
                    <targetset>
df88fead2976 helium_9.0.5-4399343f4f50
wbernard
parents: 587
diff changeset
   289
                        <include name="core" />
df88fead2976 helium_9.0.5-4399343f4f50
wbernard
parents: 587
diff changeset
   290
                        <include name="langpack_\d+" />
df88fead2976 helium_9.0.5-4399343f4f50
wbernard
parents: 587
diff changeset
   291
                    </targetset>
df88fead2976 helium_9.0.5-4399343f4f50
wbernard
parents: 587
diff changeset
   292
                    <variablegroup>
df88fead2976 helium_9.0.5-4399343f4f50
wbernard
parents: 587
diff changeset
   293
                        <variable name="TYPE" value="rnd" />
df88fead2976 helium_9.0.5-4399343f4f50
wbernard
parents: 587
diff changeset
   294
                    </variablegroup>
df88fead2976 helium_9.0.5-4399343f4f50
wbernard
parents: 587
diff changeset
   295
                    <variablegroup>
df88fead2976 helium_9.0.5-4399343f4f50
wbernard
parents: 587
diff changeset
   296
                        <variable name="TYPE" value="prd" />
df88fead2976 helium_9.0.5-4399343f4f50
wbernard
parents: 587
diff changeset
   297
                    </variablegroup>
df88fead2976 helium_9.0.5-4399343f4f50
wbernard
parents: 587
diff changeset
   298
                </hlm:imakerconfiguration>
df88fead2976 helium_9.0.5-4399343f4f50
wbernard
parents: 587
diff changeset
   299
            </hlm:imaker>
df88fead2976 helium_9.0.5-4399343f4f50
wbernard
parents: 587
diff changeset
   300
        </au:expectfailure>
df88fead2976 helium_9.0.5-4399343f4f50
wbernard
parents: 587
diff changeset
   301
        <au:assertLogContains text="Using engine: invalid.engine.ref" />
df88fead2976 helium_9.0.5-4399343f4f50
wbernard
parents: 587
diff changeset
   302
        <au:assertFileDoesntExist file="${epocroot.temp}/output.log" />
df88fead2976 helium_9.0.5-4399343f4f50
wbernard
parents: 587
diff changeset
   303
    </target>
df88fead2976 helium_9.0.5-4399343f4f50
wbernard
parents: 587
diff changeset
   304
    
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   305
</project>