Skip to content

Simplify the usual run-tests workflow #147

@wingo

Description

@wingo

The README documents a relatively involved test runner invocation:

python3 test-runner/wasi_test_runner.py                                                  \
   -t ./tests/assemblyscript/testsuite/ `# path to folders containing .wasm test files` \
      ./tests/c/testsuite/wasm32-wasip1                                                 \
      ./tests/rust/testsuite/                                                           \
   -r adapters/wasmtime.py # path to a runtime adapter

OK, it needs to be updated for the new paths. And to add wasip3 for Rust; and somehow to invoke the "adapter" such that it can apply different command-line flags to different versions (wasip1 vs wasip3).

It occurs to me that we should try to be more simple for the default run. I basically want to be able to just ./run-tests. Some ideas to get us there:

  • New front-end script at the top level; uses the existing code tho
  • Instead of specifying paths to test suite dirs manually, just traverse subdirs looking for manifest.json files; those are the available tests
  • Start a test run by looking for all adapters (WASI implementations), and querying them for which wasi versions they support; run them all.
  • Add a simple regex-based "includelist" to the command-line, as in the JS engine's test runners

Thoughts? @pchickey @loganek @alexcrichton ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions