|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <!-- |
|
3 ============================================================================ |
|
4 Name : test_javaengine.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-javaengine-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_task" /> |
|
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-defaultconfig"> |
|
46 <hlm:defaultEngine id="imaker.default" threads="1"/> |
|
47 <hlm:imaker epocroot="${epocroot}" |
|
48 output="${epocroot.temp}/output.log" |
|
49 engineRefId="imaker.default"> |
|
50 <hlm:imakerconfiguration> |
|
51 <makefileset> |
|
52 <include name="**/product/*ui.mk" /> |
|
53 </makefileset> |
|
54 <targetset> |
|
55 <include name="core" /> |
|
56 <include name="langpack_\d+" /> |
|
57 </targetset> |
|
58 </hlm:imakerconfiguration> |
|
59 </hlm:imaker> |
|
60 <au:assertFileExists file="${epocroot.temp}/output.log" /> |
|
61 </target> |
|
62 |
|
63 </project> |