testmgmt/testdriver/group/emma-inst.xml
author Johnson Ma <johnson.ma@nokia.com>
Mon, 08 Mar 2010 15:05:03 +0800
changeset 0 f1112f777ce9
permissions -rw-r--r--
Initial EPL Contribution

<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="emma" name="TDEP_Build">
	<target name="init">
		<property environment="env" />
		<property name="td.destination" value="${env.EPOCROOT}epoc32/tools/TDEP" />
		<property name="td.eclipse" value="${env.ECLIPSEHOME}" />
		<property name="td.carbide" value="${env.CARBIDEHOME}" />
		<property name="td.eclipse.startupjar" value="${env.ECLIPSEHOME}/plugins/org.eclipse.equinox.launcher.jar" />
		<property name="Build.Type" value="I" />
		<property name="Build.Id" value="testdriver2"/>
		<property name="TDArchive.Name" value="testdriver2"/>
                <property name="Build.Config" value="win32.win32.x86"/>
	</target>
        

	 <!-- use EMMA offline mode to instrument testdrive code for code coverage testing -->
	 <target name="emma" depends="init">
		 <!-- instruct testdriver2.zip -->
		 <echo message="use emma to instructment testdriver2.zip"/>
                 <property name="plugindir" value="${td.destination}/emma/output/tdplugins/eclipse/plugins"/>
		 
		 <mkdir dir="${td.destination}/emma/output" />
		 <unzip overwrite="true" src="${td.destination}/${TDArchive.Name}.zip" dest="${td.destination}/emma/output" />
                 <exec executable="java">
			 <arg line="-cp emma.jar emma instr -ix -com.sun.*,-javax.* -m overwrite -cp ${plugindir}/com.symbian.driver_1.0.1001.jar"/>
                  </exec>
                 <exec executable="java">
			 <arg line="-cp emma.jar emma instr -ix -com.sun.*,-javax.* -m overwrite -cp ${plugindir}/com.symbian.driver.report_1.0.1001.jar"/>
                  </exec>
                 <exec executable="java">
			 <arg line="-cp emma.jar emma instr -ix -com.sun.*,-javax.* -m overwrite -cp ${plugindir}/com.symbian.utils_1.0.1001.jar"/>
		 </exec>
                 <exec executable="java">
			 <arg line="-cp emma.jar emma instr -ix -com.sun.*,-javax.* -m overwrite -cp ${plugindir}/com.symbian.driver.plugins.comms.stat_1.0.0.jar"/>
                  </exec>
                 <exec executable="java">
			 <arg line="-cp emma.jar emma instr -ix -com.sun.*,-javax.* -m overwrite -cp ${plugindir}/com.symbian.driver.core_2.3.0.jar"/>
                  </exec>
                 <exec executable="java">
			 <arg line="-cp emma.jar emma instr -ix -com.sun.*,-javax.* -m overwrite -cp ${plugindir}/com.symbian.driver.plugins.coredump_1.0.0.jar"/>
                  </exec>
                 <exec executable="java">
			 <arg line="-cp emma.jar emma instr -ix -com.sun.*,-javax.* -m overwrite -cp ${plugindir}/com.symbian.driver.plugins.utrace_1.0.0.jar"/>
                  </exec>
		  <zip destfile="${td.destination}/emma/${TDArchive.Name}.zip" basedir="${td.destination}/emma/output" filesonly="false" whenempty="skip" update="false" />
		  <delete dir="${td.destination}/emma/output" />
	 </target>
</project>