Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
06992874
Commit
06992874
authored
Nov 26, 2018
by
Paweł Bylica
Committed by
Guillaume Ballet
Nov 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: Add flag to use EVMC for state tests (#18084)
parent
197d609b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
state_test.go
tests/state_test.go
+12
-1
No files found.
tests/state_test.go
View file @
06992874
...
...
@@ -18,10 +18,12 @@ package tests
import
(
"bytes"
"flag"
"fmt"
"reflect"
"testing"
"github.com/ethereum/go-ethereum/cmd/utils"
"github.com/ethereum/go-ethereum/core/vm"
)
...
...
@@ -65,8 +67,17 @@ func TestState(t *testing.T) {
// Transactions with gasLimit above this value will not get a VM trace on failure.
const
traceErrorLimit
=
400000
// The VM config for state tests that accepts --vm.* command line arguments.
var
testVMConfig
=
func
()
vm
.
Config
{
vmconfig
:=
vm
.
Config
{}
flag
.
StringVar
(
&
vmconfig
.
EVMInterpreter
,
utils
.
EVMInterpreterFlag
.
Name
,
utils
.
EVMInterpreterFlag
.
Value
,
utils
.
EVMInterpreterFlag
.
Usage
)
flag
.
StringVar
(
&
vmconfig
.
EWASMInterpreter
,
utils
.
EWASMInterpreterFlag
.
Name
,
utils
.
EWASMInterpreterFlag
.
Value
,
utils
.
EWASMInterpreterFlag
.
Usage
)
flag
.
Parse
()
return
vmconfig
}()
func
withTrace
(
t
*
testing
.
T
,
gasLimit
uint64
,
test
func
(
vm
.
Config
)
error
)
{
err
:=
test
(
vm
.
Config
{}
)
err
:=
test
(
testVMConfig
)
if
err
==
nil
{
return
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment