Commit 7e27744d authored by Vít Kabele's avatar Vít Kabele

SHVM unit tests moved to dedicated repository

parent 64928a3f
......@@ -40,6 +40,8 @@
<classpathentry kind="src" path="shvm/src/src-reqdispatch"/>
<classpathentry kind="src" path="shvm/src/src-shadow"/>
<classpathentry kind="src" path="shvm/src/src-util"/>
<classpathentry kind="src" path="shvm/src/src-server-api"/>
<classpathentry kind="src" path="shvm/src-test"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="output/lib/disl-bypass.jar"/>
<classpathentry kind="lib" path="lib/disl/log4j.jar" sourcepath="lib/devel/log4j-source.jar"/>
......
......@@ -772,11 +772,11 @@
</macrodef>
<!-- Run nested instrumentation library tests -->
<target name="disl-test">
<target name="test" depends="build,build-test" description="Runs all tests or a selected (-Dtest.name=...) test suite.">
<ant antfile="${src.disl.prefix}/build.xml" target="test" usenativebasedir="true"/>
</target>
<ant antfile="${src.shvm.prefix}/build.xml" target="test" usenativebasedir="true" />
<target name="test" depends="build,build-test,disl-test" description="Runs all tests or a selected (-Dtest.name=...) test suite.">
<!--
If test.name is set to a name of a test suite, only include the test suite
in the batch of tests to be run, otherwise include all tests and suites.
......
# Build properties related to the SHVM package
src.shvm.test=src-test
build.shvm.test=${build.dir}/test
......@@ -12,6 +12,7 @@
-->
<target name="init">
<mkdir dir="${build.shvm}" />
<mkdir dir="${build.shvm.test}" />
</target>
<!--
......@@ -24,6 +25,10 @@
<pathelement location="../${build.util}"/>
</path>
<path id="junit.classpath">
<fileset dir="../${lib.test.dir}" includes="*.jar"/>
</path>
<path id="protobuf.classpath">
<fileset dir="../${lib.disl.dir}" includes="protobuf*.jar"/>
</path>
......@@ -61,6 +66,7 @@
<src path="src/src-msg-threadinfo" />
<src path="src/src-remoteanalysis" />
<src path="src/src-reqdispatch" />
<src path="src/src-server-api" />
<src path="src/src-shadow" />
<src path="src/src-util" />
......@@ -99,6 +105,39 @@
</jar>
</target>
<target name="compile-tests" depends="compile">
<javac destdir="${build.shvm.test}" debug="true" srcdir="${src.shvm.test}" includeantruntime="false">
<classpath>
<path refid="util.classpath"/>
<path refid="asm.classpath"/>
<path refid="junit.classpath"/>
<path path="${build.shvm}"/>
</classpath>
</javac>
</target>
<target name="test" depends="compile-tests" description="Run all unit tests">
<echo>Running SHVM instrumentation library tests...</echo>
<junit haltonfailure="yes" haltonerror="yes" failureproperty="junit.failure">
<formatter type="brief" usefile="false"/>
<classpath>
<path refid="asm.classpath"/>
<path refid="junit.classpath"/>
<path path="${build.shvm.test}"/>
<path path="../${build.util}"/>
<path path="${build.shvm}"/>
</classpath>
<batchtest fork="yes">
<fileset dir="${src.shvm.test}">
<include name="**/*Test.java"/>
</fileset>
</batchtest>
</junit>
</target>
<!--
Clean the build directory
-->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment