# Compilers
singlepass spec::simd # Singlepass doesn't support yet SIMD (no one asked for this feature)

# Traps
## Traps. Tracing doesn't work properly in Singlepass
## Unwinding is not properly implemented in Singlepass
# Needs investigation
singlepass+aarch64+macos traps::test_trap_trace
cranelift+aarch64+macos    traps::test_trap_trace
llvm+aarch64    traps::test_trap_trace
singlepass+aarch64+macos traps::test_trap_stack_overflow # Need to investigate
singlepass+aarch64+macos traps::trap_display_pretty
llvm       traps::trap_display_pretty
cranelift+aarch64+macos    traps::trap_display_pretty
singlepass+aarch64+macos traps::trap_display_multi_module
llvm       traps::trap_display_multi_module
cranelift+aarch64+macos    traps::trap_display_multi_module
windows+singlepass   traps::trap_display_multi_module
singlepass traps::call_signature_mismatch   # Need to investigate, get foo (a[0]:0x33) instead of 0x30 for inderect call
llvm       traps::call_signature_mismatch
macos+aarch64    traps::call_signature_mismatch
singlepass+aarch64+macos traps::start_trap_pretty
llvm       traps::start_trap_pretty
cranelift+aarch64+macos    traps::start_trap_pretty

# Also neither LLVM nor Cranelift currently implement stack probing on AArch64.
# https://github.com/wasmerio/wasmer/issues/2808
cranelift+aarch64 spec::skip_stack_guard_page
llvm+aarch64      spec::skip_stack_guard_page

# Windows doesn't overcommit and fails to allocate 4GB of memory
windows wasmer::max_size_of_memory

# Some AARCH64 CPU have issue with segfault writin 64bits on border page, where the 1 32bits might be written.
aarch64+linux spec::align
aarch64+linux spec::memory_trap

# Frontends

## WASI

### These tests don't pass due to race conditions in the new way we run tests.
### It's not built to be run in parallel with itself, so we disable it for now.

wasitests::snapshot1::host_fs::writing
wasitests::unstable::host_fs::writing
wasitests::snapshot1::mem_fs::writing
wasitests::unstable::mem_fs::writing

### due to hard-coded direct calls into WASI for wasi unstable

wasitests::snapshot1::host_fs::fd_read
wasitests::snapshot1::host_fs::poll_oneoff
wasitests::snapshot1::host_fs::fd_pread
wasitests::snapshot1::host_fs::fd_close
wasitests::snapshot1::host_fs::fd_allocate
wasitests::snapshot1::host_fs::close_preopen_fd
wasitests::snapshot1::host_fs::envvar
wasitests::snapshot1::mem_fs::fd_read
wasitests::snapshot1::mem_fs::poll_oneoff
wasitests::snapshot1::mem_fs::fd_pread
wasitests::snapshot1::mem_fs::fd_close
wasitests::snapshot1::mem_fs::fd_allocate
wasitests::snapshot1::mem_fs::close_preopen_fd
wasitests::snapshot1::mem_fs::envvar

### TODO: resolve the disabled tests below. These are newly disabled tests from the migration:

### due to git clone not preserving symlinks:
wasitests::snapshot1::host_fs::readlink
wasitests::unstable::host_fs::readlink
wasitests::snapshot1::mem_fs::readlink
wasitests::unstable::mem_fs::readlink

### failing due to `remove_dir_all`. this test is also bad for parallelism
wasitests::snapshot1::host_fs::create_dir
wasitests::unstable::host_fs::create_dir
wasitests::snapshot1::mem_fs::create_dir
wasitests::unstable::mem_fs::create_dir

### failing because it closes `stdout` which breaks our testing system
wasitests::unstable::host_fs::fd_close
wasitests::unstable::mem_fs::fd_close

### failing because we're operating on stdout which is now overridden.
### TODO: check WasiFile implementation
### Alterative: split test into 2 parts, one printing to stderr, the other printing to stdout to test the real versions
wasitests::unstable::host_fs::poll_oneoff
wasitests::unstable::mem_fs::poll_oneoff

### randomly failed, mainly on windows but also on macos, due to a race condition when concurently testing multiple compiler / engines
wasitests::snapshot1::host_fs::fd_rename_path

# This tests are disabled for now
wasitests::unstable::host_fs::unix_open_special_files
wasitests::snapshot1::host_fs::unix_open_special_files
wasitests::unstable::mem_fs::unix_open_special_files
wasitests::snapshot1::mem_fs::unix_open_special_files

# These tests are all tests that are disabled for unstable + snapshot1,
# so they are also disabled for nightly
wasitests::nightly_2022_10_18::host_fs::close_preopen_fd
wasitests::nightly_2022_10_18::host_fs::create_dir
wasitests::nightly_2022_10_18::host_fs::envvar
wasitests::nightly_2022_10_18::host_fs::fd_allocate
wasitests::nightly_2022_10_18::host_fs::fd_close
wasitests::nightly_2022_10_18::host_fs::fd_pread
wasitests::nightly_2022_10_18::host_fs::fd_read
wasitests::nightly_2022_10_18::host_fs::fd_rename_path
wasitests::nightly_2022_10_18::host_fs::poll_oneoff
wasitests::nightly_2022_10_18::host_fs::readlink
wasitests::nightly_2022_10_18::host_fs::unix_open_special_files
wasitests::nightly_2022_10_18::host_fs::writing
wasitests::nightly_2022_10_18::mem_fs::close_preopen_fd
wasitests::nightly_2022_10_18::mem_fs::create_dir
wasitests::nightly_2022_10_18::mem_fs::envvar
wasitests::nightly_2022_10_18::mem_fs::fd_allocate
wasitests::nightly_2022_10_18::mem_fs::fd_close
wasitests::nightly_2022_10_18::mem_fs::fd_pread
wasitests::nightly_2022_10_18::mem_fs::fd_read
wasitests::nightly_2022_10_18::mem_fs::poll_oneoff
wasitests::nightly_2022_10_18::mem_fs::readlink
wasitests::nightly_2022_10_18::mem_fs::unix_open_special_files
wasitests::nightly_2022_10_18::mem_fs::writing

# These tests are failing in CI for some reason, but didn't fail on older compiler versions
wasitests::nightly_2022_10_18::host_fs::path_symlink
wasitests::nightly_2022_10_18::mem_fs::path_symlink

wasitests::nightly_2022_10_18::host_fs::fd_append
wasitests::nightly_2022_10_18::mem_fs::fd_append