compileTests in build.xml and command-line script to execute test

This commit is contained in:
Stepan Koltsov
2012-03-19 14:57:07 +04:00
parent 3d4e3c4dd9
commit e201fb5ce5
2 changed files with 18 additions and 0 deletions
Executable
+7
View File
@@ -0,0 +1,7 @@
#!/bin/sh -e
cd $(dirname $0)/..
exec java -classpath 'dist/classes/tests:compiler/frontend/src:dist/classes/runtime:dist/classes/compiler:lib/*:ideaSDL/core/*:ideaSDK/lib/*' "$@"
# vim: set ts=4 sw=4 et ft=sh:
+11
View File
@@ -134,6 +134,17 @@
</javac>
</target>
<target name="compileTests" depends="dist">
<mkdir dir="${output}/classes/tests"/>
<javac destdir="${output}/classes/tests" debug="true" includeAntRuntime="false">
<src path="compiler/tests"/>
<classpath refid="classpath"/>
<classpath location="${output}/classes/compiler"/>
<classpath location="ideaSDK/lib/junit-4.10.jar"/>
<classpath location="ideaSDK/lib/idea.jar"/>
</javac>
</target>
<target name="jar" depends="compile">
<jar destfile="${kotlin-home}/lib//kotlin-compiler.jar">
<fileset dir="${output}/classes/compiler"/>