Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test virtual-net bincode and mpsc only on linux #4152

Merged
merged 4 commits into from
Aug 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion lib/api/src/sys/tunables.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,13 @@ mod tests {
}

#[test]
#[cfg(all(feature = "singlepass", not(target_os = "windows")))]
#[cfg(all(
feature = "singlepass",
not(any(
target_os = "windows",
all(target_os = "macos", target_arch = "aarch64")
))
))]
fn check_small_stack() -> Result<(), Box<dyn std::error::Error>> {
use crate::{imports, wat2wasm, Engine, Instance, Module, Store};
use wasmer_compiler_singlepass::Singlepass;
Expand Down
9 changes: 9 additions & 0 deletions lib/virtual-net/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ async fn test_tcp(client: RemoteNetworkingClient, _server: RemoteNetworkingServe
}

#[cfg(feature = "remote")]
#[cfg(target_os = "linux")]
#[traced_test]
#[tokio::test]
async fn test_tcp_with_mpsc() {
Expand All @@ -133,6 +134,7 @@ async fn test_tcp_with_mpsc() {
}

#[cfg(feature = "remote")]
#[cfg(target_os = "linux")]
#[traced_test]
#[tokio::test]
async fn test_tcp_with_small_pipe_using_bincode() {
Expand All @@ -141,6 +143,7 @@ async fn test_tcp_with_small_pipe_using_bincode() {
}

#[cfg(feature = "remote")]
#[cfg(target_os = "linux")]
#[traced_test]
#[tokio::test]
async fn test_tcp_with_large_pipe_using_bincode() {
Expand All @@ -150,6 +153,7 @@ async fn test_tcp_with_large_pipe_using_bincode() {

#[cfg(feature = "remote")]
#[cfg(feature = "json")]
#[cfg(target_os = "linux")]
#[traced_test]
#[tokio::test]
async fn test_tcp_with_small_pipe_using_json() {
Expand All @@ -159,6 +163,7 @@ async fn test_tcp_with_small_pipe_using_json() {

#[cfg(feature = "remote")]
#[cfg(feature = "json")]
#[cfg(target_os = "linux")]
#[traced_test]
#[tokio::test]
async fn test_tcp_with_large_pipe_json_using_json() {
Expand All @@ -168,6 +173,7 @@ async fn test_tcp_with_large_pipe_json_using_json() {

#[cfg(feature = "remote")]
#[cfg(feature = "messagepack")]
#[cfg(target_os = "linux")]
#[traced_test]
#[tokio::test]
async fn test_tcp_with_small_pipe_using_messagepack() {
Expand All @@ -177,6 +183,7 @@ async fn test_tcp_with_small_pipe_using_messagepack() {

#[cfg(feature = "remote")]
#[cfg(feature = "messagepack")]
#[cfg(target_os = "linux")]
#[traced_test]
#[tokio::test]
async fn test_tcp_with_large_pipe_json_using_messagepack() {
Expand All @@ -186,6 +193,7 @@ async fn test_tcp_with_large_pipe_json_using_messagepack() {

#[cfg(feature = "remote")]
#[cfg(feature = "cbor")]
#[cfg(target_os = "linux")]
#[traced_test]
#[tokio::test]
async fn test_tcp_with_small_pipe_using_cbor() {
Expand All @@ -195,6 +203,7 @@ async fn test_tcp_with_small_pipe_using_cbor() {

#[cfg(feature = "remote")]
#[cfg(feature = "cbor")]
#[cfg(target_os = "linux")]
#[traced_test]
#[tokio::test]
async fn test_tcp_with_large_pipe_json_using_cbor() {
Expand Down