message: Let push tests
diff: @@ -6,6 +6,8 @@ use test_utils::get_compiler_config_from_str;
  use wasmer::{Features, Store, Tunables};
  #[cfg(feature = "jit")]
  use wasmer_engine_jit::JITEngine;
  +#[cfg(feature = "native")]
  +use wasmer_engine_native::NativeEngine;
  use wasmer_wast::Wast;
  // The generated tests (from build.rs) look like:
  @@ -20,6 +22,13 @@ use wasmer_wast::Wast;
  // }
  include!(concat!(env!("OUT_DIR"), "/generated_spectests.rs"));
  +// This prefixer returns the hash of the module to prefix each of
  +// the functions in the sharedd object generated by the `NativeEngine`.
  +fn native_prefixer(bytes: &[u8]) -> String {
  + let hash = blake3::hash(bytes);
  + format!("{}", hash.to_hex())
  +}
  +
  fn run_wast(wast_path: &str, compiler: &str) -> anyhow::Result<()> {
  println!(
  "Running wast `{}` with the {} compiler",
  @@ -33,7 +42,10 @@ fn run_wast(wast_path: &str, compiler: &str) -> anyhow::Result<()> {
  let compiler_config =
  get_compiler_config_from_str(compiler, try_nan_canonicalization, features);
  let tunables = Tunables::for_target(compiler_config.target().triple());
  - let store = Store::new(Arc::new(JITEngine::new(&*compiler_config, tunables)));
  + // let store = Store::new(Arc::new(JITEngine::new(&*compiler_config, tunables)));
  + let mut native = NativeEngine::new(&*compiler_config, tunables);
  + native.set_deterministic_prefixer(native_prefixer);
  + let store = Store::new(Arc::new(native));
  let mut wast = Wast::new_with_spectest(store);
  if compiler == "singlepass" {
  // We don't support multivalue yet in singlepass
  