Update Reference Tests (#1198)

Update to the reference tests used on hivetests.etherdevops.io and
retesteth.etherdevops.io.  Both are using a more current release of the
reference tests that includes performance and subroutines items.

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
pull/976/head
Danno Ferrin 4 years ago committed by GitHub
parent 67cae63214
commit 525e7812a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      ethereum/core/src/test/java/org/hyperledger/besu/ethereum/vm/BlockchainReferenceTestTools.java
  2. 6
      ethereum/core/src/test/java/org/hyperledger/besu/ethereum/vm/GeneralStateReferenceTestTools.java
  3. 2
      ethereum/referencetests/src/test/resources

@ -16,6 +16,7 @@ package org.hyperledger.besu.ethereum.vm;
import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThat;
import org.hyperledger.besu.config.experimental.ExperimentalEIPs;
import org.hyperledger.besu.ethereum.ProtocolContext; import org.hyperledger.besu.ethereum.ProtocolContext;
import org.hyperledger.besu.ethereum.chain.MutableBlockchain; import org.hyperledger.besu.ethereum.chain.MutableBlockchain;
import org.hyperledger.besu.ethereum.core.Block; import org.hyperledger.besu.ethereum.core.Block;
@ -78,6 +79,11 @@ public class BlockchainReferenceTestTools {
// Insane amount of ether // Insane amount of ether
params.blacklist("sha3_memSizeNoQuadraticCost[0-9][0-9]_Istanbul"); params.blacklist("sha3_memSizeNoQuadraticCost[0-9][0-9]_Istanbul");
params.blacklist("sha3_memSizeQuadraticCost[0-9][0-9]_(|zeroSize|2)_?Istanbul"); params.blacklist("sha3_memSizeQuadraticCost[0-9][0-9]_(|zeroSize|2)_?Istanbul");
// Berlin isn't finalized
if (!ExperimentalEIPs.berlinEnabled) {
params.blacklist(".*[_-]Berlin");
}
} }
public static Collection<Object[]> generateTestParametersForConfig(final String[] filePath) { public static Collection<Object[]> generateTestParametersForConfig(final String[] filePath) {

@ -16,6 +16,7 @@ package org.hyperledger.besu.ethereum.vm;
import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThat;
import org.hyperledger.besu.config.experimental.ExperimentalEIPs;
import org.hyperledger.besu.ethereum.core.Account; import org.hyperledger.besu.ethereum.core.Account;
import org.hyperledger.besu.ethereum.core.BlockHeader; import org.hyperledger.besu.ethereum.core.BlockHeader;
import org.hyperledger.besu.ethereum.core.Hash; import org.hyperledger.besu.ethereum.core.Hash;
@ -95,6 +96,11 @@ public class GeneralStateReferenceTestTools {
// Don't do time consuming tests // Don't do time consuming tests
params.blacklist("CALLBlake2f_MaxRounds.*"); params.blacklist("CALLBlake2f_MaxRounds.*");
// Berlin isn't finalized
if (!ExperimentalEIPs.berlinEnabled) {
params.blacklist(".*[_-]Berlin");
}
} }
public static Collection<Object[]> generateTestParametersForConfig(final String[] filePath) { public static Collection<Object[]> generateTestParametersForConfig(final String[] filePath) {

@ -1 +1 @@
Subproject commit 6af0621522dd0274525457741291d391c10002be Subproject commit b8abaebf5949877ead03e8f74ac03c0ede41d5f7
Loading…
Cancel
Save