Remove module integration-tests, merge into compiler-tests

This commit is contained in:
Alexander Udalov
2015-01-03 12:28:54 +03:00
parent cd79c4573d
commit 5c9750ae6b
147 changed files with 28 additions and 46 deletions
@@ -0,0 +1,11 @@
OUT:
Buildfile: [TestData]/build.xml
build:
[kotlin2js] Compiling [[TestData]/root1] => [[Temp]/out.js]
[unzip] Expanding: [TestData]/jslib-example.jar into [Temp]
BUILD SUCCESSFUL
Total time: [time]
Return code: 0
@@ -0,0 +1,17 @@
<project name="Ant Task Test" default="build">
<taskdef resource="org/jetbrains/jet/buildtools/ant/antlib.xml" classpath="${kotlin.lib}/kotlin-ant.jar"/>
<property name="library.path" value="${test.data}/jslib-example.jar"/>
<target name="build">
<kotlin2js src="${test.data}/root1" output="${temp}/out.js" main="call">
<library>
<pathelement path="${library.path}"/>
</library>
</kotlin2js>
<unzip src="${library.path}" dest="${temp}">
<patternset>
<include name="*.js"/>
<exclude name="META-INF/**"/>
</patternset>
</unzip>
</target>
</project>
@@ -0,0 +1,14 @@
package foo
import library.sample.*
var ok = "FAIL"
fun main(args: Array<String>) {
val p = Pair(10, 20)
val x = pairAdd(p)
ok = "OK"
println("x=$x")
}
fun box(): String = ok