Run tests under wasmtime as part of the CI (#278)

pull/279/head
Cheng Shao 2 years ago committed by GitHub
parent 388a7cacbf
commit b77017ac55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -38,6 +38,8 @@ jobs:
restore-keys: |
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
- uses: actions/checkout@v1
with:
submodules: true
@ -51,7 +53,7 @@ jobs:
run: NINJA_FLAGS=-v make package LLVM_CMAKE_FLAGS=-DLLVM_CCACHE_BUILD=ON
shell: bash
- name: Run the testsuite
run: NINJA_FLAGS=-v make check
run: NINJA_FLAGS=-v make check RUNTIME=~/.wasmtime/bin/wasmtime
- name: Upload artifacts
uses: actions/upload-artifact@v1
with:

@ -47,7 +47,7 @@ default: build
check:
CC="clang --sysroot=$(BUILD_PREFIX)/share/wasi-sysroot" \
CXX="clang++ --sysroot=$(BUILD_PREFIX)/share/wasi-sysroot -fno-exceptions" \
PATH="$(PATH_PREFIX)/bin:$$PATH" tests/run.sh
PATH="$(PATH_PREFIX)/bin:$$PATH" tests/run.sh $(RUNTIME)
clean:
rm -rf build $(DESTDIR)

@ -1,6 +1,6 @@
Error: failed to run main module `abort.c.---.wasm`
Caused by:
0: failed to invoke `_start`
1: wasm trap: unreachable, source location: @----
0: failed to invoke command default
1: wasm trap: wasm `unreachable` instruction executed
wasm backtrace:

@ -2,6 +2,6 @@ Assertion failed: false (assert-fail.c: main: 5)
Error: failed to run main module `assert-fail.c.---.wasm`
Caused by:
0: failed to invoke `_start`
1: wasm trap: unreachable, source location: @----
0: failed to invoke command default
1: wasm trap: wasm `unreachable` instruction executed
wasm backtrace:

@ -1,8 +1,6 @@
raising SIGABRT...
Program recieved fatal signal: Aborted
Program received fatal signal: Aborted
Error: failed to run main module `sigabrt.c.---.wasm`
Caused by:
0: failed to invoke `_start`
1: wasm trap: unreachable, source location: @----
wasm backtrace:
0: failed to invoke command default

Loading…
Cancel
Save