tree: 04898a9dc954a388fbe702aa68ecf6e9c1b6e42c
  1. c/
  2. wasm/
  3. Makefile
  4. README.md
  5. test-return-on-exit.js
  6. test-wasi-exitcode.js
  7. test-wasi-initialize-validation.js
  8. test-wasi-io.js
  9. test-wasi-not-started.js
  10. test-wasi-options-validation.js
  11. test-wasi-poll.js
  12. test-wasi-start-validation.js
  13. test-wasi-stdio.js
  14. test-wasi-symlinks.js
  15. test-wasi-worker-terminate.js
  16. test-wasi.js
  17. testcfg.py
  18. wasi.status
test/wasi/README.md

WASI Tests

Compile with clang and wasm32-wasi target by using the wasi-sdk version 20

Install wasi-sdk and then set WASI_SDK_PATH to the root of the install.

You can then rebuild the wasm for the tests by running:

make CC=${WASI_SDK_PATH}/bin/clang SYSROOT=${WASI_SDK_PATH}/share/wasi-sysroot

If you update the version of the wasi-sdk to be used for the compile remove all of the *.wasm files in the wasm directory to ensure you rebuild/test all of the tests with the new version.