erigon-pulse/tests/exec_spec_test.go
Andrew Ashikhmin ae76df1b8a
Update execution-spec-tests to v1.0.1 (#7980)
[v1.0.1](https://github.com/ethereum/execution-spec-tests/releases/tag/v1.0.1)
"Cancun Devnet-8 Pre-Release" adds some tests for Cancun. This PR only
fixes a couple of issues; the majority of the new tests are still
failing and thus are skipped in `TestExecutionSpec`.
2023-08-08 15:01:35 +02:00

36 lines
868 B
Go

package tests
import (
"path/filepath"
"testing"
"github.com/ledgerwatch/log/v3"
)
func TestExecutionSpec(t *testing.T) {
defer log.Root().SetHandler(log.Root().GetHandler())
log.Root().SetHandler(log.LvlFilterHandler(log.LvlError, log.StderrHandler))
bt := new(testMatcher)
dir := filepath.Join(".", "execution-spec-tests")
// Probably failing due to pre-Byzantium receipts
bt.skipLoad(`^frontier/`)
bt.skipLoad(`^homestead/`)
// TODO(yperbasis): fix me
bt.skipLoad(`^cancun/eip4844_blobs/`)
bt.skipLoad(`^cancun/eip6780_selfdestruct/`)
// TODO(yperbasis): re-enable checkStateRoot
checkStateRoot := false
bt.walk(t, dir, func(t *testing.T, name string, test *BlockTest) {
// import pre accounts & construct test genesis block & state root
if err := bt.checkFailure(t, test.Run(t, checkStateRoot)); err != nil {
t.Error(err)
}
})
}