github.com/neatio-net/neatio@v1.7.3-0.20231114194659-f4d7a2226baa/tests/vm_test.go (about)

     1  package tests
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/neatio-net/neatio/chain/core/vm"
     7  )
     8  
     9  func TestVM(t *testing.T) {
    10  	t.Parallel()
    11  	vmt := new(testMatcher)
    12  	vmt.fails("^vmSystemOperationsTest.json/createNameRegistrator$", "fails without parallel execution")
    13  
    14  	vmt.skipLoad(`^vmInputLimits(Light)?.json`)
    15  
    16  	vmt.skipShortMode("^vmPerformanceTest.json")
    17  	vmt.skipShortMode("^vmInputLimits(Light)?.json")
    18  
    19  	vmt.walk(t, vmTestDir, func(t *testing.T, name string, test *VMTest) {
    20  		withTrace(t, test.json.Exec.GasLimit, func(vmconfig vm.Config) error {
    21  			return vmt.checkFailure(t, name, test.Run(vmconfig))
    22  		})
    23  	})
    24  }