github.com/tetratelabs/wazero@v1.7.3-0.20240513003603-48f702e154b5/internal/integration_test/spectest/v1/spec_test.go (about)

     1  package v1
     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  func TestCompiler(t *testing.T) {
    14  	if !platform.CompilerSupported() {
    15  		t.Skip()
    16  	}
    17  	spectest.Run(t, Testcases, context.Background(), wazero.NewRuntimeConfigCompiler().WithCoreFeatures(api.CoreFeaturesV1))
    18  }
    19  
    20  func TestInterpreter(t *testing.T) {
    21  	spectest.Run(t, Testcases, context.Background(), wazero.NewRuntimeConfigInterpreter().WithCoreFeatures(api.CoreFeaturesV1))
    22  }