Skip to content

Commit

Permalink
Add tests for grpc-core
Browse files Browse the repository at this point in the history
  • Loading branch information
dsyer committed Jan 29, 2025
1 parent ee6b4c9 commit dfbba93
Show file tree
Hide file tree
Showing 14 changed files with 1,677 additions and 0 deletions.
4 changes: 4 additions & 0 deletions metadata/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@
"allowed-packages" : [ "org.apache.commons.logging" ],
"directory" : "commons-logging/commons-logging",
"module" : "commons-logging:commons-logging"
}, {
"allowed-packages" : [ "io.grpc" ],
"directory" : "io.grpc/grpc-core",
"module" : "io.grpc:grpc-core"
}, {
"allowed-packages" : [ "io.grpc" ],
"directory" : "io.grpc/grpc-netty",
Expand Down
6 changes: 6 additions & 0 deletions tests/src/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,12 @@
"name" : "commons-logging:commons-logging",
"versions" : [ "1.2" ]
} ]
}, {
"test-project-path" : "io.grpc/grpc-core/1.69.0",
"libraries" : [ {
"name" : "io.grpc:grpc-core",
"versions" : [ "1.69.0" ]
} ]
}, {
"test-project-path" : "io.grpc/grpc-netty/1.51.0",
"libraries" : [ {
Expand Down
4 changes: 4 additions & 0 deletions tests/src/io.grpc/grpc-core/1.69.0/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
gradlew.bat
gradlew
gradle/
build/
49 changes: 49 additions & 0 deletions tests/src/io.grpc/grpc-core/1.69.0/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/*
* Copyright and related rights waived via CC0
*
* You should have received a copy of the CC0 legalcode along with this
* work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
*/

plugins {
id "org.graalvm.internal.tck"
id 'com.google.protobuf' version '0.9.4'
}

String libraryVersion = tck.testedLibraryVersion.get()

dependencies {
testImplementation "io.grpc:grpc-netty:$libraryVersion"
testImplementation "io.grpc:grpc-services:$libraryVersion"
testImplementation "io.grpc:grpc-testing:$libraryVersion"
implementation "io.grpc:grpc-protobuf:$libraryVersion"
implementation "io.grpc:grpc-stub:$libraryVersion"
implementation 'jakarta.annotation:jakarta.annotation-api:1.3.5'
testImplementation 'org.assertj:assertj-core:3.22.0'
}

protobuf {
protoc {
artifact = "com.google.protobuf:protoc:3.25.5"
}
generatedFilesBaseDir = "$projectDir/src/generated"
clean {
delete generatedFilesBaseDir
}
plugins {
grpc {
artifact = "io.grpc:protoc-gen-grpc-java:$libraryVersion"
}
}
generateProtoTasks {
ofSourceSet('main').configureEach {
plugins {
grpc {}
}
}
}
}

checkstyle {
sourceSets = []
}
2 changes: 2 additions & 0 deletions tests/src/io.grpc/grpc-core/1.69.0/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
library.version = 1.69.0
metadata.dir = io.grpc/grpc-core/1.69.0/
13 changes: 13 additions & 0 deletions tests/src/io.grpc/grpc-core/1.69.0/settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
pluginManagement {
def tckPath = Objects.requireNonNullElse(
System.getenv("GVM_TCK_TCKDIR"),
"../../../../tck-build-logic"
)
includeBuild(tckPath)
}

plugins {
id "org.graalvm.internal.tck-settings" version "1.0.0-SNAPSHOT"
}

rootProject.name = 'io.grpc.grpc-netty_tests'
Loading

0 comments on commit dfbba93

Please sign in to comment.