mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 03:30:37 +00:00
106e880442
[v1.0.6](https://github.com/ethereum/execution-spec-tests/releases/tag/v1.0.6) Cancun Devnet 10
34 lines
745 B
Go
34 lines
745 B
Go
//go:build integration
|
|
|
|
package tests
|
|
|
|
import (
|
|
"path/filepath"
|
|
"testing"
|
|
|
|
"github.com/ledgerwatch/erigon/eth/ethconfig"
|
|
"github.com/ledgerwatch/log/v3"
|
|
)
|
|
|
|
func TestExecutionSpec(t *testing.T) {
|
|
if ethconfig.EnableHistoryV3InTest {
|
|
t.Skip("fix me in e3 please")
|
|
}
|
|
|
|
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")
|
|
|
|
checkStateRoot := true
|
|
|
|
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)
|
|
}
|
|
})
|
|
}
|