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