From 7c24ad39ea21c6bd8f46c10628f4c8ab63fc1838 Mon Sep 17 00:00:00 2001 From: Simon Ogorodnik Date: Fri, 2 Aug 2019 17:27:55 +0300 Subject: [PATCH] Remove fir:lightTree test on kotlinx.coroutines as it caused problems in IDEA --- compiler/fir/lightTree/.gitignore | 1 - compiler/fir/lightTree/build.gradle.kts | 18 ----------------- .../coroutines/AbstractCoroutinesBenchmark.kt | 20 ------------------- 3 files changed, 39 deletions(-) delete mode 100644 compiler/fir/lightTree/.gitignore delete mode 100644 compiler/fir/lightTree/tests/org/jetbrains/kotlin/fir/lightTree/benchmark/coroutines/AbstractCoroutinesBenchmark.kt diff --git a/compiler/fir/lightTree/.gitignore b/compiler/fir/lightTree/.gitignore deleted file mode 100644 index 084b688ae46..00000000000 --- a/compiler/fir/lightTree/.gitignore +++ /dev/null @@ -1 +0,0 @@ -testData diff --git a/compiler/fir/lightTree/build.gradle.kts b/compiler/fir/lightTree/build.gradle.kts index 60aad6e9a99..a1cbf6913b1 100644 --- a/compiler/fir/lightTree/build.gradle.kts +++ b/compiler/fir/lightTree/build.gradle.kts @@ -1,10 +1,5 @@ -import org.ajoberstar.grgit.Grgit - plugins { kotlin("jvm") - - //git plugin - id("org.ajoberstar.grgit") version "3.1.1" } group = "org.jetbrains.kotlin.fir" @@ -97,16 +92,3 @@ val jmhExec by tasks.creating(JavaExec::class) { systemProperty("idea.max.intellisense.filesize", 5000 * 1024) configurations.plusAssign(project.configurations["compile"]) } - -val deleteGitFolder by tasks.creating(Delete::class) { - delete("$testDataPath/.git") -} - -val cloneCoroutines by tasks.creating { - val url = "https://github.com/Kotlin/kotlinx.coroutines.git" - if (!File(testDataPath).exists()) { - Grgit.clone(mapOf("dir" to testDataPath, - "uri" to url)).close() - } - finalizedBy(tasks["deleteGitFolder"]) -} diff --git a/compiler/fir/lightTree/tests/org/jetbrains/kotlin/fir/lightTree/benchmark/coroutines/AbstractCoroutinesBenchmark.kt b/compiler/fir/lightTree/tests/org/jetbrains/kotlin/fir/lightTree/benchmark/coroutines/AbstractCoroutinesBenchmark.kt deleted file mode 100644 index 7a5335ba9c2..00000000000 --- a/compiler/fir/lightTree/tests/org/jetbrains/kotlin/fir/lightTree/benchmark/coroutines/AbstractCoroutinesBenchmark.kt +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Copyright 2010-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license - * that can be found in the license/LICENSE.txt file. - */ - -package org.jetbrains.kotlin.fir.lightTree.benchmark.coroutines - -import org.jetbrains.kotlin.fir.lightTree.benchmark.AbstractBenchmarkForGivenPath -import org.jetbrains.kotlin.fir.lightTree.benchmark.generators.LightTree2FirGenerator -import org.jetbrains.kotlin.fir.lightTree.benchmark.generators.Psi2FirGenerator -import org.jetbrains.kotlin.fir.lightTree.benchmark.generators.TreeGenerator - -abstract class AbstractCoroutinesBenchmark : - AbstractBenchmarkForGivenPath(System.getProperty("user.dir") + "/compiler/fir/lightTree/testData/coroutines", false) - -open class LightTree2FirCoroutinesBenchmark(override val generator: TreeGenerator = LightTree2FirGenerator()) : - AbstractCoroutinesBenchmark() - -open class Psi2FirCoroutinesBenchmark(override val generator: TreeGenerator = Psi2FirGenerator()) : - AbstractCoroutinesBenchmark() \ No newline at end of file