buildframework/helium/external/helium-antlib/imaker/tests/antunit/test_javaengine.ant.xml
changeset 179 d8ac696cc51f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/buildframework/helium/external/helium-antlib/imaker/tests/antunit/test_javaengine.ant.xml	Wed Dec 23 19:29:07 2009 +0200
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- 
+============================================================================ 
+Name        : test_javaengine.ant.xml 
+Part of     : Helium AntLib
+
+Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+All rights reserved.
+This component and the accompanying materials are made available
+under the terms of the License "Eclipse Public License v1.0"
+which accompanies this distribution, and is available
+at the URL "http://www.eclipse.org/legal/epl-v10.html".
+
+Initial Contributors:
+Nokia Corporation - initial contribution.
+
+Contributors:
+
+Description:
+
+============================================================================
+-->
+<project name="helium-antlib-imaker-javaengine-unittest" xmlns:au="antlib:org.apache.ant.antunit" xmlns:hlm="http://www.nokia.com/helium">
+    <description>Helium Antlib imaker unittests.</description>
+
+    <taskdef resource="com/nokia/helium/imaker/ant/antlib.xml" uri="http://www.nokia.com/helium"/>
+    <property name="epocroot" location="${basedir}/../epocroot_task" />
+    <property name="epocroot.temp" location="${epocroot}/temp" />
+
+    <!-- is called prior to the test -->
+    <target name="setUp">
+        <echo>-------------------------------------------------------------------------------</echo>
+        <delete dir="${epocroot.temp}" failonerror="false" />
+        <delete dir="${epocroot}/epoc32" failonerror="false" />
+        <mkdir dir="${epocroot.temp}" />
+    </target>
+
+    <!-- is called after the test, even if that caused an error -->
+    <target name="tearDown">
+        <delete dir="${epocroot.temp}" failonerror="false" />
+        <delete dir="${epocroot}/epoc32" failonerror="false" />
+        <echo>-------------------------------------------------------------------------------</echo>
+    </target>
+
+    <target name="test-imaker-defaultconfig">
+        <hlm:defaultEngine id="imaker.default" threads="1"/>
+        <hlm:imaker epocroot="${epocroot}" 
+            output="${epocroot.temp}/output.log"
+            engineRefId="imaker.default">
+            <hlm:imakerconfiguration>
+                <makefileset>
+                    <include name="**/product/*ui.mk" />
+                </makefileset>
+                <targetset>
+                    <include name="core" />
+                    <include name="langpack_\d+" />
+                </targetset>
+            </hlm:imakerconfiguration>
+        </hlm:imaker>
+        <au:assertFileExists file="${epocroot.temp}/output.log" />
+    </target>
+
+</project>