Ant task - "testlib-tests" added, currently commented out - "testlib" compilation fails.

This commit is contained in:
Evgeny Goldin
2012-01-27 01:14:59 +02:00
parent a43a6c6678
commit 01b4f5b871
2 changed files with 26 additions and 0 deletions
+17
View File
@@ -251,6 +251,22 @@
</macrodef>
<!-- Compiles "testlib" Kotlin tests (file, dir, module => dir/jar) -->
<!-- Currently disabled, see "buildToolsTest" -->
<macrodef name="testlib-tests">
<sequential>
<kotlinc-dir file = "${basedir}/testlib/test/CollectionTest.kt"/>
<kotlinc-dir file = "${basedir}/testlib/test/Test.kt"/>
<kotlinc-dir srcdir = "${basedir}/testlib/test"/>
<kotlinc-jar file = "${basedir}/testlib/test/CollectionTest.kt"/>
<kotlinc-jar file = "${basedir}/testlib/test/Test.kt"/>
<kotlinc-jar srcdir = "${basedir}/testlib/test"/>
<kotlinc-jar module = "${basedir}/build-tools/test/modules/Testlib.kts"/>
</sequential>
</macrodef>
<!-- Compiles and runs a Kotlin module -->
<macrodef name="module-tests">
<sequential>
@@ -333,6 +349,7 @@
<hello-tests/>
<longer-examples-tests/>
<module-tests/>
<!--<testlib-tests/>-->
<compilation-fail-test/>
</target>
</project>
+9
View File
@@ -0,0 +1,9 @@
import kotlin.modules.*
val homeDir = "../../../testlib/test"
fun project() {
module("Testlib") {
sources += homeDir
}
}