-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add spectests for Wasm threads proposal
Signed-off-by: Anuraag Agrawal <[email protected]>
- Loading branch information
Showing
57 changed files
with
986 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
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) { | ||
t.Skip() // TODO: Delete after implementing interpreter support | ||
spectest.Run(t, testcases, context.Background(), wazero.NewRuntimeConfigInterpreter().WithCoreFeatures(enabledFeatures)) | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
329 changes: 329 additions & 0 deletions
329
internal/integration_test/spectest/threads/testdata/atomic.json
Large diffs are not rendered by default.
Oops, something went wrong.
610 changes: 610 additions & 0 deletions
610
internal/integration_test/spectest/threads/testdata/atomic.wast
Large diffs are not rendered by default.
Oops, something went wrong.