node/test/wasi
Antoine du Hamel 31cd05c39f
test: ensure never settling promises are detected
PR-URL: https://github.com/nodejs/node/pull/50318
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2023-11-11 20:37:42 +01:00
..
c wasi: fix up wasi tests for ibmi 2023-10-04 16:35:39 +00:00
wasm wasi: fix up wasi tests for ibmi 2023-10-04 16:35:39 +00:00
Makefile
README.md wasi: fix up wasi tests for ibmi 2023-10-04 16:35:39 +00:00
test-return-on-exit.js
test-wasi-initialize-validation.js
test-wasi-not-started.js test: ensure never settling promises are detected 2023-11-11 20:37:42 +01:00
test-wasi-options-validation.js
test-wasi-start-validation.js
test-wasi-stdio.js
test-wasi-symlinks.js
test-wasi-worker-terminate.js
test-wasi.js
testcfg.py
wasi.status

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.