Fix reference test tooling

Two changes:
(a) ensure PragueEOF is used for ref tests for EOF
(b) exclude an out of date test that expects TXCREATE to exist.

Signed-off-by: Danno Ferrin <danno@numisight.com>
mega-eof
Danno Ferrin 6 months ago
parent af8a6291fb
commit 97b9d4e972
  1. 5
      ethereum/referencetests/src/reference-test/java/org/hyperledger/besu/ethereum/eof/EOFReferenceTestTools.java
  2. 4
      evm/src/main/java/org/hyperledger/besu/evm/EvmSpecVersion.java

@ -70,9 +70,8 @@ public class EOFReferenceTestTools {
params.ignoreAll();
}
// Add exclusions heere
// params.ignore("EOFTests/efExample/broken.json");
// params.ignore("EOFTests/efBroken");
// TXCREATE still in tests, but has been removed
params.ignore("EOF1_undefined_opcodes_186");
}
private EOFReferenceTestTools() {

@ -154,6 +154,10 @@ public enum EvmSpecVersion {
* @return the EVM spec version for that fork, or null if no fork matched.
*/
public static EvmSpecVersion fromName(final String name) {
// TODO remove once PragueEOF settles
if ("prague".equalsIgnoreCase(name)) {
return EvmSpecVersion.PRAGUE_EOF;
}
for (var version : EvmSpecVersion.values()) {
if (version.name().equalsIgnoreCase(name)) {
return version;

Loading…
Cancel
Save