machinst x64: add testing to the CI;

This commit is contained in:
Benjamin Bouvier
2020-07-29 18:08:35 +02:00
parent 39ea64140f
commit 79abcdb035
11 changed files with 87 additions and 2 deletions

View File

@@ -373,6 +373,7 @@ fn gc_during_gc_when_passing_refs_into_wasm() -> anyhow::Result<()> {
}
#[test]
#[cfg_attr(feature = "experimental_x64", ignore)] // TODO #2079 investigate.
fn gc_during_gc_from_many_table_gets() -> anyhow::Result<()> {
let (store, module) = ref_types_module(
r#"

View File

@@ -99,6 +99,7 @@ fn loop_interrupt_from_afar() -> anyhow::Result<()> {
}
#[test]
#[cfg_attr(feature = "experimental_x64", ignore)] // TODO #2079 interrupts in wasmtime
fn function_interrupt_from_afar() -> anyhow::Result<()> {
// Create an instance which calls an imported function on each iteration of
// the loop so we can count the number of loop iterations we've executed so

View File

@@ -2,6 +2,7 @@ use std::sync::atomic::{AtomicUsize, Ordering::SeqCst};
use wasmtime::*;
#[test]
#[cfg_attr(feature = "experimental_x64", ignore)] // TODO #2079 require probe stacks
fn host_always_has_some_stack() -> anyhow::Result<()> {
static HITS: AtomicUsize = AtomicUsize::new(0);
// assume hosts always have at least 512k of stack

View File

@@ -32,6 +32,7 @@ fn test_trap_return() -> Result<()> {
#[test]
#[cfg_attr(target_arch = "aarch64", ignore)] // FIXME(#1642)
#[cfg_attr(feature = "experimental_x64", ignore)] // FIXME(#2078)
fn test_trap_trace() -> Result<()> {
let store = Store::default();
let wat = r#"
@@ -74,6 +75,7 @@ fn test_trap_trace() -> Result<()> {
#[test]
#[cfg_attr(target_arch = "aarch64", ignore)] // FIXME(#1642)
#[cfg_attr(feature = "experimental_x64", ignore)] // FIXME(#2078)
fn test_trap_trace_cb() -> Result<()> {
let store = Store::default();
let wat = r#"
@@ -110,6 +112,7 @@ fn test_trap_trace_cb() -> Result<()> {
#[test]
#[cfg_attr(target_arch = "aarch64", ignore)] // FIXME(#1642)
#[cfg_attr(feature = "experimental_x64", ignore)] // FIXME(#2078)
fn test_trap_stack_overflow() -> Result<()> {
let store = Store::default();
let wat = r#"
@@ -142,6 +145,7 @@ fn test_trap_stack_overflow() -> Result<()> {
#[test]
#[cfg_attr(target_arch = "aarch64", ignore)] // FIXME(#1642)
#[cfg_attr(feature = "experimental_x64", ignore)] // FIXME(#2078)
fn trap_display_pretty() -> Result<()> {
let store = Store::default();
let wat = r#"
@@ -174,6 +178,7 @@ wasm backtrace:
#[test]
#[cfg_attr(target_arch = "aarch64", ignore)] // FIXME(#1642)
#[cfg_attr(feature = "experimental_x64", ignore)] // FIXME(#2078)
fn trap_display_multi_module() -> Result<()> {
let store = Store::default();
let wat = r#"
@@ -219,6 +224,7 @@ wasm backtrace:
#[test]
#[cfg_attr(target_arch = "aarch64", ignore)] // FIXME(#1642)
#[cfg_attr(feature = "experimental_x64", ignore)] // FIXME(#2078)
fn trap_start_function_import() -> Result<()> {
let store = Store::default();
let binary = wat::parse_str(
@@ -246,6 +252,7 @@ fn trap_start_function_import() -> Result<()> {
#[test]
#[cfg_attr(target_arch = "aarch64", ignore)] // FIXME(#1642)
#[cfg_attr(feature = "experimental_x64", ignore)] // FIXME(#2078)
fn rust_panic_import() -> Result<()> {
let store = Store::default();
let binary = wat::parse_str(
@@ -291,6 +298,7 @@ fn rust_panic_import() -> Result<()> {
#[test]
#[cfg_attr(target_arch = "aarch64", ignore)] // FIXME(#1642)
#[cfg_attr(feature = "experimental_x64", ignore)] // FIXME(#2078)
fn rust_panic_start_function() -> Result<()> {
let store = Store::default();
let binary = wat::parse_str(
@@ -325,6 +333,7 @@ fn rust_panic_start_function() -> Result<()> {
#[test]
#[cfg_attr(target_arch = "aarch64", ignore)] // FIXME(#1642)
#[cfg_attr(feature = "experimental_x64", ignore)] // FIXME(#2078)
fn mismatched_arguments() -> Result<()> {
let store = Store::default();
let binary = wat::parse_str(
@@ -357,6 +366,7 @@ fn mismatched_arguments() -> Result<()> {
#[test]
#[cfg_attr(target_arch = "aarch64", ignore)] // FIXME(#1642)
#[cfg_attr(feature = "experimental_x64", ignore)] // FIXME(#2078)
fn call_signature_mismatch() -> Result<()> {
let store = Store::default();
let binary = wat::parse_str(
@@ -388,6 +398,7 @@ fn call_signature_mismatch() -> Result<()> {
#[test]
#[cfg_attr(target_arch = "aarch64", ignore)] // FIXME(#1642)
#[cfg_attr(feature = "experimental_x64", ignore)] // FIXME(#2078)
fn start_trap_pretty() -> Result<()> {
let store = Store::default();
let wat = r#"