Skip to content

Commit

Permalink
Test virtual-net bincode and mpsc only on linux (#4152)
Browse files Browse the repository at this point in the history
* Test virtual-net bincode and mpsc only on linux

* Disable check_small_stack check on macos/aarch64 (different pagesize, test won't work there)

* Diabled all remaining tests of virtual-net on macOS

* Diabled other virtual-net tests for windows too
  • Loading branch information
ptitSeb authored Aug 17, 2023
1 parent d53b9e2 commit eb805b9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
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

0 comments on commit eb805b9

Please sign in to comment.