Skip to content

Commit

Permalink
Add support for org.opengauss:opengauss-jdbc:3.1.0-og
Browse files Browse the repository at this point in the history
  • Loading branch information
linghengqian committed Jan 9, 2023
1 parent 41adcc9 commit bfc25a1
Show file tree
Hide file tree
Showing 11 changed files with 499 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 @@ -23,6 +23,10 @@
"directory": "com.h2database/h2",
"module": "com.h2database:h2"
},
{
"directory": "org.opengauss/opengauss-jdbc",
"module": "org.opengauss:opengauss-jdbc"
},
{
"directory": "org.hdrhistogram/HdrHistogram",
"module": "org.hdrhistogram:HdrHistogram"
Expand Down
4 changes: 4 additions & 0 deletions metadata/org.opengauss/opengauss-jdbc/3.1.0-og/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[
"reflect-config.json",
"resource-config.json"
]
155 changes: 155 additions & 0 deletions metadata/org.opengauss/opengauss-jdbc/3.1.0-og/reflect-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
[
{
"condition": {
"typeReachable": "org.opengauss.log.LogFactory"
},
"name": "JdkLogger"
},
{
"condition": {
"typeReachable": "org.opengauss.core.v3.ConnectionFactoryImpl"
},
"name": "java.security.SecureRandomParameters"
},
{
"condition": {
"typeReachable": "org.opengauss.core.Oid"
},
"name": "org.opengauss.core.Oid",
"allPublicFields": true
},
{
"condition": {
"typeReachable": "org.opengauss.jdbc.PgConnection"
},
"name": "org.opengauss.geometric.PGbox",
"methods": [
{
"name": "<init>",
"parameterTypes": []
}
]
},
{
"condition": {
"typeReachable": "org.opengauss.jdbc.PgConnection"
},
"name": "org.opengauss.geometric.PGcircle",
"methods": [
{
"name": "<init>",
"parameterTypes": []
}
]
},
{
"condition": {
"typeReachable": "org.opengauss.jdbc.PgConnection"
},
"name": "org.opengauss.geometric.PGlseg",
"methods": [
{
"name": "<init>",
"parameterTypes": []
}
]
},
{
"condition": {
"typeReachable": "org.opengauss.jdbc.PgConnection"
},
"name": "org.opengauss.geometric.PGpath",
"methods": [
{
"name": "<init>",
"parameterTypes": []
}
]
},
{
"condition": {
"typeReachable": "org.opengauss.jdbc.PgConnection"
},
"name": "org.opengauss.geometric.PGpoint",
"methods": [
{
"name": "<init>",
"parameterTypes": []
}
]
},
{
"condition": {
"typeReachable": "org.opengauss.jdbc.PgConnection"
},
"name": "org.opengauss.geometric.PGpolygon",
"methods": [
{
"name": "<init>",
"parameterTypes": []
}
]
},
{
"condition": {
"typeReachable": "org.opengauss.log.LogFactory"
},
"name": "org.opengauss.log.JdkLogger",
"methods": [
{
"name": "<init>",
"parameterTypes": [
"java.lang.String"
]
}
]
},
{
"condition": {
"typeReachable": "org.opengauss.jdbc.PgConnection"
},
"name": "org.opengauss.util.PGInterval",
"methods": [
{
"name": "<init>",
"parameterTypes": []
}
]
},
{
"condition": {
"typeReachable": "org.opengauss.util.MD5Digest"
},
"name": "sun.security.provider.MD5",
"methods": [
{
"name": "<init>",
"parameterTypes": []
}
]
},
{
"condition": {
"typeReachable": "org.opengauss.core.v3.ConnectionFactoryImpl"
},
"name": "sun.security.provider.NativePRNG",
"methods": [
{
"name": "<init>",
"parameterTypes": []
}
]
},
{
"condition": {
"typeReachable": "org.opengauss.core.v3.ConnectionFactoryImpl"
},
"name": "sun.security.provider.SHA",
"methods": [
{
"name": "<init>",
"parameterTypes": []
}
]
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"resources":{
"includes":[]},
"bundles":[{
"name":"org.opengauss.translation.messages",
"classNames":["org.opengauss.translation.messages_zh_CN"]
}]
}
10 changes: 10 additions & 0 deletions metadata/org.opengauss/opengauss-jdbc/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
"latest": true,
"metadata-version": "3.1.0-og",
"module": "org.opengauss:opengauss-jdbc",
"tested-versions": [
"3.1.0-og"
]
}
]
11 changes: 11 additions & 0 deletions tests/src/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,17 @@
}
]
},
{
"test-project-path": "org.opengauss/opengauss-jdbc/3.1.0-og",
"libraries": [
{
"name": "org.opengauss:opengauss-jdbc",
"versions": [
"3.1.0-og"
]
}
]
},
{
"test-project-path": "org.hdrhistogram/HdrHistogram/2.1.12",
"libraries": [
Expand Down
4 changes: 4 additions & 0 deletions tests/src/org.opengauss/opengauss-jdbc/3.1.0-og/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
gradlew.bat
gradlew
gradle/
build/
34 changes: 34 additions & 0 deletions tests/src/org.opengauss/opengauss-jdbc/3.1.0-og/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*
* 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"
}

String libraryVersion = tck.testedLibraryVersion.get()

dependencies {
testImplementation "org.opengauss:opengauss-jdbc:$libraryVersion"
testImplementation 'org.assertj:assertj-core:3.22.0'
testImplementation 'org.awaitility:awaitility:4.2.0'
}

graalvmNative {
agent {
defaultMode = "conditional"
modes {
conditional {
userCodeFilterPath = "user-code-filter.json"
}
}
metadataCopy {
mergeWithExisting = true
inputTaskNames.add("test")
outputDirectories.add("src/test/resources/META-INF/native-image/org.opengauss/opengauss-jdbc")
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
library.version = 3.1.0-og
metadata.dir = org.opengauss/opengauss-jdbc/3.1.0-og/
13 changes: 13 additions & 0 deletions tests/src/org.opengauss/opengauss-jdbc/3.1.0-og/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 = 'org.opengauss.opengauss-jdbc_tests'
Loading

0 comments on commit bfc25a1

Please sign in to comment.