Separated test data depending on target platform (JS/JVM)
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
-sourceFiles
|
||||
$TESTDATA_DIR$/simple2js.kt
|
||||
-output
|
||||
$TEMP_DIR$/out.js
|
||||
-outputPostfix
|
||||
not/existing/path
|
||||
@@ -0,0 +1,2 @@
|
||||
ERROR: Output postfix file 'not/existing/path' not found
|
||||
COMPILATION_ERROR
|
||||
@@ -0,0 +1,6 @@
|
||||
-sourceFiles
|
||||
$TESTDATA_DIR$/simple2js.kt
|
||||
-output
|
||||
$TEMP_DIR$/out.js
|
||||
-outputPrefix
|
||||
not/existing/path
|
||||
@@ -0,0 +1,2 @@
|
||||
ERROR: Output prefix file 'not/existing/path' not found
|
||||
COMPILATION_ERROR
|
||||
@@ -0,0 +1,5 @@
|
||||
-printArgs
|
||||
-sourceFiles
|
||||
$TESTDATA_DIR$/simple2js.kt,$TESTDATA_DIR$/../warnings.kt
|
||||
-suppress
|
||||
warnings
|
||||
@@ -0,0 +1,3 @@
|
||||
INFO: Invoking compiler org.jetbrains.jet.cli.js.K2JSCompiler with arguments -suppress warnings -printArgs -sourceFiles compiler/testData/cli/js/simple2js.kt,compiler/testData/cli/js/../warnings.kt
|
||||
ERROR: Specify output file via -output
|
||||
COMPILATION_ERROR
|
||||
@@ -0,0 +1,4 @@
|
||||
-sourceFiles
|
||||
$TESTDATA_DIR$/simple2js.kt
|
||||
-output
|
||||
$TEMP_DIR$/out.js
|
||||
@@ -0,0 +1 @@
|
||||
fun main(args: Array<String>) {}
|
||||
@@ -0,0 +1 @@
|
||||
OK
|
||||
@@ -0,0 +1,6 @@
|
||||
-sourceFiles
|
||||
$TESTDATA_DIR$/../warnings.kt
|
||||
-suppress
|
||||
WaRnInGs
|
||||
-output
|
||||
$TEMP_DIR$/out.js
|
||||
@@ -0,0 +1 @@
|
||||
OK
|
||||
Reference in New Issue
Block a user