From a14ff41fa984bb83f3e1580cfa2243a6bc0dd144 Mon Sep 17 00:00:00 2001
From: Christophe Sovant <christophe.sovant@forgerock.com>
Date: Fri, 16 May 2008 13:26:16 +0000
Subject: [PATCH] Enable instrumentation of SNMP classes for code coverage
---
opendj-sdk/opends/tests/functional-tests/staf-installer.xml | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/opendj-sdk/opends/tests/functional-tests/staf-installer.xml b/opendj-sdk/opends/tests/functional-tests/staf-installer.xml
index 1257393..c446fbd 100644
--- a/opendj-sdk/opends/tests/functional-tests/staf-installer.xml
+++ b/opendj-sdk/opends/tests/functional-tests/staf-installer.xml
@@ -949,7 +949,7 @@
<property name="coverage.on" value="true"/>
</target>
- <target name="coverage-instrument" depends="status-do,run-tests-get-pkg" if="coverage.on">
+ <target name="coverage-instrument" depends="status-do,run-tests-build-pkg" if="coverage.on">
<delete dir="${staf.tmp.dir}/coverage-instr" />
<mkdir dir="${staf.tmp.dir}/coverage-instr" />
<!-- unzip the original package in a temporary location to make the
@@ -976,8 +976,8 @@
<arg value="instr" />
<arg value="-m" />
<arg value="overwrite" />
- <arg value="-cp" />
- <arg value="${staf.tmp.dir}${file.separator}coverage-instr${file.separator}${product.name}${file.separator}lib${file.separator}OpenDS.jar" />
+ <arg value="-ip" />
+ <arg value="${staf.tmp.dir}${file.separator}coverage-instr${file.separator}${product.name}${file.separator}lib${file.separator}OpenDS.jar:${staf.tmp.dir}${file.separator}coverage-instr${file.separator}${product.name}${file.separator}lib${file.separator}extensions${file.separator}snmp-mib2605.jar" />
</java>
<echo>Writing properties file</echo>
<echo file="${staf.tmp.dir}/coverage-instr/${product.name}/classes/emma.properties">coverage.out.file=${staf.tmp.dir}/emma.coverage</echo>
--
Gitblit v1.10.0