node/test/wasi
Michael Dawson 9cb8eb7177
wasi: fix up wasi tests for ibmi
ibmi now reports os400 instead of aix

- update platform check in poll to allow for os400
- update wasi-sdk level to 20
  - document the level of wasi-sdk used to compile the tests
  - remove platform check in readdir test as it does not seem to be
    needed with wasi-sdk version 20
  - comment out tests for some clocks which are no longer available when
    compiling with wasi-sdk level 20. These may be added back after
    https://github.com/WebAssembly/wasi-libc/issues/266 is resolved.

Signed-off-by: Michael Dawson <midawson@redhat.com>
PR-URL: https://github.com/nodejs/node/pull/49953
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2023-10-04 16:35:39 +00: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 wasi: fast calls 2022-12-08 04:22:37 +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-initialize-validation.js wasi: make version non-optional 2023-04-06 17:46:58 -04:00
test-wasi-not-started.js wasi: make version non-optional 2023-04-06 17:46:58 -04:00
test-wasi-options-validation.js wasi: make version non-optional 2023-04-06 17:46:58 -04:00
test-wasi-start-validation.js wasi: make version non-optional 2023-04-06 17:46:58 -04:00
test-wasi-stdio.js test: use tmpdir.resolve() 2023-08-21 16:41:53 +00:00
test-wasi-symlinks.js test: use tmpdir.resolve() 2023-08-21 16:41:53 +00:00
test-wasi-worker-terminate.js wasi: make version non-optional 2023-04-06 17:46:58 -04:00
test-wasi.js wasi: make returnOnExit true by default 2023-04-11 16:35:52 -04:00
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.