mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-26 05:27:19 +00:00
f151a52c0e
See https://github.com/ethereum/execution-apis/pull/354 & https://github.com/ethereum/EIPs/pull/6325. Prerequisite: https://github.com/ledgerwatch/erigon-lib/pull/832.
28 lines
677 B
Go
28 lines
677 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")
|
|
|
|
// TODO(yperbasis): re-fill and re-enable after Wei -> Gwei in geth
|
|
bt.skipLoad(`^withdrawals/withdrawals`)
|
|
|
|
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, false)); err != nil {
|
|
t.Error(err)
|
|
}
|
|
})
|
|
}
|