buildframework/helium/sf/java/imaker/tests/antunit/test_imaker_drive_letter.ant.xml
author wbernard
Tue, 27 Apr 2010 08:33:08 +0300
changeset 587 85df38eb4012
child 588 c7c26511138f
permissions -rw-r--r--
helium_9.0-a7879c935424
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-drive-letter-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_drive_letter" />
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
    <target name="test-imaker-noargs-noconfig">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    46
        <echo>Will fail because it can't find imaker.</echo>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    47
        <au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    48
            <hlm:imaker />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    49
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    50
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    51
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    52
    <target name="test-imaker-epocroot">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    53
        <echo>Usin custom epocroot.</echo>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    54
        <hlm:imaker epocroot="${epocroot}" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    55
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    56
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    57
    <target name="test-imaker-noargs">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    58
        <hlm:imaker epocroot="${epocroot}" output="${epocroot.temp}/output.log"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    59
        <au:assertFileDoesntExist file="${epocroot.temp}/output.log" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    60
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    61
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    62
    <target name="test-imaker-empty-imakerconfigurationset">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    63
        <hlm:imaker epocroot="${epocroot}" output="${epocroot.temp}/output.log">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    64
            <hlm:imakerconfigurationset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    65
            </hlm:imakerconfigurationset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    66
        </hlm:imaker>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    67
        <au:assertFileDoesntExist file="${epocroot.temp}/output.log" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    68
        <au:assertLogContains text="Nothing to build." />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    69
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    70
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    71
    <target name="test-imaker-empty-imakerconfiguration-accepted">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    72
        <hlm:imaker epocroot="${epocroot}" output="${epocroot.temp}/output.log">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    73
            <hlm:imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    74
            </hlm:imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    75
        </hlm:imaker>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    76
        <au:assertFileDoesntExist file="${epocroot.temp}/output.log" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    77
        <au:assertLogContains text="Nothing to build." />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    78
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    79
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    80
    <target name="test-imaker-empty-imakerconfiguration">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    81
        <hlm:imaker epocroot="${epocroot}" output="${epocroot.temp}/output.log">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    82
            <hlm:imakerconfigurationset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    83
                <hlm:imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    84
                </hlm:imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    85
            </hlm:imakerconfigurationset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    86
        </hlm:imaker>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    87
        <au:assertFileDoesntExist file="${epocroot.temp}/output.log" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    88
        <au:assertLogContains text="Nothing to build." />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    89
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    90
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    91
    <target name="test-imaker-imakerconfiguration-makefileset">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    92
        <hlm:imaker epocroot="${epocroot}" output="${epocroot.temp}/output.log">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    93
            <hlm:imakerconfigurationset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    94
                <hlm:imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    95
                    <makefileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    96
                        <include name="**/product/*ui.mk" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    97
                    </makefileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    98
                </hlm:imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    99
            </hlm:imakerconfigurationset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   100
        </hlm:imaker>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   101
        <au:assertFileDoesntExist file="${epocroot.temp}/output.log" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   102
        <au:assertLogContains text="Nothing to build." />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   103
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   104
    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   105
    <target name="test-imaker-imakerconfiguration-targetset">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   106
        <hlm:imaker epocroot="${epocroot}" output="${epocroot.temp}/output.log">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   107
            <hlm:imakerconfigurationset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   108
                <hlm:imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   109
                    <makefileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   110
                        <include name="**/product/*ui.mk" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   111
                    </makefileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   112
                    <targetset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   113
                        <include name="core" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   114
                        <include name="langpack_\d+" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   115
                    </targetset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   116
                </hlm:imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   117
            </hlm:imakerconfigurationset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   118
        </hlm:imaker>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   119
        <au:assertFileExists file="${epocroot.temp}/output.log" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   120
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   121
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   122
    <target name="test-imaker-imakerconfiguration-variableset">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   123
        <au:expectfailure message="The variable element doesn't define a 'name' attribute.">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   124
            <hlm:imaker epocroot="${epocroot}" output="${epocroot.temp}/output.log">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   125
                <hlm:imakerconfigurationset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   126
                    <hlm:imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   127
                        <makefileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   128
                            <include name="**/product/*ui.mk" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   129
                        </makefileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   130
                        <targetset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   131
                            <include name="core" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   132
                            <include name="langpack_\d+" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   133
                        </targetset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   134
                        <variableset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   135
                            <variable />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   136
                        </variableset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   137
                    </hlm:imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   138
                </hlm:imakerconfigurationset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   139
            </hlm:imaker>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   140
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   141
        <au:assertFileDoesntExist file="${epocroot.temp}/output.log" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   142
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   143
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   144
    <target name="test-imaker-imakerconfiguration-variablegroup">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   145
        <hlm:imaker epocroot="${epocroot}" output="${epocroot.temp}/output.log">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   146
            <hlm:imakerconfigurationset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   147
                <hlm:imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   148
                    <makefileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   149
                        <include name="**/product/*ui.mk" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   150
                    </makefileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   151
                    <targetset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   152
                        <include name="core" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   153
                        <include name="langpack_\d+" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   154
                    </targetset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   155
                    <variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   156
                        <variable name="TYPE" value="rnd" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   157
                    </variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   158
                    <variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   159
                        <variable name="TYPE" value="prd" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   160
                    </variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   161
                </hlm:imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   162
            </hlm:imakerconfigurationset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   163
        </hlm:imaker>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   164
        <au:assertFileExists file="${epocroot.temp}/output.log" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   165
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   166
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   167
    <target name="test-imaker-imakerconfiguration-variablegroup-refid">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   168
        <hlm:imakerconfigurationset id="config">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   169
            <hlm:imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   170
                <makefileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   171
                    <include name="**/product/*ui.mk" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   172
                </makefileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   173
                <targetset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   174
                    <include name="core" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   175
                    <include name="langpack_\d+" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   176
                </targetset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   177
                <variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   178
                    <variable name="TYPE" value="rnd" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   179
                </variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   180
                <variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   181
                    <variable name="TYPE" value="prd" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   182
                </variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   183
            </hlm:imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   184
        </hlm:imakerconfigurationset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   185
        <hlm:imaker epocroot="${epocroot}" output="${epocroot.temp}/output.log">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   186
            <hlm:imakerconfigurationset refid="config"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   187
        </hlm:imaker>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   188
        <au:assertFileExists file="${epocroot.temp}/output.log" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   189
        <au:assertLogDoesntContain text="Nothing to build" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   190
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   191
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   192
    <target name="test-imaker-imakerconfiguration-variablegroup-refid-subconfig">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   193
        <hlm:imakerconfiguration id="subconfig">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   194
            <makefileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   195
                <include name="**/product/*ui.mk" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   196
            </makefileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   197
            <targetset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   198
                <include name="core" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   199
                <include name="langpack_\d+" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   200
            </targetset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   201
            <variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   202
                <variable name="TYPE" value="rnd" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   203
            </variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   204
            <variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   205
                <variable name="TYPE" value="prd" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   206
            </variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   207
        </hlm:imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   208
        <hlm:imakerconfigurationset id="config">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   209
            <hlm:imakerconfiguration refid="subconfig" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   210
        </hlm:imakerconfigurationset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   211
        <hlm:imaker epocroot="${epocroot}" output="${epocroot.temp}/output.log">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   212
            <hlm:imakerconfigurationset refid="config"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   213
        </hlm:imaker>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   214
        <au:assertFileExists file="${epocroot.temp}/output.log" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   215
        <au:assertLogDoesntContain text="Nothing to build" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   216
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   217
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   218
    <target name="test-imaker-imakerconfiguration-variablegroup-product">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   219
        <hlm:imaker epocroot="${epocroot}" output="${epocroot.temp}/output.log">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   220
            <hlm:imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   221
                <hlm:product list="product" ui="true" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   222
                <targetset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   223
                    <include name="core" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   224
                    <include name="langpack_\d+" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   225
                </targetset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   226
                <variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   227
                    <variable name="TYPE" value="rnd" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   228
                </variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   229
                <variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   230
                    <variable name="TYPE" value="prd" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   231
                </variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   232
            </hlm:imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   233
        </hlm:imaker>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   234
        <au:assertFileExists file="${epocroot.temp}/output.log" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   235
        <au:assertLogDoesntContain text="Nothing to build" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   236
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   237
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   238
    <target name="test-imaker-imakerconfiguration-variablegroup-product-invalid">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   239
        <au:expectfailure message="Could not find a valid configuration for product_invalid">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   240
            <hlm:imaker epocroot="${epocroot}" output="${epocroot.temp}/output.log">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   241
                <hlm:imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   242
                    <hlm:product list="product_invalid" ui="true" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   243
                    <targetset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   244
                        <include name="core" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   245
                        <include name="langpack_\d+" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   246
                    </targetset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   247
                    <variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   248
                        <variable name="TYPE" value="rnd" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   249
                    </variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   250
                    <variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   251
                        <variable name="TYPE" value="prd" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   252
                    </variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   253
                </hlm:imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   254
            </hlm:imaker>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   255
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   256
        <au:assertFileDoesntExist file="${epocroot.temp}/output.log" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   257
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   258
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   259
    <target name="test-imaker-imakerconfiguration-variablegroup-product-invalid-notfail">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   260
        <hlm:imaker epocroot="${epocroot}" output="${epocroot.temp}/output.log">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   261
            <hlm:imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   262
                <hlm:product list="product_invalid" ui="true" failonerror="false" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   263
                <targetset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   264
                    <include name="core" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   265
                    <include name="langpack_\d+" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   266
                </targetset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   267
                <variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   268
                    <variable name="TYPE" value="rnd" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   269
                </variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   270
                <variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   271
                    <variable name="TYPE" value="prd" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   272
                </variablegroup>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   273
            </hlm:imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   274
        </hlm:imaker>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   275
        <au:assertFileDoesntExist file="${epocroot.temp}/output.log" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   276
        <au:assertLogContains text="Could not find a valid configuration for product_invalid" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   277
        <au:assertLogContains text="Nothing to build." />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   278
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   279
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   280
</project>