Files
wazero/internal/integration_test/spectest/threads/spec_test.go
2024-01-15 08:20:40 -08:00

31 lines
873 B
Go

package spectest
import (
"context"
"embed"
"testing"
"github.com/tetratelabs/wazero"
"github.com/tetratelabs/wazero/api"
"github.com/tetratelabs/wazero/internal/integration_test/spectest"
"github.com/tetratelabs/wazero/internal/platform"
)
//go:embed testdata/*.wasm
//go:embed testdata/*.json
var testcases embed.FS
const enabledFeatures = api.CoreFeaturesV2 // TODO: Enable threads feature after implementing interpreter support
func TestCompiler(t *testing.T) {
t.Skip() // TODO: Delete after implementing compiler support
if !platform.CompilerSupported() {
t.Skip()
}
spectest.Run(t, testcases, context.Background(), wazero.NewRuntimeConfigCompiler().WithCoreFeatures(enabledFeatures))
}
func TestInterpreter(t *testing.T) {
spectest.Run(t, testcases, context.Background(), wazero.NewRuntimeConfigInterpreter().WithCoreFeatures(enabledFeatures))
}