node/test/wasi
Michael Dawson b2a80d788a
wasi: add wasi sock_accept stub
Refs: https://github.com/nodejs/uvwasi/pull/185

Add stub for sock_accept so that we have stubs
for all of the sock methods in wasi_snapshot_preview1.
Its a bit awkward as the method was added after the
initial definitial of wasi_snapshot-preview1 but I
think it should be semver minor at most to add
the method.

Depends on https://github.com/nodejs/uvwasi/pull/185
being landed in uvwasi first and an updated version
of uvwasi that includes that being pulled into
Node.js

Signed-off-by: Michael Dawson <mdawson@devrus.com>

PR-URL: https://github.com/nodejs/node/pull/46434
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2023-03-14 07:54:02 +01:00
..
c wasi: add wasi sock_accept stub 2023-03-14 07:54:02 +01:00
wasm wasi: add wasi sock_accept stub 2023-03-14 07:54:02 +01:00
Makefile wasi: fast calls 2022-12-28 08:17:13 +00:00
README.md doc: prepare markdown file for upcoming formatting/linting 2021-09-21 17:00:23 -07:00
test-return-on-exit.js test: fix wasi/test-return-on-exit on 32-bit systems 2021-03-08 05:53:04 -08:00
test-wasi-initialize-validation.js test: add lint rule to enforce trailing commas 2022-11-21 15:16:25 -05:00
test-wasi-not-started.js test: add lint rule to enforce trailing commas 2022-11-21 15:16:25 -05:00
test-wasi-options-validation.js wasi: add support for version when creating WASI 2023-03-13 11:30:10 +01:00
test-wasi-require-flag.js
test-wasi-start-validation.js test: add lint rule to enforce trailing commas 2022-11-21 15:16:25 -05:00
test-wasi-stdio.js wasi: drop --experimental-wasm-bigint requirement 2020-10-18 20:17:43 +02:00
test-wasi-symlinks.js test: add lint rule to enforce trailing commas 2022-11-21 15:16:25 -05:00
test-wasi-worker-terminate.js test: prepare for consistent comma-dangle lint rule 2021-04-01 23:14:29 -07:00
test-wasi.js wasi: add wasi sock_accept stub 2023-03-14 07:54:02 +01:00
testcfg.py
wasi.status test: fix wasi/test-return-on-exit on 32-bit systems 2021-03-08 05:53:04 -08:00

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