Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 1.19 KB

README.md

File metadata and controls

38 lines (28 loc) · 1.19 KB

component model tests

The component model test suites for wasmedge development.

Build WasmEdge with plugin

cd /path/to/wasmedge
mkdir build; cd build
cmake -DCMAKE_BUILD_TYPE=Debug -DWASMEDGE_PLUGIN_WASI_HTTP=ON -DWASMEDGE_BUILD_TOOLS=ON -GNinja ..
ninja

Run example

# at /path/to/wasmedge/build
./tools/wasmedge/wasmedge --enable-component /path/to/component-model-tests/core/core.wasm mdup 100

WASMEDGE_PLUGIN_PATH=./plugins/wasi_http ./tools/wasmedge/wasmedge --enable-component \
  /path/to/component-model-tests/http/http.wasm run "https://google.com"

Limitation

The validation of component is incomplete, there is no guarantee your program with problems can be detected.

  • we only do validation for nested module.
  • new concepts in components not checked yet.

Next step

  • Let WasmEdge plugin produces component instance.
  • We are going to implement canonical ABI first, this will need data conversion which rely on memory and reallocate options in canonical lift/lowering.
    • rely on shared memory
    • rely on reallocate function
  • implements canonical resource
  • wasi preview2
  • Implement validation about types.