...
1 package v1
2
3 import (
4 "context"
5 "runtime"
6 "testing"
7
8 "github.com/tetratelabs/wazero"
9 "github.com/tetratelabs/wazero/api"
10 "github.com/tetratelabs/wazero/experimental/opt"
11 "github.com/tetratelabs/wazero/internal/integration_test/spectest"
12 "github.com/tetratelabs/wazero/internal/platform"
13 )
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(api.CoreFeaturesV1))
20 }
21
22 func TestInterpreter(t *testing.T) {
23 spectest.Run(t, Testcases, context.Background(), wazero.NewRuntimeConfigInterpreter().WithCoreFeatures(api.CoreFeaturesV1))
24 }
25
26 func TestWazevo(t *testing.T) {
27 if runtime.GOARCH != "arm64" {
28 t.Skip()
29 }
30 c := opt.NewRuntimeConfigOptimizingCompiler().WithCoreFeatures(api.CoreFeaturesV1)
31 spectest.Run(t, Testcases, context.Background(), c)
32 }
33
View as plain text