Skip to content

Commit

Permalink
Examine test inputs to try to figure out why they're failing on GitHub.
Browse files Browse the repository at this point in the history
  • Loading branch information
netdpb committed Dec 11, 2023
1 parent a7c8351 commit 2d267a0
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -133,17 +133,26 @@ tasks.register('conformanceTests', Test) {
inputs.dir(unzipConformanceTestSuite.destinationDir)
inputs.files("tests/ConformanceTest-report.txt")
systemProperties([
"JSpecifyConformanceTest.inputs": "${unzipConformanceTestSuite.destinationDir}/assertions/org/jspecify/conformance/tests",
"JSpecifyConformanceTest.report": "tests/ConformanceTest-report.txt",
"JSpecifyConformanceTest.deps": fileTree("${unzipConformanceTestSuite.destinationDir}/deps").join(":")
"JSpecifyConformanceTest.inputs": "${unzipConformanceTestSuite.destinationDir}/assertions/org/jspecify/conformance/tests",
"JSpecifyConformanceTest.report": "tests/ConformanceTest-report.txt",
"JSpecifyConformanceTest.deps" : fileTree("${unzipConformanceTestSuite.destinationDir}/deps").join(":")
])

// DO NOT MERGE
def dir =unzipConformanceTestSuite.destinationDir.toPath()
fileTree(dir).forEach {
println("conformanceTests: ${dir.relativize(it.toPath())}")
if (it.path.endsWith(".jar")) {
zipTree(it).forEach { zipEntry -> println("${dir.relativize(it.toPath())}: $zipEntry") }
}
}

// Conformance tests run on the samples directory
inputs.dir("${jspecify.projectDir}/samples")
inputs.files("tests/ConformanceTestOnSamples-report.txt")
systemProperties([
"JSpecifyConformanceTest.samples.inputs": "${jspecify.projectDir}/samples",
"JSpecifyConformanceTest.samples.report": "tests/ConformanceTestOnSamples-report.txt"
"JSpecifyConformanceTest.samples.inputs": "${jspecify.projectDir}/samples",
"JSpecifyConformanceTest.samples.report": "tests/ConformanceTestOnSamples-report.txt"
])
}

Expand Down

0 comments on commit 2d267a0

Please sign in to comment.