buildframework/helium/external/helium-antlib/imaker/tests/antunit/test_imaker_invalid.ant.xml
author wbernard
Wed, 23 Dec 2009 19:29:07 +0200
changeset 179 d8ac696cc51f
permissions -rw-r--r--
helium_7.0-r14027
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
179
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
     2
<!-- 
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
     3
============================================================================ 
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
     4
Name        : test_imaker_invalid.ant.xml 
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
     5
Part of     : Helium AntLib
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
     6
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
     7
Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
     8
All rights reserved.
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
     9
This component and the accompanying materials are made available
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    10
under the terms of the License "Eclipse Public License v1.0"
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    11
which accompanies this distribution, and is available
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    12
at the URL "http://www.eclipse.org/legal/epl-v10.html".
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    13
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    14
Initial Contributors:
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    15
Nokia Corporation - initial contribution.
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    16
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    17
Contributors:
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    18
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    19
Description:
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    20
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    21
============================================================================
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    22
-->
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    23
<project name="helium-antlib-imaker-invalid-unittest" xmlns:au="antlib:org.apache.ant.antunit" xmlns:hlm="http://www.nokia.com/helium">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    24
    <description>Helium Antlib imaker unittests.</description>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    25
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    26
    <taskdef resource="com/nokia/helium/imaker/ant/antlib.xml" uri="http://www.nokia.com/helium"/>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    27
    <property name="epocroot" location="${basedir}/../epocroot_invalid" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    28
    <property name="epocroot.temp" location="${epocroot}/temp" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    29
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    30
    <!-- is called prior to the test -->
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    31
    <target name="setUp">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    32
        <echo>-------------------------------------------------------------------------------</echo>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    33
        <delete dir="${epocroot.temp}" failonerror="false" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    34
        <delete dir="${epocroot}/epoc32" failonerror="false" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    35
        <mkdir dir="${epocroot.temp}" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    36
    </target>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    37
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    38
    <!-- is called after the test, even if that caused an error -->
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    39
    <target name="tearDown">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    40
        <delete dir="${epocroot.temp}" failonerror="false" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    41
        <delete dir="${epocroot}/epoc32" failonerror="false" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    42
        <echo>-------------------------------------------------------------------------------</echo>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    43
    </target>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    44
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    45
    <target name="test-imaker-imakerconfiguration-targetset">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    46
        <au:expectfailure message="(return code: 1)">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    47
            <hlm:imaker epocroot="${epocroot}" output="${epocroot.temp}/output.log">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    48
                <hlm:imakerconfigurationset>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    49
                    <hlm:imakerconfiguration>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    50
                        <makefileset>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    51
                            <include name="**/product/*ui.mk" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    52
                        </makefileset>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    53
                        <targetset>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    54
                            <include name="core" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    55
                            <include name="langpack_\d+" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    56
                        </targetset>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    57
                    </hlm:imakerconfiguration>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    58
                </hlm:imakerconfigurationset>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    59
            </hlm:imaker>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    60
        </au:expectfailure>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    61
        <au:assertFileDoesntExist file="${epocroot.temp}/output.log" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    62
    </target>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    63
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    64
    <target name="test-imaker-imakerconfiguration-targetset-failonerror-false">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    65
        <hlm:imaker epocroot="${epocroot}" output="${epocroot.temp}/output.log" failonerror="false">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    66
            <hlm:imakerconfigurationset>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    67
                <hlm:imakerconfiguration>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    68
                    <makefileset>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    69
                        <include name="**/product/*ui.mk" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    70
                    </makefileset>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    71
                    <targetset>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    72
                        <include name="core" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    73
                        <include name="langpack_\d+" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    74
                    </targetset>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    75
                </hlm:imakerconfiguration>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    76
            </hlm:imakerconfigurationset>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    77
        </hlm:imaker>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    78
        <au:assertLogContains text="*** No rule to make target" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    79
        <au:assertFileDoesntExist file="${epocroot.temp}/output.log" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    80
    </target>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    81
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    82
</project>