wa-lang.org/wazero@v1.0.2/internal/integration_test/spectest/v1/spec_test.go (about) 1 package v1 2 3 import ( 4 "context" 5 "testing" 6 7 "wa-lang.org/wazero/internal/engine/compiler" 8 "wa-lang.org/wazero/internal/engine/interpreter" 9 "wa-lang.org/wazero/internal/integration_test/spectest" 10 "wa-lang.org/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(), compiler.NewEngine, EnabledFeatures) 18 } 19 20 func TestInterpreter(t *testing.T) { 21 spectest.Run(t, Testcases, context.Background(), interpreter.NewEngine, EnabledFeatures) 22 }