github.com/linapex/ethereum-go-chinese@v0.0.0-20190316121929-f8b7a73c3fa1/tests/vm_test.go (about) 1 2 //<developer> 3 // <name>linapex 曹一峰</name> 4 // <email>linapex@163.com</email> 5 // <wx>superexc</wx> 6 // <qqgroup>128148617</qqgroup> 7 // <url>https://jsq.ink</url> 8 // <role>pku engineer</role> 9 // <date>2019-03-16 19:16:45</date> 10 //</624450122641575936> 11 12 13 package tests 14 15 import ( 16 "testing" 17 18 "github.com/ethereum/go-ethereum/core/vm" 19 ) 20 21 func TestVM(t *testing.T) { 22 t.Parallel() 23 vmt := new(testMatcher) 24 vmt.slow("^vmPerformance") 25 vmt.fails("^vmSystemOperationsTest.json/createNameRegistrator$", "fails without parallel execution") 26 27 vmt.walk(t, vmTestDir, func(t *testing.T, name string, test *VMTest) { 28 withTrace(t, test.json.Exec.GasLimit, func(vmconfig vm.Config) error { 29 return vmt.checkFailure(t, name, test.Run(vmconfig)) 30 }) 31 }) 32 } 33