node/test/wasi
cjihrig 96058f33a9 test: add wasi test for freopen()
This test provides missing coverage for __wasi_fd_renumber().

PR-URL: https://github.com/nodejs/node/pull/31432
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
2020-01-23 05:22:36 -08:00
..
c test: add wasi test for freopen() 2020-01-23 05:22:36 -08:00
wasm test: add wasi test for freopen() 2020-01-23 05:22:36 -08:00
Makefile
README.md
test-wasi-options-validation.js wasi: throw on failed uvwasi_init() 2019-12-25 22:27:11 -05:00
test-wasi-require-flag.js wasi: require CLI flag to require() wasi module 2019-12-17 06:02:04 +01:00
test-wasi-start-validation.js doc,lib,src,test: rename WASI CLI flag 2019-12-17 17:35:12 -08:00
test-wasi-symlinks.js test: add wasi test for symlink() and readlink() 2020-01-20 11:02:47 -05:00
test-wasi.js test: add wasi test for freopen() 2020-01-23 05:22:36 -08: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