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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
     2
<project basedir="." default="emma" name="TDEP_Build">
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
     3
	<target name="init">
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
     4
		<property environment="env" />
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
     5
		<property name="td.destination" value="${env.EPOCROOT}epoc32/tools/TDEP" />
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
     6
		<property name="td.eclipse" value="${env.ECLIPSEHOME}" />
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
     7
		<property name="td.carbide" value="${env.CARBIDEHOME}" />
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
     8
		<property name="td.eclipse.startupjar" value="${env.ECLIPSEHOME}/plugins/org.eclipse.equinox.launcher.jar" />
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
     9
		<property name="Build.Type" value="I" />
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
    10
		<property name="Build.Id" value="testdriver2"/>
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
    11
		<property name="TDArchive.Name" value="testdriver2"/>
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
    12
                <property name="Build.Config" value="win32.win32.x86"/>
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
    13
	</target>
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
    14
        
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
    15
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
    16
	 <!-- use EMMA offline mode to instrument testdrive code for code coverage testing -->
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
    17
	 <target name="emma" depends="init">
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
    18
		 <!-- instruct testdriver2.zip -->
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
    19
		 <echo message="use emma to instructment testdriver2.zip"/>
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
    20
                 <property name="plugindir" value="${td.destination}/emma/output/tdplugins/eclipse/plugins"/>
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
    21
		 
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
    22
		 <mkdir dir="${td.destination}/emma/output" />
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
    23
		 <unzip overwrite="true" src="${td.destination}/${TDArchive.Name}.zip" dest="${td.destination}/emma/output" />
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
    24
                 <exec executable="java">
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
    25
			 <arg line="-cp emma.jar emma instr -ix -com.sun.*,-javax.* -m overwrite -cp ${plugindir}/com.symbian.driver_1.0.1001.jar"/>
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
    26
                  </exec>
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
    27
                 <exec executable="java">
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
    28
			 <arg line="-cp emma.jar emma instr -ix -com.sun.*,-javax.* -m overwrite -cp ${plugindir}/com.symbian.driver.report_1.0.1001.jar"/>
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
    29
                  </exec>
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
    30
                 <exec executable="java">
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
    31
			 <arg line="-cp emma.jar emma instr -ix -com.sun.*,-javax.* -m overwrite -cp ${plugindir}/com.symbian.utils_1.0.1001.jar"/>
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
    32
		 </exec>
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
    33
                 <exec executable="java">
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
    34
			 <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"/>
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
    35
                  </exec>
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
    36
                 <exec executable="java">
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
    37
			 <arg line="-cp emma.jar emma instr -ix -com.sun.*,-javax.* -m overwrite -cp ${plugindir}/com.symbian.driver.core_2.3.0.jar"/>
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
    38
                  </exec>
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
    39
                 <exec executable="java">
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
    40
			 <arg line="-cp emma.jar emma instr -ix -com.sun.*,-javax.* -m overwrite -cp ${plugindir}/com.symbian.driver.plugins.coredump_1.0.0.jar"/>
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
    41
                  </exec>
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
    42
                 <exec executable="java">
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
    43
			 <arg line="-cp emma.jar emma instr -ix -com.sun.*,-javax.* -m overwrite -cp ${plugindir}/com.symbian.driver.plugins.utrace_1.0.0.jar"/>
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
    44
                  </exec>
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
    45
		  <zip destfile="${td.destination}/emma/${TDArchive.Name}.zip" basedir="${td.destination}/emma/output" filesonly="false" whenempty="skip" update="false" />
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
    46
		  <delete dir="${td.destination}/emma/output" />
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
    47
	 </target>
f1112f777ce9 Initial EPL Contribution
Johnson Ma <johnson.ma@nokia.com>
parents:
diff changeset
    48
</project>