From 2d267a05f3afcfcdf8f40b5a35567dcada431410 Mon Sep 17 00:00:00 2001 From: "David P. Baker" Date: Mon, 11 Dec 2023 12:25:47 -0500 Subject: [PATCH] Examine test inputs to try to figure out why they're failing on GitHub. --- build.gradle | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index 52e8ec8..bd2a4f9 100644 --- a/build.gradle +++ b/build.gradle @@ -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" ]) }