Skip to content

Commit

Permalink
tests: use latest wasmtime for testing (#327)
Browse files Browse the repository at this point in the history
This patch enables using latest version of wasmtime for testing. This
should also make it possible to running tests for wasm32-wasi-threads
in the future.
  • Loading branch information
TerrorJack authored May 8, 2023
1 parent c891cd2 commit 6dde7bb
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
0-cache-macos-latest
if: matrix.os == 'macos-latest'
- name: Install wasmtime for tests
run: curl -f -L --retry 5 https://wasmtime.dev/install.sh | bash -s -- --version v2.0.2
run: curl -f -L --retry 5 https://wasmtime.dev/install.sh | bash -s -- --version v8.0.1
- uses: actions/checkout@v3
with:
fetch-depth: 0
Expand Down
4 changes: 2 additions & 2 deletions tests/general/abort.c.stderr.expected
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ Error: failed to run main module `abort.c.---.wasm`

Caused by:
0: failed to invoke command default
1: wasm trap: wasm `unreachable` instruction executed
wasm backtrace:
1: error while executing at wasm backtrace:
2: wasm trap: wasm `unreachable` instruction executed
5 changes: 2 additions & 3 deletions tests/general/abort.c.stderr.expected.filter
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/bash
#!/usr/bin/env bash
set -euo pipefail

cat \
| sed -e 's/main module `abort\.c\.[^`]*\.wasm`/main module `abort.c.---.wasm`/' \
| sed -e 's/source location: @[[:xdigit:]]*$/source location: @----/' \
| head -n 6
| sed -E '/0x[[:xdigit:]]+/d'
4 changes: 2 additions & 2 deletions tests/general/assert-fail.c.stderr.expected
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ Error: failed to run main module `assert-fail.c.---.wasm`

Caused by:
0: failed to invoke command default
1: wasm trap: wasm `unreachable` instruction executed
wasm backtrace:
1: error while executing at wasm backtrace:
2: wasm trap: wasm `unreachable` instruction executed
5 changes: 2 additions & 3 deletions tests/general/assert-fail.c.stderr.expected.filter
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/bash
#!/usr/bin/env bash
set -euo pipefail

cat \
| sed -e 's/main module `assert-fail\.c\.[^`]*\.wasm`/main module `assert-fail.c.---.wasm`/' \
| sed -e 's/source location: @[[:xdigit:]]*$/source location: @----/' \
| head -n 7
| sed -E '/0x[[:xdigit:]]+/d'

0 comments on commit 6dde7bb

Please sign in to comment.