|
|
@ -12,6 +12,7 @@ import ( |
|
|
|
"github.com/ethereum/go-ethereum/core/vm" |
|
|
|
"github.com/ethereum/go-ethereum/core/vm" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
"github.com/ethereum/go-ethereum/ethdb" |
|
|
|
"github.com/ethereum/go-ethereum/ethdb" |
|
|
|
|
|
|
|
"github.com/ethereum/go-ethereum/logger/glog" |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
func RunStateTest(p string) error { |
|
|
|
func RunStateTest(p string) error { |
|
|
@ -25,7 +26,7 @@ func RunStateTest(p string) error { |
|
|
|
|
|
|
|
|
|
|
|
for name, test := range tests { |
|
|
|
for name, test := range tests { |
|
|
|
if skipTest[name] { |
|
|
|
if skipTest[name] { |
|
|
|
fmt.Println("Skipping state test", name) |
|
|
|
glog.Infoln("Skipping state test", name) |
|
|
|
return nil |
|
|
|
return nil |
|
|
|
} |
|
|
|
} |
|
|
|
db, _ := ethdb.NewMemDatabase() |
|
|
|
db, _ := ethdb.NewMemDatabase() |
|
|
@ -105,7 +106,7 @@ func RunStateTest(p string) error { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
fmt.Println("State test passed: ", name) |
|
|
|
glog.Infoln("State test passed: ", name) |
|
|
|
//fmt.Println(string(statedb.Dump()))
|
|
|
|
//fmt.Println(string(statedb.Dump()))
|
|
|
|
} |
|
|
|
} |
|
|
|
return nil |
|
|
|
return nil |
|
|
|