Files
wasmtime/winch/src/main.rs
Kevin Rizzo da03ff47f1 winch: Adding support for integration tests (#5588)
* Adding in the foundations for Winch `filetests`

This commit adds two new crates into the Winch workspace:
`filetests` and `test-macros`. The intent is to mimic the
structure of Cranelift `filetests`, but in a simpler way.

* Updates to documentation

This commits adds a high level document to outline how to test Winch
through the `winch-tools` utility. It also updates some inline
documentation which gets propagated to the CLI.

* Updating test-macro to use a glob instead of only a flat directory
2023-01-19 07:34:48 -05:00

22 lines
464 B
Rust

mod compile;
mod filetests;
use anyhow::Result;
use clap::Parser;
/// Winch compilation and testing tool.
#[derive(Parser)]
enum Commands {
/// Compile a Wasm module to the specified target architecture.
Compile(compile::Options),
/// Run the filetests.
Test(filetests::Options),
}
fn main() -> Result<()> {
match Commands::parse() {
Commands::Compile(c) => compile::run(&c),
Commands::Test(t) => filetests::run(&t),
}
}