|
|
@ -11,6 +11,7 @@ import ( |
|
|
|
"github.com/ethereum/go-ethereum/logger" |
|
|
|
"github.com/ethereum/go-ethereum/logger" |
|
|
|
"github.com/ethereum/go-ethereum/state" |
|
|
|
"github.com/ethereum/go-ethereum/state" |
|
|
|
"github.com/ethereum/go-ethereum/tests/helper" |
|
|
|
"github.com/ethereum/go-ethereum/tests/helper" |
|
|
|
|
|
|
|
"github.com/ethereum/go-ethereum/vm" |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
type Account struct { |
|
|
|
type Account struct { |
|
|
@ -80,13 +81,11 @@ func RunVmTest(p string, t *testing.T) { |
|
|
|
helper.CreateFileTests(t, p, &tests) |
|
|
|
helper.CreateFileTests(t, p, &tests) |
|
|
|
|
|
|
|
|
|
|
|
for name, test := range tests { |
|
|
|
for name, test := range tests { |
|
|
|
/* |
|
|
|
vm.Debug = true |
|
|
|
vm.Debug = true |
|
|
|
helper.Logger.SetLogLevel(4) |
|
|
|
helper.Logger.SetLogLevel(4) |
|
|
|
if name != "addmod0" { |
|
|
|
if name != "refund_CallToSuicideTwice" { |
|
|
|
continue |
|
|
|
continue |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
db, _ := ethdb.NewMemDatabase() |
|
|
|
db, _ := ethdb.NewMemDatabase() |
|
|
|
statedb := state.New(nil, db) |
|
|
|
statedb := state.New(nil, db) |
|
|
|
for addr, account := range test.Pre { |
|
|
|
for addr, account := range test.Pre { |
|
|
|