New IC: don't fail on unsupported difference kinds and process SUPERTYPE_ID_LIST correctly

Original commit: 05eff9028f
This commit is contained in:
Zalim Bashorov
2016-02-11 23:07:41 +03:00
parent cc99898fed
commit e99513da07
6 changed files with 64 additions and 0 deletions
@@ -0,0 +1,31 @@
/*
* 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.jps.build
open class IncrementalRenameModuleTest : AbstractIncrementalJpsTest() {
fun testRenameModule() {
doTest("jps-plugin/testData/incremental/custom/renameModule/")
}
override fun performAdditionalModifications(modifications: List<Modification>) {
projectDescriptor.project.modules.forEach { it.name += "Renamed" }
}
}
class ExperimentalIncrementalRenameModuleTest : IncrementalRenameModuleTest() {
override val enableExperimentalIncrementalCompilation = true
}
@@ -0,0 +1,18 @@
================ Step #1 =================
Compiling files:
src/test.kt
src/unrelated.kt
src/usage.kt
End of files
Exit code: ADDITIONAL_PASS_REQUIRED
------------------------------------------
Cleaning output files:
out/production/moduleRenamed/META-INF/moduleRenamed.kotlin_module
out/production/moduleRenamed/test/UsageKt.class
End of files
Compiling files:
src/usage.kt
End of files
Exit code: OK
------------------------------------------
@@ -0,0 +1,5 @@
package test
class Foo
fun bar() {}
@@ -0,0 +1,4 @@
package unrelated
fun doSomething() {
}
@@ -0,0 +1,6 @@
package test
fun usage() {
Foo()
bar()
}