Psi2IR acceptance test (failing).

This commit is contained in:
Dmitry Petrov
2016-09-02 17:38:34 +03:00
committed by Dmitry Petrov
parent a3dadd9e3f
commit 5cb7566975
3 changed files with 16094 additions and 0 deletions
@@ -0,0 +1,26 @@
/*
* Copyright 2010-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.kotlin.ir
import java.io.File
abstract class AbstractPsi2IrAcceptanceTestCase : AbstractIrGeneratorTestCase() {
override fun doTest(wholeFile: File, testFiles: List<TestFile>) {
// Just make sure that nothing interesting happens - e.g., no exceptions thrown
generateIrFilesAsSingleModule(testFiles)
}
}
File diff suppressed because it is too large Load Diff
@@ -122,6 +122,7 @@ import org.jetbrains.kotlin.idea.stubs.AbstractResolveByStubTest
import org.jetbrains.kotlin.idea.stubs.AbstractStubBuilderTest
import org.jetbrains.kotlin.integration.AbstractAntTaskTest
import org.jetbrains.kotlin.ir.AbstractIrTextTestCase
import org.jetbrains.kotlin.ir.AbstractPsi2IrAcceptanceTestCase
import org.jetbrains.kotlin.j2k.AbstractJavaToKotlinConverterForWebDemoTest
import org.jetbrains.kotlin.j2k.AbstractJavaToKotlinConverterMultiFileTest
import org.jetbrains.kotlin.j2k.AbstractJavaToKotlinConverterSingleFileTest
@@ -244,6 +245,10 @@ fun main(args: Array<String>) {
model("ir/irText")
}
testClass<AbstractPsi2IrAcceptanceTestCase>() {
model("codegen/box")
}
testClass<AbstractBytecodeListingTest>() {
model("codegen/bytecodeListing")
}