test/capture sigar.jar version
This commit is contained in:
parent
f4d6d50966
commit
efcc9971c3
|
@ -356,7 +356,18 @@
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="xtest" depends="jni-init">
|
<target name="xtest" depends="jni-init">
|
||||||
<mkdir dir="${build}/testresults/${jni.libarch}"/>
|
<property name="testresults"
|
||||||
|
location="${build}/testresults/${jni.libarch}"/>
|
||||||
|
|
||||||
|
<mkdir dir="${testresults}"/>
|
||||||
|
|
||||||
|
<!-- test/capture sigar.jar version -->
|
||||||
|
<java fork="yes" failonerror="yes"
|
||||||
|
output="${testresults}/version.txt"
|
||||||
|
jvm="${java.home}/bin/java"
|
||||||
|
jar="${sigar-bin}/lib/${sigar.jar}">
|
||||||
|
<arg value="version"/>
|
||||||
|
</java>
|
||||||
|
|
||||||
<condition property="win32.test" value="win32/test">
|
<condition property="win32.test" value="win32/test">
|
||||||
<os family="windows"/>
|
<os family="windows"/>
|
||||||
|
@ -378,7 +389,7 @@
|
||||||
<classpath refid="alljars"/>
|
<classpath refid="alljars"/>
|
||||||
<formatter type="xml"/>
|
<formatter type="xml"/>
|
||||||
|
|
||||||
<batchtest fork="yes" todir="${build}/testresults/${jni.libarch}">
|
<batchtest fork="yes" todir="${testresults}">
|
||||||
<fileset dir="${src}">
|
<fileset dir="${src}">
|
||||||
<include name="org/hyperic/sigar/test/Test*.java"/>
|
<include name="org/hyperic/sigar/test/Test*.java"/>
|
||||||
<include name="org/hyperic/sigar/${win32.test}/Test*.java"/>
|
<include name="org/hyperic/sigar/${win32.test}/Test*.java"/>
|
||||||
|
|
Loading…
Reference in New Issue