github.com/tetratelabs/wazero@v1.7.1/internal/integration_test/spectest/v2/spec_test.go (about)

     1  package v2
     2  
     3  import (
     4  	"context"
     5  	"testing"
     6  
     7  	"github.com/tetratelabs/wazero"
     8  	"github.com/tetratelabs/wazero/api"
     9  	"github.com/tetratelabs/wazero/internal/integration_test/spectest"
    10  	"github.com/tetratelabs/wazero/internal/platform"
    11  )
    12  
    13  const enabledFeatures = api.CoreFeaturesV2
    14  
    15  func TestCompiler(t *testing.T) {
    16  	if !platform.CompilerSupported() {
    17  		t.Skip()
    18  	}
    19  	spectest.Run(t, Testcases, context.Background(), wazero.NewRuntimeConfigCompiler().WithCoreFeatures(enabledFeatures))
    20  }
    21  
    22  func TestInterpreter(t *testing.T) {
    23  	spectest.Run(t, Testcases, context.Background(), wazero.NewRuntimeConfigInterpreter().WithCoreFeatures(enabledFeatures))
    24  }