JSpecify: add gradle task to download JSpecify test suite

This commit is contained in:
Victor Petukhov
2020-10-12 17:20:56 +03:00
parent d0cd7a4008
commit c89461e654
+14
View File
@@ -35,6 +35,20 @@ projectTest(parallel = true) {
val generateTests by generator("org.jetbrains.kotlin.generators.tests.GenerateJava8TestsKt")
val generateKotlinUseSiteFromJavaOnesForJspecifyTests by generator("org.jetbrains.kotlin.generators.tests.GenerateKotlinUseSitesFromJavaOnesForJspecifyTestsKt")
task<Exec>("downloadJspecifyTests") {
val tmpDirPath = createTempDir().absolutePath
doFirst {
executable("git")
args("clone", "https://github.com/jspecify/jspecify/", tmpDirPath)
}
doLast {
copy {
from("$tmpDirPath/samples")
into("${project.rootDir}/compiler/testData/foreignAnnotationsJava8/tests/jspecify/java")
}
}
}
val test: Test by tasks
test.apply {