0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test/wasi
cjihrig 748eae93c6
test: add tests for main() argument handling
This test provides missing coverage for __wasi_args_get() and
__wasi_args_sizes_get(), which translate to argc and argv in
WASI applications.

PR-URL: https://github.com/nodejs/node/pull/31426
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2020-01-24 09:41:46 -05:00
..
c test: add tests for main() argument handling 2020-01-24 09:41:46 -05:00
wasm test: add tests for main() argument handling 2020-01-24 09:41:46 -05: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 tests for main() argument handling 2020-01-24 09:41:46 -05: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