2018-02-14 15:03:39 +00:00
|
|
|
mod run;
|
|
|
|
|
2018-01-22 14:55:43 +00:00
|
|
|
macro_rules! run_test {
|
|
|
|
($label: expr, $test_name: ident) => (
|
|
|
|
#[test]
|
|
|
|
fn $test_name() {
|
2018-02-14 15:03:39 +00:00
|
|
|
self::run::spec($label)
|
2018-01-22 14:55:43 +00:00
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
run_test!("address", wasm_address);
|
2018-02-08 14:52:16 +00:00
|
|
|
run_test!("align", wasm_align);
|
2018-01-22 14:55:43 +00:00
|
|
|
run_test!("binary", wasm_binary);
|
|
|
|
run_test!("block", wasm_block);
|
2018-02-08 14:52:16 +00:00
|
|
|
run_test!("br", wasm_br);
|
2018-01-22 14:55:43 +00:00
|
|
|
run_test!("br_if", wasm_br_if);
|
|
|
|
run_test!("br_table", wasm_br_table);
|
|
|
|
run_test!("break-drop", wasm_break_drop);
|
|
|
|
run_test!("call", wasm_call);
|
2018-02-08 14:52:16 +00:00
|
|
|
run_test!("call_indirect", wasm_call_indirect);
|
2018-01-22 14:55:43 +00:00
|
|
|
run_test!("comments", wasm_comments);
|
2018-02-08 14:52:16 +00:00
|
|
|
run_test!("const", wasm_const);
|
2018-03-12 11:37:43 +00:00
|
|
|
run_test!("conversions", wasm_conversions);
|
2018-07-30 16:43:18 +00:00
|
|
|
run_test!("custom", wasm_custom);
|
2018-01-22 14:55:43 +00:00
|
|
|
run_test!("custom_section", wasm_custom_section);
|
2018-07-30 16:43:18 +00:00
|
|
|
run_test!("data", wasm_data);
|
2018-02-08 14:52:16 +00:00
|
|
|
run_test!("elem", wasm_elem);
|
2018-01-22 14:55:43 +00:00
|
|
|
run_test!("endianness", wasm_endianness);
|
2018-02-08 14:52:16 +00:00
|
|
|
run_test!("exports", wasm_exports);
|
|
|
|
run_test!("f32", wasm_f32);
|
2018-01-22 14:55:43 +00:00
|
|
|
run_test!("f32_bitwise", wasm_f32_bitwise);
|
|
|
|
run_test!("f32_cmp", wasm_f32_cmp);
|
2018-02-08 14:52:16 +00:00
|
|
|
run_test!("f64", wasm_f64);
|
2018-01-22 14:55:43 +00:00
|
|
|
run_test!("f64_bitwise", wasm_f64_bitwise);
|
|
|
|
run_test!("f64_cmp", wasm_f64_cmp);
|
|
|
|
run_test!("fac", wasm_fac);
|
2018-03-12 11:37:43 +00:00
|
|
|
run_test!("float_exprs", wasm_float_exprs);
|
|
|
|
run_test!("float_literals", wasm_float_literals);
|
|
|
|
run_test!("float_memory", wasm_float_memory);
|
2018-01-22 14:55:43 +00:00
|
|
|
run_test!("float_misc", wasm_float_misc);
|
|
|
|
run_test!("forward", wasm_forward);
|
|
|
|
run_test!("func", wasm_func);
|
2018-02-08 14:52:16 +00:00
|
|
|
run_test!("func_ptrs", wasm_func_ptrs);
|
2018-01-22 14:55:43 +00:00
|
|
|
run_test!("get_local", wasm_get_local);
|
|
|
|
run_test!("globals", wasm_globals);
|
|
|
|
run_test!("i32", wasm_i32);
|
|
|
|
run_test!("i64", wasm_i64);
|
|
|
|
run_test!("if", wasm_if);
|
|
|
|
run_test!("imports", wasm_imports);
|
2018-02-08 14:52:16 +00:00
|
|
|
run_test!("inline-module", inline_module);
|
2018-01-22 14:55:43 +00:00
|
|
|
run_test!("int_exprs", wasm_int_exprs);
|
|
|
|
run_test!("int_literals", wasm_int_literals);
|
|
|
|
run_test!("labels", wasm_labels);
|
|
|
|
run_test!("left-to-right", wasm_left_to_right);
|
|
|
|
run_test!("linking", wasm_linking);
|
|
|
|
run_test!("loop", wasm_loop);
|
2018-02-08 14:52:16 +00:00
|
|
|
run_test!("memory", wasm_memory);
|
2018-01-22 14:55:43 +00:00
|
|
|
run_test!("memory_redundancy", wasm_memory_redundancy);
|
|
|
|
run_test!("memory_trap", wasm_memory_trap);
|
|
|
|
run_test!("names", wasm_names);
|
|
|
|
run_test!("nop", wasm_nop);
|
|
|
|
run_test!("resizing", wasm_resizing);
|
|
|
|
run_test!("return", wasm_return);
|
|
|
|
run_test!("select", wasm_select);
|
|
|
|
run_test!("set_local", wasm_set_local);
|
|
|
|
run_test!("skip-stack-guard-page", wasm_skip_stack_guard_page);
|
|
|
|
run_test!("stack", wasm_stack);
|
|
|
|
run_test!("start", wasm_start);
|
|
|
|
run_test!("store_retval", wasm_store_retval);
|
|
|
|
run_test!("switch", wasm_switch);
|
|
|
|
run_test!("tee_local", wasm_tee_local);
|
2018-02-08 14:52:16 +00:00
|
|
|
run_test!("token", wasm_token);
|
2018-01-22 14:55:43 +00:00
|
|
|
run_test!("traps", wasm_traps);
|
2018-02-08 14:52:16 +00:00
|
|
|
run_test!("type", wasm_type);
|
2018-01-22 14:55:43 +00:00
|
|
|
run_test!("typecheck", wasm_typecheck);
|
|
|
|
run_test!("unreachable", wasm_unreachable);
|
|
|
|
run_test!("unreached-invalid", wasm_unreached_invalid);
|
|
|
|
run_test!("unwind", wasm_unwind);
|
2018-02-08 14:52:16 +00:00
|
|
|
run_test!("utf8-custom-section-id", wasm_utf8_custom_section_id);
|
2018-01-22 14:55:43 +00:00
|
|
|
run_test!("utf8-import-field", wasm_utf8_import_field);
|
|
|
|
run_test!("utf8-import-module", wasm_utf8_import_module);
|
2018-02-08 14:52:16 +00:00
|
|
|
run_test!("utf8-invalid-encoding", wasm_utf8_invalid_encoding);
|