node/test/wasi
cjihrig 2abbaddca9
test: add WASI test for file resizing
This commit adds a WASI test to cover the following functions:

- __wasi_fd_filestat_set_size()
- __wasi_fd_tell()

PR-URL: https://github.com/nodejs/node/pull/31617
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
2020-07-13 11:51:18 -04:00
..
c test: add WASI test for file resizing 2020-07-13 11:51:18 -04:00
wasm test: add WASI test for file resizing 2020-07-13 11:51:18 -04:00
Makefile
README.md
test-return-on-exit.js test: verify that WASI errors are rethrown 2020-03-13 18:18:15 -04:00
test-wasi-initialize-validation.js wasi: add reactor support 2020-06-29 09:52:09 -05:00
test-wasi-not-started.js wasi: prevent syscalls before start 2020-05-08 01:02:19 +02:00
test-wasi-options-validation.js wasi: allow WASI stdio to be configured 2020-05-30 04:28:02 +02:00
test-wasi-require-flag.js
test-wasi-start-validation.js wasi: add reactor support 2020-06-29 09:52:09 -05:00
test-wasi-stdio.js wasi: allow WASI stdio to be configured 2020-05-30 04:28:02 +02:00
test-wasi-symlinks.js
test-wasi-worker-terminate.js wasi,worker: handle termination exception 2020-05-23 18:59:44 +02:00
test-wasi.js test: add WASI test for file resizing 2020-07-13 11:51:18 -04:00
testcfg.py
wasi.status

README.md

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