Upgrade Reference Tests (#5343)

* Upgrade reference tests to v12.1
* Repair submodule validation check

Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
pull/5350/head
Danno Ferrin 2 years ago committed by GitHub
parent 78e566f2ef
commit c55571ffa2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 10
      ethereum/referencetests/build.gradle
  3. 2
      ethereum/referencetests/src/reference-test/external-resources

@ -11,6 +11,7 @@
- If jemalloc is used, print its version in the configuration overview [#4738](https://github.com/hyperledger/besu/pull/4738)
- Add metrics for accounts and storage reads (Flat database vs Merkle Patricia Trie) [#5315](https://github.com/hyperledger/besu/pull/5315)
- Offload LogBloom cache generation to computation executor, to avoid interfere with other scheduled tasks [#4530](https://github.com/hyperledger/besu/pull/4530)
- Reference tests are upgraded to use v12.1 of the ethereum tests [#5343](https://github.com/hyperledger/besu/pull/5343)
### Bug Fixes

@ -147,7 +147,7 @@ dependencies {
referenceTestRuntimeOnly 'org.junit.jupiter:junit-jupiter'
}
task referenceTests(type: Test) {
tasks.register('referenceTests', Test) {
useJUnitPlatform()
doFirst {
if (!file("src/reference-test/external-resources/README.md").exists()) {
@ -159,12 +159,12 @@ task referenceTests(type: Test) {
classpath = sourceSets.referenceTest.runtimeClasspath
}
task ('validateReferenceTestSubmodule') {
tasks.register('validateReferenceTestSubmodule') {
description = "Checks that the reference tests submodule is not accidentally changed"
doLast {
def result = new ByteArrayOutputStream()
def expectedHash = 'a380655e5ffab1a5ea0f4d860224bdb19013f06a'
def submodulePath = java.nio.file.Path.of("${rootProject.projectDir}", "ethereum/referencetests/src/test/resources").toAbsolutePath()
def expectedHash = '04f338a6e673a6b4d906ec9d6d2bc939309357a5'
def submodulePath = java.nio.file.Path.of("${rootProject.projectDir}", "ethereum/referencetests/src/reference-test/external-resources").toAbsolutePath()
try {
exec {
commandLine 'git', 'submodule', 'status', submodulePath
@ -199,7 +199,7 @@ following commands:
processResources.dependsOn('validateReferenceTestSubmodule')
def generateTestFiles(FileTree jsonPath, File templateFile, String pathstrip, String destination, String namePrefix, String ... excludedPath) {
def pep = mkdir(destination)
mkdir(destination)
def referenceTestTemplate = templateFile.text
// This is how many json files to include in each test file

@ -1 +1 @@
Subproject commit 291118cf69f33a4a89f2f61c7bf5fe0e62c9c2f8
Subproject commit 04f338a6e673a6b4d906ec9d6d2bc939309357a5
Loading…
Cancel
Save