* 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
22 lines
464 B
Rust
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),
|
|
}
|
|
}
|