File tree 9 files changed +19
-16
lines changed
conformance-tests/src/test/kotlin/com/toasttab/protokt/conformance
util/src/main/kotlin/com/toasttab/protokt/testing/util
9 files changed +19
-16
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ buildscript {
24
24
25
25
dependencies {
26
26
classpath(libraries.kotlinPlugin)
27
- classpath(libraries.protobufPlugin)
28
27
}
29
28
}
30
29
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ repositories {
27
27
}
28
28
29
29
dependencies {
30
- implementation(" com.diffplug.spotless:spotless-plugin-gradle:4.2.0 " )
31
- implementation(" com.google.protobuf:protobuf-gradle-plugin:0.8.12 " )
30
+ implementation(" com.diffplug.spotless:spotless-plugin-gradle:5.5.1 " )
31
+ implementation(" com.google.protobuf:protobuf-gradle-plugin:0.8.13 " )
32
32
implementation(" io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.21.2" )
33
33
implementation(" com.google.guava:guava:29.0-jre" )
34
34
implementation(" ru.vyarus:gradle-animalsniffer-plugin:1.5.0" )
Original file line number Diff line number Diff line change @@ -18,13 +18,13 @@ import com.toasttab.protokt.gradle.DEFAULT_PROTOBUF_VERSION
18
18
object versions {
19
19
const val arrow = " 0.10.5"
20
20
const val autoService = " 1.0-rc7"
21
- const val grpc = " 1.29.0 "
22
- const val jackson = " 2.11.0 "
21
+ const val grpc = " 1.32.1 "
22
+ const val jackson = " 2.11.3 "
23
23
const val kollection = " 0.7"
24
24
const val kotlin = " 1.3.72"
25
25
const val kotlinxCoroutines = " 1.3.7"
26
26
const val protobuf = DEFAULT_PROTOBUF_VERSION
27
- const val protobufPlugin = " 0.8.12 "
27
+ const val protobufPlugin = " 0.8.13 "
28
28
const val stringTemplate = " 4.3"
29
29
30
30
// Test
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import org.gradle.kotlin.dsl.apply
19
19
import org.gradle.kotlin.dsl.configure
20
20
21
21
fun Project.lint () {
22
- apply (plugin = " com.diffplug.gradle. spotless" )
22
+ apply (plugin = " com.diffplug.spotless" )
23
23
24
24
configure<SpotlessExtension > {
25
25
kotlin {
Original file line number Diff line number Diff line change 1
1
distributionBase =GRADLE_USER_HOME
2
2
distributionPath =wrapper/dists
3
- distributionUrl =https\://services.gradle.org/distributions/gradle-6.5 -bin.zip
3
+ distributionUrl =https\://services.gradle.org/distributions/gradle-6.6.1 -bin.zip
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change @@ -11,9 +11,11 @@ Mac conformance tests:
11
11
protobuf % ./configure
12
12
protobuf % make clean
13
13
protobuf % make
14
- protobuf % cd conformance/
14
+ protobuf % cd conformance
15
15
conformance % make
16
- conformance % cp .libs/conformance-test-runner ../../protokt/testing/conformance-driver/bin/darwin/conformance-test-runner
16
+ conformance % cd ..
17
+ protobuf % cp conformance/.libs/conformance-test-runner ../protokt/testing/conformance-driver/bin/darwin/conformance-test-runner
18
+ protobuf % cp src/.libs/libprotobuf.24.dylib ../protokt/testing/conformance-driver/bin/darwin/.libs/libprotobuf.24.dylib
17
19
```
18
20
19
21
Ubuntu conformance tests:
@@ -24,12 +26,12 @@ root@38f7a53696b9:/# cd tmp/
24
26
root@38f7a53696b9:/tmp# ./configure
25
27
root@38f7a53696b9:/tmp# make clean
26
28
root@38f7a53696b9:/tmp# make
27
- root@38f7a53696b9:/tmp# cd conformance/
29
+ root@38f7a53696b9:/tmp# cd conformance
28
30
root@38f7a53696b9:/tmp/conformance# make
29
31
root@38f7a53696b9:/tmp/conformance# exit
30
32
protobuf % cp conformance/.libs/conformance-test-runner ../protokt/testing/conformance-driver/bin/ubuntu-16.04-x86_64/conformance-test-runner
31
33
protobuf % cp src/.libs/libprotobuf.so.24 ../protokt/testing/conformance-driver/bin/ubuntu-16.04-x86_64/.libs/libprotobuf.so.24
32
34
```
33
35
34
- Note that the integer suffix on ` libprotobuf.so ` may change, and the need to
35
- copy it may disappear as it has for running the conformance tests on Mac .
36
+ Note that the version numbers on ` libprotobuf.so.xx ` and ` libprotobuf.xx.dylib `
37
+ may change .
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ private val command =
63
63
" $baseCommand --enforce_recommended $failureList $conformanceDriver "
64
64
65
65
private val libPathOverride =
66
- pivotOs (
67
- emptyMap(),
68
- mapOf ( " LD_LIBRARY_PATH " to Paths .get(binDir, " .libs" ).toString() )
66
+ mapOf (
67
+ pivotOs( " DYLD_LIBRARY_PATH " , " LD_LIBRARY_PATH " ) to
68
+ Paths .get(binDir, " .libs" ).toString()
69
69
)
Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ fun String.runCommand(
29
29
workingDir : Path ,
30
30
env : Map <String , String > = emptyMap()
31
31
): ProcessOutput {
32
+ println (" Executing $this in $workingDir with $env " )
33
+
32
34
val proc =
33
35
ProcessBuilder (* split(" \\ s" .toRegex()).toTypedArray())
34
36
.directory(workingDir.toFile())
You can’t perform that action at this time.
0 commit comments