Reorganize tests (#523)
* Refactor Lightbeam's tests. This refactors Lightbeam's tests.rs file into several pieces, separating quickcheck tests into their own file, and moving tests which can be run as wast tests into `tests/misc_testsuite`, and creating a tests directory for the rest. * Remove the old filetests tests. These are all covered by misc_testsuite and spec_testsuite tests. * rustfmt * Remove the "bench" feature.
This commit is contained in:
committed by
Alex Crichton
parent
0f4f9d7832
commit
e691bf36f3
@@ -1,4 +1,4 @@
|
||||
#![cfg_attr(feature = "bench", feature(test))]
|
||||
#![cfg_attr(test, feature(test))]
|
||||
#![feature(proc_macro_hygiene)]
|
||||
|
||||
#[macro_use]
|
||||
@@ -11,15 +11,11 @@ extern crate memoffset;
|
||||
extern crate dynasm;
|
||||
extern crate dynasmrt;
|
||||
extern crate itertools;
|
||||
#[cfg(test)]
|
||||
#[macro_use]
|
||||
extern crate lazy_static;
|
||||
#[cfg(test)]
|
||||
#[macro_use]
|
||||
extern crate quickcheck;
|
||||
// Just so we can implement `Signature` for `cranelift_codegen::ir::Signature`
|
||||
extern crate cranelift_codegen;
|
||||
extern crate multi_mut;
|
||||
#[cfg(test)]
|
||||
extern crate test;
|
||||
|
||||
mod backend;
|
||||
mod disassemble;
|
||||
@@ -30,8 +26,10 @@ mod module;
|
||||
mod translate_sections;
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests;
|
||||
mod benches;
|
||||
|
||||
pub use crate::backend::CodeGenSession;
|
||||
pub use crate::function_body::translate_wasm as translate_function;
|
||||
pub use crate::module::{translate, ExecutableModule, ModuleContext, Signature, TranslatedModule};
|
||||
pub use crate::module::{
|
||||
translate, ExecutableModule, ExecutionError, ModuleContext, Signature, TranslatedModule,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user