mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-04-26 07:42:14 +00:00
more tests
This commit is contained in:
parent
0d15b88fe6
commit
2a34ea4113
@ -9,3 +9,5 @@ macro_rules! run_test {
|
|||||||
|
|
||||||
run_test!("i32", wasm_i32);
|
run_test!("i32", wasm_i32);
|
||||||
run_test!("endianness", wasm_endianness);
|
run_test!("endianness", wasm_endianness);
|
||||||
|
run_test!("i64", wasm_i64);
|
||||||
|
run_test!("forward", wasm_forward);
|
@ -78,7 +78,12 @@ pub fn spec(name: &str) {
|
|||||||
.output()
|
.output()
|
||||||
.expect("Failed to execute process");
|
.expect("Failed to execute process");
|
||||||
|
|
||||||
assert!(wast2wasm_output.status.success(), "wast2wasm terminated with error code");
|
if !wast2wasm_output.status.success() {
|
||||||
|
println!("wasm2wast error code: {}", wast2wasm_output.status);
|
||||||
|
println!("wasm2wast stdout: {}", String::from_utf8_lossy(&wast2wasm_output.stdout));
|
||||||
|
println!("wasm2wast stderr: {}", String::from_utf8_lossy(&wast2wasm_output.stderr));
|
||||||
|
panic!("wasm2wast exited with status {}", wast2wasm_output.status);
|
||||||
|
}
|
||||||
|
|
||||||
let mut f = File::open(&json_spec_path)
|
let mut f = File::open(&json_spec_path)
|
||||||
.expect(&format!("Failed to load json file {}", &json_spec_path.to_string_lossy()));
|
.expect(&format!("Failed to load json file {}", &json_spec_path.to_string_lossy()));
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 7425bcc31e6516375391d18a62daee4c9f3502de
|
Subproject commit 1e5b546c65e8fef609431e77b1b2434dbf162e6c
|
Loading…
x
Reference in New Issue
Block a user