buildframework/helium/tools/testing/eunit/eunit.ant.xml
author Iain Williamson <iain.williamson@nokia.com>
Mon, 17 May 2010 18:27:21 +0100
branchfix
changeset 559 3a62f88a49f8
parent 217 0f5e3a7fb6af
child 628 7c4a911dc066
permissions -rw-r--r--
RELEASE: Bug 2651 - [Raptor] creates incorrect .iby files w.r.t target file versions & ramtargets Note: I've added a new 'next version' to the release notes since I've not merged in 2.14.0 yet.

<?xml version="1.0" encoding="UTF-8"?>
<!-- 
============================================================================ 
Name        : eunit.ant.xml 
Part of     : Helium 

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:

============================================================================
-->
<!--* @package testing -->
<project name="_testing.eunit">
    <description>
        Testing using EUnit. (For WINSCW)
    </description>
    
    <!--* @property eunit.prepare.zip
    Name of eunit zip file. Need to unzip into build area to start eunit test
    @type string
    @editable required
    @scope public
    -->
    
    <!--* @property eunit.prepare.zip
    Name of eunit zip file. Need to unzip into build area to start eunit test
    @type string
    @editable required
    @scope public
    -->
    
    <!--* @property eunitexerunner.flags
    Flags for EUnit exerunner can be set by setting the value of this variable. The default flags are set to "/E S60AppEnv /R Off".
    @type string
    @editable required
    @scope public
    -->

    <!-- Unzip test package to build drive. -->
    <target name="prepare-eunit" if="enabled.ats">
        <unzip src="${eunit.prepare.zip}" dest="${build.drive}/" />
    </target>

    <!-- Runs eunittests for Java code -->
    <target name="eunittest" depends="prepare-eunit">
        <mkdir dir="${test.log.dir}"/>
        <for list="${eunit.dlls}" delimiter="," param="eunit.dll">
            <sequential>
                <exec executable="${build.drive}/epoc32/release/winscw/udeb/EUnitExeRunner.exe" dir="${build.drive}/epoc32/release/winscw/udeb" failonerror="${failonerror}">
                    <arg line="@{eunit.dll}" />
                </exec>
            </sequential>
        </for>
        <copy file="${build.drive}\epoc32\winscw\c\shared\Eunit\logs\Eunit_Log.xml" tofile="${temp.build.dir}\${build.id}_Eunit_Log.xml" />
    </target>

</project>