update uvwasi to version 0.0.8 (#132)

* update uvwasi to version 0.0.8

This release focuses on improving the robustness of the path
resolution and sandboxing, including support for relative
preopen paths.

Also remove the ${} around the uvwasi version, which was a
mistake. The result was that the latest master was always
installed.

* test: update wasi suite to test relative paths

This commit makes sure that both absolute and relative paths get
some test coverage.

* test: use uvwasi on alpine

Run the WASI tests on Alpine using uvwasi. This requires
installing git as well.
extensions
Colin Ihrig 4 years ago committed by GitHub
parent 4554f1f6c8
commit 207881a32c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -18,7 +18,7 @@ jobs:
- {target: gcc-debug, cc: gcc, flags: -DCMAKE_BUILD_TYPE=Debug } - {target: gcc-debug, cc: gcc, flags: -DCMAKE_BUILD_TYPE=Debug }
# TODO: fails on numeric operations # TODO: fails on numeric operations
#- {target: gcc-x86, cc: gcc, flags: "-m32", install: "gcc-multilib" } #- {target: gcc-x86, cc: gcc, flags: "-m32", install: "gcc-multilib" }
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install ${{ matrix.config.install }} - name: Install ${{ matrix.config.install }}
@ -48,12 +48,12 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Prepare - name: Prepare
run: apk add build-base cmake python3 --update-cache run: apk add build-base cmake python3 git --update-cache
- name: Configure - name: Configure
run: | run: |
mkdir build mkdir build
cd build cd build
cmake -DBUILD_WASI=simple .. # TODO switch to uvwasi cmake ..
- name: Build - name: Build
run: cmake --build build run: cmake --build build
- name: Test WebAssembly spec - name: Test WebAssembly spec
@ -275,7 +275,7 @@ jobs:
build-platformio-arm: build-platformio-arm:
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 10 timeout-minutes: 10
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Set up Python - name: Set up Python
@ -306,7 +306,7 @@ jobs:
build-platformio-riscv: build-platformio-riscv:
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 10 timeout-minutes: 10
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Set up Python - name: Set up Python
@ -444,7 +444,7 @@ jobs:
name: maintenance (preprocess ops) name: maintenance (preprocess ops)
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 10 timeout-minutes: 10
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install sponge - name: Install sponge

@ -166,7 +166,7 @@ elseif(BUILD_WASI MATCHES "uvwasi")
FetchContent_Declare( FetchContent_Declare(
uvwasi uvwasi
GIT_REPOSITORY https://github.com/cjihrig/uvwasi.git GIT_REPOSITORY https://github.com/cjihrig/uvwasi.git
GIT_TAG ${v0.0.7} GIT_TAG v0.0.8
) )
FetchContent_GetProperties(uvwasi) FetchContent_GetProperties(uvwasi)

@ -40,8 +40,8 @@ commands_full = [
}, { }, {
"name": "Simple WASI test (wasm-opt -O3)", "name": "Simple WASI test (wasm-opt -O3)",
"wasm": "./wasi/test-opt.wasm", "wasm": "./wasi/test-opt.wasm",
"args": ["cat", "/wasi/0.txt"], "args": ["cat", "./wasi/0.txt"],
"expect_pattern": "Hello world*Constructor OK*Args: *; cat; /wasi/0.txt;*fib(20) = 6765*[* ms]*48 65 6c 6c 6f 20 77 6f 72 6c 64*=== done ===*" "expect_pattern": "Hello world*Constructor OK*Args: *; cat; ./wasi/0.txt;*fib(20) = 6765*[* ms]*48 65 6c 6c 6f 20 77 6f 72 6c 64*=== done ===*"
}, { }, {
"skip": True, # Direct native calls were removed from wasm3 "skip": True, # Direct native calls were removed from wasm3
"name": "Raw/Native funcs benchmark", "name": "Raw/Native funcs benchmark",

Loading…
Cancel
Save