From 75aefbaf6f9f9d6efe0fbd75942878ca3a06d2df Mon Sep 17 00:00:00 2001 From: Volodymyr Shymanskyy Date: Thu, 23 Apr 2020 01:50:35 +0300 Subject: [PATCH] Fix tests --- .github/workflows/tests.yml | 2 +- test/run-wasi-test.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1575b59..fa8d014 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -131,7 +131,7 @@ jobs: source $HOME/.wasienv/wasienv.sh mkdir build-wasi cd build-wasi - wasimake cmake .. + wasimake cmake -DBUILD_WASI=metawasi .. - name: Build run: | source $HOME/.wasienv/wasienv.sh diff --git a/test/run-wasi-test.py b/test/run-wasi-test.py index b65453b..fb51d2b 100755 --- a/test/run-wasi-test.py +++ b/test/run-wasi-test.py @@ -35,13 +35,13 @@ commands_full = [ { "name": "Simple WASI test", "wasm": "./wasi/test.wasm", - "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 ===*" + "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 ===*" }, { "name": "Simple WASI test (wasm-opt -O3)", "wasm": "./wasi/test-opt.wasm", - "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 ===*" + "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 ===*" }, { "skip": True, # Direct native calls were removed from wasm3 "name": "Raw/Native funcs benchmark",