Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions reference-tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,23 @@ configurations.configureEach {
exclude module: 'log4j-slf4j2-impl'
}

tasks.register("downloadExecutionSpecFixtures", Download)
{
tasks.register("downloadExecutionSpecFixtures", Download) {
src "https://github.com/ethereum/execution-spec-tests/releases/download/v5.3.0/fixtures_develop.tar.gz"
dest "./build/fixtures_develop.tar.gz"
overwrite false
}


tasks.register("generateExecutionSpecBlockchainTests", RefTestGenerationTask) {
dependsOn "downloadExecutionSpecFixtures"
copy {
tasks.register("copyExecutionSpecFixtures", Copy) {
dependsOn "downloadExecutionSpecFixtures"
//
from tarTree("./build/fixtures_develop.tar.gz")
into "./build/execution-spec-tests"
}
}


tasks.register("generateExecutionSpecBlockchainTests", RefTestGenerationTask) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's only working when done in 2 steps ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, I'm not really sure why though. Would be nice if we could fix that, but for another day.

dependsOn "copyExecutionSpecFixtures"
// Configure task
refTestTemplateFilePath = "src/test/resources/templates/BlockchainReferenceTest.java.template"
refTests = "./build/execution-spec-tests/fixtures/blockchain_tests"
refTestsSrcPath = "./build/execution-spec-tests/"
Expand Down
Loading