Add test on scripts with classpath
This commit is contained in:
@@ -0,0 +1,4 @@
|
|||||||
|
OUT:
|
||||||
|
interface javax.inject.Inject
|
||||||
|
|
||||||
|
Return code: 0
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
import javax.inject.Inject
|
||||||
|
|
||||||
|
println(javaClass<Inject>())
|
||||||
@@ -109,4 +109,9 @@ public class CompilerSmokeTest extends KotlinIntegrationTestBase {
|
|||||||
public void simpleScript() throws Exception {
|
public void simpleScript() throws Exception {
|
||||||
runCompiler("script", "-script", "script.kts", "hi", "there");
|
runCompiler("script", "-script", "script.kts", "hi", "there");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void scriptWithClasspath() throws Exception {
|
||||||
|
runCompiler("script", "-cp", new File("lib/javax.inject.jar").getAbsolutePath(), "-script", "script.kts");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user