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