erigon-pulse/tests/exec_spec_test.go
2023-01-31 12:52:04 +01:00

25 lines
566 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")
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)
}
})
}