mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-25 04:57:17 +00:00
759fb00593
* Clean up test runners. Don't run legacy tests * Cherry pick https://github.com/ethereum/go-ethereum/pull/22927 * Tests update 10.1: Transaction Tests * Port decodeBigInt changes to decodeUint256 * Introduce (*Stream) Uint256Bytes * Temporarily disable stTransactionTest/HighGasPrice * linter * ttWrongRLP transaction tests pass now * Fix stTransactionTest/HighGasPrice Co-authored-by: Felix Lange <fjl@twurst.com>
45 lines
1.7 KiB
Go
45 lines
1.7 KiB
Go
// Copyright 2015 The go-ethereum Authors
|
|
// This file is part of the go-ethereum library.
|
|
//
|
|
// The go-ethereum library is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU Lesser General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
//
|
|
// The go-ethereum library is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU Lesser General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU Lesser General Public License
|
|
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
package tests
|
|
|
|
import (
|
|
"runtime"
|
|
"testing"
|
|
|
|
"github.com/ledgerwatch/log/v3"
|
|
)
|
|
|
|
func TestBlockchain(t *testing.T) {
|
|
defer log.Root().SetHandler(log.Root().GetHandler())
|
|
log.Root().SetHandler(log.LvlFilterHandler(log.LvlError, log.StderrHandler))
|
|
if runtime.GOOS == "windows" {
|
|
t.Skip("fix me on win please") // after remove ChainReader from consensus engine - this test can be changed to create less databases, then can enable on win. now timeout after 20min
|
|
}
|
|
|
|
bt := new(testMatcher)
|
|
// General state tests are 'exported' as blockchain tests, but we can run them natively.
|
|
// For speedier CI-runs those are skipped.
|
|
bt.skipLoad(`^GeneralStateTests/`)
|
|
|
|
bt.walk(t, blockTestDir, 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)
|
|
}
|
|
})
|
|
}
|