move some cli tests from CompilerSmokeTest to CliTest

This commit is contained in:
Stepan Koltsov
2012-06-14 16:05:16 +04:00
parent e113294185
commit d0cd37528a
7 changed files with 65 additions and 36 deletions
@@ -1,17 +0,0 @@
OUT Usage: org.jetbrains.jet.cli.jvm.K2JVMCompilerArguments
OUT -jar [String] jar file name
OUT -src [String] source file or directory
OUT -classpath [String] classpath to use when compiling
OUT -includeRuntime [flag]
OUT -stdlib [String] Path to the stdlib.jar
OUT -jdkHeaders [String] Path to the kotlin-jdk-headers.jar
OUT -mode [String] Special compiler modes: stubs or jdkHeaders
OUT -output [String] output directory
OUT -module [String] module to compile
OUT -script [flag]
OUT -tags [flag]
OUT -verbose [flag]
OUT -version [flag]
OUT -help (-h) [flag]
ERR exec() finished with INTERNAL_ERROR return code
Return code: 2
@@ -1,3 +0,0 @@
for (arg in args) {
println(arg)
}
@@ -1,3 +0,0 @@
OUT hi
OUT there
Return code: 0
@@ -23,10 +23,6 @@ import java.io.File;
import static junit.framework.Assert.*;
public class CompilerSmokeTest extends KotlinIntegrationTestBase {
@Test
public void help() throws Exception {
runCompiler("help", "--help");
}
@Test
public void compileAndRunHelloApp() throws Exception {
@@ -58,8 +54,4 @@ public class CompilerSmokeTest extends KotlinIntegrationTestBase {
runCompiler("test.compile", "-src", "test.kt", "-jar", jar);
}
@Test
public void script() throws Exception {
runCompiler("script", "-script", "hello.ktscript", "hi", "there");
}
}