1- #[ cfg( not( any( target_os = "macos" , target_os = "ios" ) ) ) ]
2- mod utils {
1+ mod utils;
32
43use self :: utils:: { check_eq, eventually, Bin , CountWrite , RngRead } ;
54use anyhow:: { format_err, Result } ;
@@ -13,6 +12,7 @@ use std::{
1312} ;
1413
1514#[ test]
15+ #[ cfg_attr( not( any( target_os = "macos" , target_os = "ios" ) ) , ignore) ]
1616fn transfer_single_small_file ( ) {
1717 let ( a, b) = setup ( ) ;
1818
@@ -28,6 +28,7 @@ fn transfer_single_small_file() {
2828}
2929
3030#[ test]
31+ #[ cfg_attr( not( any( target_os = "macos" , target_os = "ios" ) ) , ignore) ]
3132fn transfer_single_large_file ( ) {
3233 let ( a, b) = setup ( ) ;
3334
@@ -52,6 +53,7 @@ fn transfer_single_large_file() {
5253}
5354
5455#[ test]
56+ #[ cfg_attr( not( any( target_os = "macos" , target_os = "ios" ) ) , ignore) ]
5557fn sequential_write_to_the_same_file ( ) {
5658 let ( a, b) = setup ( ) ;
5759
@@ -79,6 +81,7 @@ fn sequential_write_to_the_same_file() {
7981}
8082
8183#[ test]
84+ #[ cfg_attr( not( any( target_os = "macos" , target_os = "ios" ) ) , ignore) ]
8285fn fast_sequential_writes ( ) {
8386 // There used to be a deadlock which would manifest whenever one of the connected replicas
8487 // perfomed more than one write operation (mkdir, echo foo > bar,...) quickly one after another
@@ -98,11 +101,13 @@ fn fast_sequential_writes() {
98101}
99102
100103#[ test]
104+ #[ cfg_attr( not( any( target_os = "macos" , target_os = "ios" ) ) , ignore) ]
101105fn concurrent_read_and_write_small_file ( ) {
102106 concurrent_read_and_write_file ( 32 ) ;
103107}
104108
105109#[ test]
110+ #[ cfg_attr( not( any( target_os = "macos" , target_os = "ios" ) ) , ignore) ]
106111fn concurrent_read_and_write_large_file ( ) {
107112 concurrent_read_and_write_file ( 1024 * 1024 ) ;
108113}
@@ -141,6 +146,7 @@ fn concurrent_read_and_write_file(size: usize) {
141146// large enough so that the number of blocks it consists of is greater than the capacity of the
142147// notification channel.
143148#[ test]
149+ #[ cfg_attr( not( any( target_os = "macos" , target_os = "ios" ) ) , ignore) ]
144150fn concurrent_read_and_delete_file ( ) {
145151 let ( a, b) = setup ( ) ;
146152
@@ -183,6 +189,7 @@ fn concurrent_read_and_delete_file() {
183189}
184190
185191#[ test]
192+ #[ cfg_attr( not( any( target_os = "macos" , target_os = "ios" ) ) , ignore) ]
186193fn relay ( ) {
187194 // Create three nodes: A, B and R where A and B are connected only to R but not to each other.
188195 // Then create a file by A and let it be received by B which requires the file to pass through
@@ -227,6 +234,7 @@ fn relay() {
227234}
228235
229236#[ test]
237+ #[ cfg_attr( not( any( target_os = "macos" , target_os = "ios" ) ) , ignore) ]
230238fn concurrent_update ( ) {
231239 let ( a, b) = setup ( ) ;
232240
@@ -344,6 +352,7 @@ fn check_concurrent_versions(file_path: &Path, expected_contents: &[&[u8]]) -> R
344352// This test is similar to the `relay` test but using a "cache server" for the relay node instead
345353// of a regular peer.
346354#[ test]
355+ #[ cfg_attr( not( any( target_os = "macos" , target_os = "ios" ) ) , ignore) ]
347356fn mirror ( ) {
348357 // the cache server
349358 let r = Bin :: start ( ) ;
@@ -400,5 +409,3 @@ fn setup() -> (Bin, Bin) {
400409
401410 ( a, b)
402411}
403-
404- }
0 commit comments