tests: use latest wasmtime for testing (#327)

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.
pull/309/head
Cheng Shao 2 years ago committed by GitHub
parent c891cd2036
commit 6dde7bb8d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -39,7 +39,7 @@ jobs:
0-cache-macos-latest 0-cache-macos-latest
if: matrix.os == 'macos-latest' if: matrix.os == 'macos-latest'
- name: Install wasmtime for tests - 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 - uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0

@ -2,5 +2,5 @@ Error: failed to run main module `abort.c.---.wasm`
Caused by: Caused by:
0: failed to invoke command default 0: failed to invoke command default
1: wasm trap: wasm `unreachable` instruction executed 1: error while executing at wasm backtrace:
wasm backtrace: 2: wasm trap: wasm `unreachable` instruction executed

@ -1,7 +1,6 @@
#!/bin/bash #!/usr/bin/env bash
set -euo pipefail set -euo pipefail
cat \ cat \
| sed -e 's/main module `abort\.c\.[^`]*\.wasm`/main module `abort.c.---.wasm`/' \ | sed -e 's/main module `abort\.c\.[^`]*\.wasm`/main module `abort.c.---.wasm`/' \
| sed -e 's/source location: @[[:xdigit:]]*$/source location: @----/' \ | sed -E '/0x[[:xdigit:]]+/d'
| head -n 6

@ -3,5 +3,5 @@ Error: failed to run main module `assert-fail.c.---.wasm`
Caused by: Caused by:
0: failed to invoke command default 0: failed to invoke command default
1: wasm trap: wasm `unreachable` instruction executed 1: error while executing at wasm backtrace:
wasm backtrace: 2: wasm trap: wasm `unreachable` instruction executed

@ -1,7 +1,6 @@
#!/bin/bash #!/usr/bin/env bash
set -euo pipefail set -euo pipefail
cat \ cat \
| sed -e 's/main module `assert-fail\.c\.[^`]*\.wasm`/main module `assert-fail.c.---.wasm`/' \ | sed -e 's/main module `assert-fail\.c\.[^`]*\.wasm`/main module `assert-fail.c.---.wasm`/' \
| sed -e 's/source location: @[[:xdigit:]]*$/source location: @----/' \ | sed -E '/0x[[:xdigit:]]+/d'
| head -n 7

Loading…
Cancel
Save