Skip to content

second-state/component-model-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  1. canonical ABI haven't get fully implemented
    • what we already have is supporting for type string, the rest higher type need to implement
    • resource haven't get handled.
  2. 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published