testmgmt/testdriver/group/emma-inst.xml
changeset 0 f1112f777ce9
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/testmgmt/testdriver/group/emma-inst.xml	Mon Mar 08 15:05:03 2010 +0800
@@ -0,0 +1,48 @@
+<?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>