mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Christophe Sovant
16.26.2008 40395bff6057965f3ea9f41a4a5ad34cfd15b9d4
Enable instrumentation of SNMP classes for code coverage
1 files modified
6 ■■■■ changed files
opends/tests/functional-tests/staf-installer.xml 6 ●●●● patch | view | raw | blame | history
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>