Skip to content

Commit a6489a8

Browse files
authored
test: use the same version of wasmtime and adapter (#468)
To avoid errors like: ``` Caused by: 0: import `wasi:cli/environment@0.2.0-rc-2023-12-05` has the wrong type 1: instance export `get-arguments` has the wrong type 2: expected func found nothing make: *** [Makefile:185: /home/runner/work/wasi-libc/wasi-libc/test/build/functional/argv.wasm.err] Error 1 Error: Process completed with exit code 2. ``` Also, bump them to 17.
1 parent cc62fa8 commit a6489a8

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

test/Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,11 @@ LIBC_TEST_URL ?= https://github.com/bytecodealliance/libc-test
2424
LIBC_TEST = $(DOWNDIR)/libc-test
2525
LIBRT_URL ?= https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-16/libclang_rt.builtins-wasm32-wasi-16.0.tar.gz
2626
LIBRT = $(DOWNDIR)/lib/wasi/libclang_rt.builtins-wasm32.a
27-
# TODO: Switch to Wasmtime 17 once it's released, which will include https://github.com/bytecodealliance/wasmtime/pull/7750
28-
WASMTIME_URL ?= https://github.com/bytecodealliance/wasmtime/releases/download/dev/wasmtime-dev-x86_64-linux.tar.xz
27+
WASMTIME_URL ?= https://github.com/bytecodealliance/wasmtime/releases/download/v17.0.0/wasmtime-v17.0.0-x86_64-linux.tar.xz
2928
WASMTIME = $(DOWNDIR)/$(shell basename $(WASMTIME_URL) .tar.xz)/wasmtime
3029
WASM_TOOLS_URL ?= https://github.com/bytecodealliance/wasm-tools/releases/download/wasm-tools-1.0.54/wasm-tools-1.0.54-x86_64-linux.tar.gz
3130
WASM_TOOLS = $(DOWNDIR)/$(shell basename $(WASM_TOOLS_URL) .tar.gz)/wasm-tools
32-
ADAPTER_URL ?= https://github.com/bytecodealliance/wasmtime/releases/download/v16.0.0/wasi_snapshot_preview1.command.wasm
31+
ADAPTER_URL ?= https://github.com/bytecodealliance/wasmtime/releases/download/v17.0.0/wasi_snapshot_preview1.command.wasm
3332
ADAPTER = $(DOWNDIR)/wasi_snapshot_preview1.command.wasm
3433

3534
TO_DOWNLOAD = $(LIBC_TEST) $(LIBRT) $(WASMTIME)

0 commit comments

Comments
 (0)