mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-05 02:20:19 +00:00
Improved tests semantics
This commit is contained in:
parent
37afcd33df
commit
cce851f22f
@ -1,8 +1,8 @@
|
|||||||
mod utils;
|
mod utils;
|
||||||
|
|
||||||
use crate::utils::stdio::StdioCapturer;
|
use crate::utils::StdioCapturer;
|
||||||
use anyhow::{anyhow, bail};
|
use anyhow::anyhow;
|
||||||
use wasmer::compiler::{compile_with, compiler_for_backend, Backend};
|
use wasmer::compiler::{compile_with, compiler_for_backend};
|
||||||
use wasmer_emscripten::{generate_emscripten_env, run_emscripten_instance, EmscriptenGlobals};
|
use wasmer_emscripten::{generate_emscripten_env, run_emscripten_instance, EmscriptenGlobals};
|
||||||
|
|
||||||
use lazy_static::lazy_static;
|
use lazy_static::lazy_static;
|
||||||
|
@ -8,8 +8,7 @@ use std::path::Path;
|
|||||||
feature = "backend-singlepass"
|
feature = "backend-singlepass"
|
||||||
)))]
|
)))]
|
||||||
compile_error!("No compiler backend detected: please specify at least one compiler backend!");
|
compile_error!("No compiler backend detected: please specify at least one compiler backend!");
|
||||||
use anyhow::bail;
|
|
||||||
use wasmer::compiler::Backend;
|
|
||||||
use wasmer_wast::Wast;
|
use wasmer_wast::Wast;
|
||||||
|
|
||||||
// The generated tests (from build.rs) look like:
|
// The generated tests (from build.rs) look like:
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
mod backend;
|
mod backend;
|
||||||
mod file_descriptor;
|
mod file_descriptor;
|
||||||
pub mod stdio;
|
mod stdio;
|
||||||
|
|
||||||
pub use backend::get_backend_from_str;
|
pub use backend::get_backend_from_str;
|
||||||
|
pub use stdio::StdioCapturer;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
mod utils;
|
mod utils;
|
||||||
use crate::utils::stdio::StdioCapturer;
|
use crate::utils::StdioCapturer;
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use wasmer::compiler::{compile_with, compiler_for_backend, Backend};
|
use wasmer::compiler::{compile_with, compiler_for_backend};
|
||||||
use wasmer::Func;
|
use wasmer::Func;
|
||||||
use wasmer_wasi::state::WasiState;
|
use wasmer_wasi::state::WasiState;
|
||||||
use wasmer_wasi::{generate_import_object_from_state, get_wasi_version};
|
use wasmer_wasi::{generate_import_object_from_state, get_wasi_version};
|
||||||
|
Loading…
Reference in New Issue
Block a user