node/test/wasi
cjihrig c3e1bf78c4
test: add wasi readdir() test
This commit provides coverage for __wasi_fd_readdir().

PR-URL: https://github.com/nodejs/node/pull/35202
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
2020-11-16 11:57:54 -05:00
..
c test: add wasi readdir() test 2020-11-16 11:57:54 -05:00
wasm test: add wasi readdir() test 2020-11-16 11:57:54 -05:00
Makefile
README.md
test-return-on-exit.js test: verify that WASI errors are rethrown 2020-04-28 16:14:47 +02:00
test-wasi-initialize-validation.js wasi: add reactor support 2020-09-22 01:10:19 +02:00
test-wasi-not-started.js wasi: prevent syscalls before start 2020-06-06 21:59:02 -07:00
test-wasi-options-validation.js wasi: allow WASI stdio to be configured 2020-07-08 14:20:52 -07:00
test-wasi-require-flag.js wasi: require CLI flag to require() wasi module 2020-02-06 02:49:30 +00:00
test-wasi-start-validation.js wasi: add reactor support 2020-09-22 01:10:19 +02:00
test-wasi-stdio.js wasi: allow WASI stdio to be configured 2020-07-08 14:20:52 -07:00
test-wasi-symlinks.js test: add wasi test for symlink() and readlink() 2020-03-16 19:41:57 -07:00
test-wasi-worker-terminate.js wasi,worker: handle termination exception 2020-07-08 12:46:48 -07:00
test-wasi.js test: add wasi readdir() test 2020-11-16 11:57:54 -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