node/test/wasi
Antoine du Hamel ec26b1c01a
tools: add lint rule to ensure assertions are reached
PR-URL: https://github.com/nodejs/node/pull/60125
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
2025-10-07 12:40:05 +00:00
..
c lib: expose setupInstance method on WASI class 2025-07-07 08:41:16 -07:00
wasm lib: expose setupInstance method on WASI class 2025-07-07 08:41:16 -07:00
Makefile wasi: fix clean target in test/wasi/Makefile 2025-08-30 19:06:03 +00:00
README.md wasi: fix up wasi tests for ibmi 2023-10-04 16:35:39 +00:00
test-return-on-exit.js wasi: make version non-optional 2023-04-06 17:46:58 -04:00
test-wasi-cant_dotdot.js test: split test-wasi.js 2025-08-18 12:17:56 +00:00
test-wasi-clock_getres.js test: split test-wasi.js 2025-08-18 12:17:56 +00:00
test-wasi-exitcode.js test: split wasi tests 2024-02-24 17:55:27 +00:00
test-wasi-fd_prestat_get_refresh.js test: split test-wasi.js 2025-08-18 12:17:56 +00:00
test-wasi-ftruncate.js test: split test-wasi.js 2025-08-18 12:17:56 +00:00
test-wasi-getentropy.js test: split test-wasi.js 2025-08-18 12:17:56 +00:00
test-wasi-getrusage.js test: split test-wasi.js 2025-08-18 12:17:56 +00:00
test-wasi-gettimeofday.js test: split test-wasi.js 2025-08-18 12:17:56 +00:00
test-wasi-initialize-validation.js wasi: make version non-optional 2023-04-06 17:46:58 -04:00
test-wasi-io.js test: simplify common/index.js 2025-01-25 07:23:09 +00:00
test-wasi-main_args.js test: split test-wasi.js 2025-08-18 12:17:56 +00:00
test-wasi-not-started.js test: ensure never settling promises are detected 2023-10-23 17:55:50 +00:00
test-wasi-notdir.js test: split test-wasi.js 2025-08-18 12:17:56 +00:00
test-wasi-options-validation.js wasi: make version non-optional 2023-04-06 17:46:58 -04:00
test-wasi-poll.js test: split wasi poll test for windows 2024-04-17 13:01:15 +00:00
test-wasi-preopen_populates.js test: split test-wasi.js 2025-08-18 12:17:56 +00:00
test-wasi-pthread.js test: split test-wasi.js 2025-08-18 12:17:56 +00:00
test-wasi-readdir.js test: split test-wasi.js 2025-08-18 12:17:56 +00:00
test-wasi-sock.js test: split test-wasi.js 2025-08-18 12:17:56 +00:00
test-wasi-start-validation.js wasi: make version non-optional 2023-04-06 17:46:58 -04:00
test-wasi-stat.js test: split test-wasi.js 2025-08-18 12:17:56 +00:00
test-wasi-stdio.js tools: add lint rule to ensure assertions are reached 2025-10-07 12:40:05 +00:00
test-wasi-symlinks.js deps: update uvwasi to 0.0.20 and fixup tests 2024-01-08 16:48:28 -05:00
test-wasi-worker-terminate.js tools: add lint rule to ensure assertions are reached 2025-10-07 12:40:05 +00:00
test-wasi-write_file.js test: split test-wasi.js 2025-08-18 12:17:56 +00:00
testcfg.py
wasi.status test: mark test-wasi-pthread as flaky 2025-08-18 12:17:56 +00:00

WASI Tests

Compile with clang and wasm32-wasi target by using the wasi-sdk version 20

Install wasi-sdk and then set WASI_SDK_PATH to the root of the install.

You can then rebuild the wasm for the tests by running:

make CC=${WASI_SDK_PATH}/bin/clang SYSROOT=${WASI_SDK_PATH}/share/wasi-sysroot

If you update the version of the wasi-sdk to be used for the compile remove all of the *.wasm files in the wasm directory to ensure you rebuild/test all of the tests with the new version.