File tree 1 file changed +13
-1
lines changed
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 1
1
plugins {
2
2
kotlin(" jvm" )
3
3
id(" jps-compatible" )
4
+ id(" compiler-tests-convention" )
4
5
}
5
6
6
7
dependencies {
@@ -31,9 +32,19 @@ sourceSets {
31
32
32
33
testsJar()
33
34
35
+ compilerTests {
36
+ withScriptRuntime()
37
+ withTestJar()
38
+ }
39
+
34
40
projectTest(parallel = true ) {
35
41
workingDir = rootDir
36
- dependsOn(" :dist" )
42
+ useJUnitPlatform()
43
+ inputs.dir(layout.projectDirectory.dir(" testData" )).withPathSensitivity(PathSensitivity .RELATIVE )
44
+ inputs.file(File (rootDir, " tests/mute-common.csv" )).withPathSensitivity(PathSensitivity .RELATIVE )
45
+ inputs.file(File (rootDir, " compiler/cli/cli-common/resources/META-INF/extensions/compiler.xml" ))
46
+ .withPathSensitivity(PathSensitivity .RELATIVE )
47
+ inputs.file(File (rootDir, " compiler/testData/mockJDK/jre/lib/rt.jar" )).withNormalizer(ClasspathNormalizer ::class )
37
48
}
38
49
39
50
val generateSpecTests by generator(" org.jetbrains.kotlin.spec.utils.tasks.GenerateSpecTestsKt" )
@@ -48,6 +59,7 @@ val specConsistencyTests by task<Test> {
48
59
includeTestsMatching(" org.jetbrains.kotlin.spec.consistency.SpecTestsConsistencyTest" )
49
60
}
50
61
useJUnitPlatform()
62
+ inputs.dir(layout.projectDirectory.dir(" testData" )).withPathSensitivity(PathSensitivity .RELATIVE )
51
63
}
52
64
53
65
tasks.named<Test >(" test" ) {
You can’t perform that action at this time.
0 commit comments