You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

21 lines
519 B

use anyhow::Result;
use std::path::Path;
use tempfile::TempDir;
use wasi_common::pipe::WritePipe;
use wasmtime::{Config, Engine, Linker, Module, Store};
pub fn prepare_workspace(exe_name: &str) -> Result<TempDir> {
let prefix = format!("wasi_cap_std_sync_{}_", exe_name);
let tempdir = tempfile::Builder::new().prefix(&prefix).tempdir()?;
Ok(tempdir)
}
macro_rules! assert_test_exists {
($name:ident) => {
#[allow(unused_imports)]
use self::$name as _;
};
}
mod async_;
mod sync;