node/test/wasi
Richard Lau 5696bcf715
test: fix WASI link test
The WASI link test attempts to create a link in the temporary directory
to a file in the fixtures directory and can fail if those directories
are on different devices. Update the test so that both the source and
target of the link reside on the same device.

PR-URL: https://github.com/nodejs/node/pull/39485
Fixes: https://github.com/nodejs/node/issues/39484
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2021-09-04 15:14:36 +02:00
..
c test: add wasi readdir() test 2020-09-21 12:12:34 -04:00
wasm test: add wasi readdir() test 2020-09-21 12:12:34 -04:00
Makefile
README.md
test-return-on-exit.js test: fix wasi/test-return-on-exit on 32-bit systems 2021-05-01 12:25:18 +02:00
test-wasi-initialize-validation.js
test-wasi-not-started.js test: prepare for consistent comma-dangle lint rule 2021-09-04 12:24:57 +02:00
test-wasi-options-validation.js
test-wasi-require-flag.js
test-wasi-start-validation.js
test-wasi-stdio.js test: use .then(common.mustCall()) for all async IIFEs 2021-06-11 09:28:44 +02:00
test-wasi-symlinks.js test: fix WASI link test 2021-09-04 15:14:36 +02:00
test-wasi-worker-terminate.js test: prepare for consistent comma-dangle lint rule 2021-09-04 12:24:57 +02:00
test-wasi.js test: fix WASI link test 2021-09-04 15:14:36 +02:00
testcfg.py
wasi.status

WASI Tests

Compile with clang and wasm32-wasi target. The clang version used must be built with wasi-libc. You can specify the location for clang and the sysroot if needed when running make:

$ make CC=/usr/local/opt/llvm/bin/clang SYSROOT=/path/to/wasi-libc/sysroot