0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test/wasi
cjihrig 5707ed21a2 test: get lib/wasi.js coverage to 100%
This commit covers the last remaining uncovered code in
lib/wasi.js.

PR-URL: https://github.com/nodejs/node/pull/31039
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
2019-12-22 17:05:52 -08:00
..
c
wasm deps,src,test: update to uvwasi 0.0.3 2019-12-17 17:35:09 -08:00
Makefile
README.md
test-wasi-options-validation.js test: get lib/wasi.js coverage to 100% 2019-12-22 17:05:52 -08: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 doc,lib,src,test: rename WASI CLI flag 2019-12-17 17:35:12 -08:00
test-wasi.js doc,lib,src,test: rename WASI CLI flag 2019-12-17 17:35:12 -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