Skip to content

Commit

Permalink
Update tests for old runtime removal
Browse files Browse the repository at this point in the history
  • Loading branch information
bjfish committed Jan 6, 2019
1 parent f714049 commit 2f9119a
Show file tree
Hide file tree
Showing 65 changed files with 64 additions and 67 deletions.
2 changes: 1 addition & 1 deletion build/spectests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ impl WastTestGenerator {
)]
use wabt::wat2wasm;
use crate::webassembly::{{instantiate, compile, ImportObject, ResultObject, Instance}};
use crate::webassembly::{{instantiate, compile, ResultObject}};
use crate::runtime::types::{{Value}};
use super::_common::{{
Expand Down
File renamed without changes.
6 changes: 2 additions & 4 deletions src/emtests/_common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@ macro_rules! assert_emscripten_output {
use crate::apis::generate_emscripten_env;
use crate::common::stdio::StdioCapturer;
use crate::runtime::types::{ElementType, FuncSig, Table, Type, Value};
use crate::runtime::{Import, Imports};
use crate::webassembly::{
get_isa, instantiate, start_instance, InstanceABI, InstanceOptions,
};
use crate::runtime::{Import, Imports, InstanceABI, InstanceOptions};
use crate::webassembly::{get_isa, instantiate, start_instance};
use std::sync::Arc;

let wasm_bytes = include_bytes!($file);
Expand Down
2 changes: 1 addition & 1 deletion src/emtests/localtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ fn test_localtime() {
"../../emtests/localtime.wasm",
"localtime",
vec![],
"../../emtests/localtime.output"
"../../emtests/localtime.out"
);
}
1 change: 0 additions & 1 deletion src/spectests/_common.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use crate::runtime::types::{ElementType, FuncSig, Table, Type, Value};
use crate::runtime::{Import, Imports, TableBacking};
use crate::webassembly::{ImportObject, ImportValue};
use std::sync::Arc;

extern "C" fn print_i32(num: i32) {
Expand Down
2 changes: 1 addition & 1 deletion src/spectests/address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use wabt::wat2wasm;

use crate::runtime::types::Value;
use crate::webassembly::{compile, instantiate, ImportObject, Instance, ResultObject};
use crate::webassembly::{compile, instantiate, ResultObject};

use super::_common::{spectest_importobject, NaNCheck};

Expand Down
2 changes: 1 addition & 1 deletion src/spectests/align.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use wabt::wat2wasm;

use crate::runtime::types::Value;
use crate::webassembly::{compile, instantiate, ImportObject, Instance, ResultObject};
use crate::webassembly::{compile, instantiate, ResultObject};

use super::_common::{spectest_importobject, NaNCheck};

Expand Down
2 changes: 1 addition & 1 deletion src/spectests/binary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use wabt::wat2wasm;

use crate::runtime::types::Value;
use crate::webassembly::{compile, instantiate, ImportObject, Instance, ResultObject};
use crate::webassembly::{compile, instantiate, ResultObject};

use super::_common::{spectest_importobject, NaNCheck};

Expand Down
2 changes: 1 addition & 1 deletion src/spectests/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use wabt::wat2wasm;

use crate::runtime::types::Value;
use crate::webassembly::{compile, instantiate, ImportObject, Instance, ResultObject};
use crate::webassembly::{compile, instantiate, ResultObject};

use super::_common::{spectest_importobject, NaNCheck};

Expand Down
2 changes: 1 addition & 1 deletion src/spectests/br.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use wabt::wat2wasm;

use crate::runtime::types::Value;
use crate::webassembly::{compile, instantiate, ImportObject, Instance, ResultObject};
use crate::webassembly::{compile, instantiate, ResultObject};

use super::_common::{spectest_importobject, NaNCheck};

Expand Down
2 changes: 1 addition & 1 deletion src/spectests/br_if.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use wabt::wat2wasm;

use crate::runtime::types::Value;
use crate::webassembly::{compile, instantiate, ImportObject, Instance, ResultObject};
use crate::webassembly::{compile, instantiate, ResultObject};

use super::_common::{spectest_importobject, NaNCheck};

Expand Down
2 changes: 1 addition & 1 deletion src/spectests/br_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use wabt::wat2wasm;

use crate::runtime::types::Value;
use crate::webassembly::{compile, instantiate, ImportObject, Instance, ResultObject};
use crate::webassembly::{compile, instantiate, ResultObject};

use super::_common::{spectest_importobject, NaNCheck};

Expand Down
2 changes: 1 addition & 1 deletion src/spectests/break_drop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use wabt::wat2wasm;

use crate::runtime::types::Value;
use crate::webassembly::{compile, instantiate, ImportObject, Instance, ResultObject};
use crate::webassembly::{compile, instantiate, ResultObject};

use super::_common::{spectest_importobject, NaNCheck};

Expand Down
2 changes: 1 addition & 1 deletion src/spectests/call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use wabt::wat2wasm;

use crate::runtime::types::Value;
use crate::webassembly::{compile, instantiate, ImportObject, Instance, ResultObject};
use crate::webassembly::{compile, instantiate, ResultObject};

use super::_common::{spectest_importobject, NaNCheck};

Expand Down
2 changes: 1 addition & 1 deletion src/spectests/call_indirect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use wabt::wat2wasm;

use crate::runtime::types::Value;
use crate::webassembly::{compile, instantiate, ImportObject, Instance, ResultObject};
use crate::webassembly::{compile, instantiate, ResultObject};

use super::_common::{spectest_importobject, NaNCheck};

Expand Down
2 changes: 1 addition & 1 deletion src/spectests/comments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use wabt::wat2wasm;

use crate::runtime::types::Value;
use crate::webassembly::{compile, instantiate, ImportObject, Instance, ResultObject};
use crate::webassembly::{compile, instantiate, ResultObject};

use super::_common::{spectest_importobject, NaNCheck};

Expand Down
2 changes: 1 addition & 1 deletion src/spectests/const_.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use wabt::wat2wasm;

use crate::runtime::types::Value;
use crate::webassembly::{compile, instantiate, ImportObject, Instance, ResultObject};
use crate::webassembly::{compile, instantiate, ResultObject};

use super::_common::{spectest_importobject, NaNCheck};

Expand Down
2 changes: 1 addition & 1 deletion src/spectests/conversions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use wabt::wat2wasm;

use crate::runtime::types::Value;
use crate::webassembly::{compile, instantiate, ImportObject, Instance, ResultObject};
use crate::webassembly::{compile, instantiate, ResultObject};

use super::_common::{spectest_importobject, NaNCheck};

Expand Down
2 changes: 1 addition & 1 deletion src/spectests/custom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use wabt::wat2wasm;

use crate::runtime::types::Value;
use crate::webassembly::{compile, instantiate, ImportObject, Instance, ResultObject};
use crate::webassembly::{compile, instantiate, ResultObject};

use super::_common::{spectest_importobject, NaNCheck};

Expand Down
2 changes: 1 addition & 1 deletion src/spectests/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use wabt::wat2wasm;

use crate::runtime::types::Value;
use crate::webassembly::{compile, instantiate, ImportObject, Instance, ResultObject};
use crate::webassembly::{compile, instantiate, ResultObject};

use super::_common::{spectest_importobject, NaNCheck};

Expand Down
2 changes: 1 addition & 1 deletion src/spectests/elem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use wabt::wat2wasm;

use crate::runtime::types::Value;
use crate::webassembly::{compile, instantiate, ImportObject, Instance, ResultObject};
use crate::webassembly::{compile, instantiate, ResultObject};

use super::_common::{spectest_importobject, NaNCheck};

Expand Down
2 changes: 1 addition & 1 deletion src/spectests/endianness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use wabt::wat2wasm;

use crate::runtime::types::Value;
use crate::webassembly::{compile, instantiate, ImportObject, Instance, ResultObject};
use crate::webassembly::{compile, instantiate, ResultObject};

use super::_common::{spectest_importobject, NaNCheck};

Expand Down
2 changes: 1 addition & 1 deletion src/spectests/exports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use wabt::wat2wasm;

use crate::runtime::types::Value;
use crate::webassembly::{compile, instantiate, ImportObject, Instance, ResultObject};
use crate::webassembly::{compile, instantiate, ResultObject};

use super::_common::{spectest_importobject, NaNCheck};

Expand Down
2 changes: 1 addition & 1 deletion src/spectests/f32_.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use wabt::wat2wasm;

use crate::runtime::types::Value;
use crate::webassembly::{compile, instantiate, ImportObject, Instance, ResultObject};
use crate::webassembly::{compile, instantiate, ResultObject};

use super::_common::{spectest_importobject, NaNCheck};

Expand Down
2 changes: 1 addition & 1 deletion src/spectests/f32_bitwise.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use wabt::wat2wasm;

use crate::runtime::types::Value;
use crate::webassembly::{compile, instantiate, ImportObject, Instance, ResultObject};
use crate::webassembly::{compile, instantiate, ResultObject};

use super::_common::{spectest_importobject, NaNCheck};

Expand Down
2 changes: 1 addition & 1 deletion src/spectests/f32_cmp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use wabt::wat2wasm;

use crate::runtime::types::Value;
use crate::webassembly::{compile, instantiate, ImportObject, Instance, ResultObject};
use crate::webassembly::{compile, instantiate, ResultObject};

use super::_common::{spectest_importobject, NaNCheck};

Expand Down
2 changes: 1 addition & 1 deletion src/spectests/f64_.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use wabt::wat2wasm;

use crate::runtime::types::Value;
use crate::webassembly::{compile, instantiate, ImportObject, Instance, ResultObject};
use crate::webassembly::{compile, instantiate, ResultObject};

use super::_common::{spectest_importobject, NaNCheck};

Expand Down
2 changes: 1 addition & 1 deletion src/spectests/f64_bitwise.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use wabt::wat2wasm;

use crate::runtime::types::Value;
use crate::webassembly::{compile, instantiate, ImportObject, Instance, ResultObject};
use crate::webassembly::{compile, instantiate, ResultObject};

use super::_common::{spectest_importobject, NaNCheck};

Expand Down
2 changes: 1 addition & 1 deletion src/spectests/f64_cmp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use wabt::wat2wasm;

use crate::runtime::types::Value;
use crate::webassembly::{compile, instantiate, ImportObject, Instance, ResultObject};
use crate::webassembly::{compile, instantiate, ResultObject};

use super::_common::{spectest_importobject, NaNCheck};

Expand Down
2 changes: 1 addition & 1 deletion src/spectests/fac.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use wabt::wat2wasm;

use crate::runtime::types::Value;
use crate::webassembly::{compile, instantiate, ImportObject, Instance, ResultObject};
use crate::webassembly::{compile, instantiate, ResultObject};

use super::_common::{spectest_importobject, NaNCheck};

Expand Down
2 changes: 1 addition & 1 deletion src/spectests/float_exprs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use wabt::wat2wasm;

use crate::runtime::types::Value;
use crate::webassembly::{compile, instantiate, ImportObject, Instance, ResultObject};
use crate::webassembly::{compile, instantiate, ResultObject};

use super::_common::{spectest_importobject, NaNCheck};

Expand Down
2 changes: 1 addition & 1 deletion src/spectests/float_literals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use wabt::wat2wasm;

use crate::runtime::types::Value;
use crate::webassembly::{compile, instantiate, ImportObject, Instance, ResultObject};
use crate::webassembly::{compile, instantiate, ResultObject};

use super::_common::{spectest_importobject, NaNCheck};

Expand Down
2 changes: 1 addition & 1 deletion src/spectests/float_memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use wabt::wat2wasm;

use crate::runtime::types::Value;
use crate::webassembly::{compile, instantiate, ImportObject, Instance, ResultObject};
use crate::webassembly::{compile, instantiate, ResultObject};

use super::_common::{spectest_importobject, NaNCheck};

Expand Down
2 changes: 1 addition & 1 deletion src/spectests/float_misc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use wabt::wat2wasm;

use crate::runtime::types::Value;
use crate::webassembly::{compile, instantiate, ImportObject, Instance, ResultObject};
use crate::webassembly::{compile, instantiate, ResultObject};

use super::_common::{spectest_importobject, NaNCheck};

Expand Down
2 changes: 1 addition & 1 deletion src/spectests/forward.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use wabt::wat2wasm;

use crate::runtime::types::Value;
use crate::webassembly::{compile, instantiate, ImportObject, Instance, ResultObject};
use crate::webassembly::{compile, instantiate, ResultObject};

use super::_common::{spectest_importobject, NaNCheck};

Expand Down
2 changes: 1 addition & 1 deletion src/spectests/func.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use wabt::wat2wasm;

use crate::runtime::types::Value;
use crate::webassembly::{compile, instantiate, ImportObject, Instance, ResultObject};
use crate::webassembly::{compile, instantiate, ResultObject};

use super::_common::{spectest_importobject, NaNCheck};

Expand Down
2 changes: 1 addition & 1 deletion src/spectests/func_ptrs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use wabt::wat2wasm;

use crate::runtime::types::Value;
use crate::webassembly::{compile, instantiate, ImportObject, Instance, ResultObject};
use crate::webassembly::{compile, instantiate, ResultObject};

use super::_common::{spectest_importobject, NaNCheck};

Expand Down
2 changes: 1 addition & 1 deletion src/spectests/get_local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use wabt::wat2wasm;

use crate::runtime::types::Value;
use crate::webassembly::{compile, instantiate, ImportObject, Instance, ResultObject};
use crate::webassembly::{compile, instantiate, ResultObject};

use super::_common::{spectest_importobject, NaNCheck};

Expand Down
2 changes: 1 addition & 1 deletion src/spectests/globals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use wabt::wat2wasm;

use crate::runtime::types::Value;
use crate::webassembly::{compile, instantiate, ImportObject, Instance, ResultObject};
use crate::webassembly::{compile, instantiate, ResultObject};

use super::_common::{spectest_importobject, NaNCheck};

Expand Down
2 changes: 1 addition & 1 deletion src/spectests/i32_.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use wabt::wat2wasm;

use crate::runtime::types::Value;
use crate::webassembly::{compile, instantiate, ImportObject, Instance, ResultObject};
use crate::webassembly::{compile, instantiate, ResultObject};

use super::_common::{spectest_importobject, NaNCheck};

Expand Down
2 changes: 1 addition & 1 deletion src/spectests/i64_.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use wabt::wat2wasm;

use crate::runtime::types::Value;
use crate::webassembly::{compile, instantiate, ImportObject, Instance, ResultObject};
use crate::webassembly::{compile, instantiate, ResultObject};

use super::_common::{spectest_importobject, NaNCheck};

Expand Down
2 changes: 1 addition & 1 deletion src/spectests/if_.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use wabt::wat2wasm;

use crate::runtime::types::Value;
use crate::webassembly::{compile, instantiate, ImportObject, Instance, ResultObject};
use crate::webassembly::{compile, instantiate, ResultObject};

use super::_common::{spectest_importobject, NaNCheck};

Expand Down
2 changes: 1 addition & 1 deletion src/spectests/int_exprs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use wabt::wat2wasm;

use crate::runtime::types::Value;
use crate::webassembly::{compile, instantiate, ImportObject, Instance, ResultObject};
use crate::webassembly::{compile, instantiate, ResultObject};

use super::_common::{spectest_importobject, NaNCheck};

Expand Down
2 changes: 1 addition & 1 deletion src/spectests/int_literals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use wabt::wat2wasm;

use crate::runtime::types::Value;
use crate::webassembly::{compile, instantiate, ImportObject, Instance, ResultObject};
use crate::webassembly::{compile, instantiate, ResultObject};

use super::_common::{spectest_importobject, NaNCheck};

Expand Down
2 changes: 1 addition & 1 deletion src/spectests/labels.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use wabt::wat2wasm;

use crate::runtime::types::Value;
use crate::webassembly::{compile, instantiate, ImportObject, Instance, ResultObject};
use crate::webassembly::{compile, instantiate, ResultObject};

use super::_common::{spectest_importobject, NaNCheck};

Expand Down
Loading

0 comments on commit 2f9119a

Please sign in to comment.